Commit c603ae0
authored
Wait for DataSource availability after re-enabling common boot image (#4860)
##### Short description:
enable_common_boot_image_import_spec_wait_for_data_import_cron waits for
DataImportCrons, SSP conditions and HCO conditions but none of these
reflect DataSource state. CDI populates DataSource.Spec.Source
asynchronously after the import completes so in slow environments tests
can hit flaky behavior.
##### More details:
##### What this PR does / why we need it:
Wait for DataSource after re-enabling enableCommonBootImageImport.
Without this, downstream tests can hit StopIteration on an empty
DataSource.Spec.Source during the recovery window.(This behavior is
observed few times in CI)
##### Which issue(s) this PR fixes:
cnv-tests-runner-containerized/6117/testReport/ --this failure is seen
often
##### Special notes for reviewer:
makes tests stable. Current we failing lanes and jira tickets has more
details
##### jira-ticket:
https://redhat.atlassian.net/browse/CNV-87599
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Ensures boot sources are re-imported and verified after automatic
data-import cycles to avoid missed updates.
* **Improvements**
* More precise timeout handling for readiness checks and clearer,
structured logging on failures.
* Docstrings and status semantics clarified for reliability and
maintainability.
* **Tests**
* Unit tests updated to assert the new verification step runs during
enablement flows.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/RedHatQE/openshift-virtualization-tests/pull/4860?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Geetika Kapoor <gkapoor@redhat.com>1 parent 9a862bf commit c603ae0
3 files changed
Lines changed: 29 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
384 | 390 | | |
385 | 391 | | |
386 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | | - | |
1124 | | - | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1125 | 1135 | | |
1126 | 1136 | | |
1127 | 1137 | | |
| |||
1136 | 1146 | | |
1137 | 1147 | | |
1138 | 1148 | | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1144 | 1153 | | |
1145 | | - | |
1146 | 1154 | | |
1147 | 1155 | | |
1148 | 1156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| 805 | + | |
805 | 806 | | |
806 | 807 | | |
| 808 | + | |
807 | 809 | | |
808 | 810 | | |
809 | 811 | | |
| |||
822 | 824 | | |
823 | 825 | | |
824 | 826 | | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
825 | 832 | | |
826 | 833 | | |
827 | 834 | | |
| |||
0 commit comments