Repository navigation
fix: add nil guard for BSL LastValidationTime in BSLsAreUpdated - #2500
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
/cherry-pick oadp-1.5 oadp-1.6 oadp-dev |
|
@redhat-chai-bot: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov Report✅ All modified and coverable lines are covered by tests. Please upload reports for the commit e0f1824 to get more accurate results. Additional details and impacted files@@ Coverage Diff @@
## oadp-1.4 #2500 +/- ##
=========================================
Coverage 40.03% 40.03%
=========================================
Files 30 30
Lines 5378 5378
=========================================
Hits 2153 2153
Misses 3014 3014
Partials 211 211 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kaovilai, redhat-chai-bot, shubham-pampattiwar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@redhat-chai-bot: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@redhat-chai-bot: new pull request created: #2502 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Why the changes were made
The
BSLsAreUpdated()function intests/e2e/lib/dpa_helpers.godereferencesbsl.Status.LastValidationTimewithout a nil check. When Velero has not yet validated a BackupStorageLocation,LastValidationTimeis nil, causing a nil pointer dereference panic.This has been causing a 3-run failure streak (Oct 18–20) on
periodic-ci-openshift-oadp-operator-oadp-1.4-4.18-e2e-test-aws-periodic, where 2 of 28 specs panic with:at
tests/e2e/lib/dpa_helpers.go:304.How to test the changes made
The fix adds a nil guard so that a BSL whose
LastValidationTimeis still nil is treated the same as one that has not been updated sinceupdateTime(i.e. the condition returns false and the wait continues).BSLsAreUpdated.Backport targets: oadp-1.5 oadp-1.6 oadp-dev
AI-generated. Review for accuracy.
@kaovilai requested from Slack