ROX-30493: Add sensor readiness wait and cluster health checks#16689
ROX-30493: Add sensor readiness wait and cluster health checks#16689
Conversation
This change addresses timing issues between AdmissionControllerTest and ComplianceTest where sensor restarts caused test failures due to run ID mismatches. Changes: - Add orchestrator.waitForSensor() after AdmissionControllerTest cleanup - Add cluster health validation in BaseSpecification.setupSpec() - Ensure cluster is healthy before test execution begins 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
rukletsov
left a comment
There was a problem hiding this comment.
I see waitForSensor() calls advertised in the description but not in the code though. Am I missing anything?
Also, does asserting for health mean failing the test? If so, I think we need to wait for a reasonable time rather than fail.
|
Images are ready for the commit at 4c27fe3. To use with deploy scripts, first |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #16689 +/- ##
==========================================
- Coverage 48.73% 48.62% -0.11%
==========================================
Files 2658 2664 +6
Lines 198307 199336 +1029
==========================================
+ Hits 96635 96930 +295
- Misses 94106 94813 +707
- Partials 7566 7593 +27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/retest |
|
Caution There are some errors in your PipelineRun template.
|
qa-tests-backend/src/main/groovy/services/ClusterService.groovy
Outdated
Show resolved
Hide resolved
qa-tests-backend/src/test/groovy/AdmissionControllerTest.groovy
Outdated
Show resolved
Hide resolved
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>
…ation Wait for collector to be healthy before checking collector->sensor network edges in NetworkFlowTest. This prevents test failures caused by timing issues where the test runs before collector has established proper communication with the sensor. - Add ApplicationHealth import to NetworkFlowTest - Use waitForCollectorHealthiness() before edge verification - Set 120-second timeout for collector health check - Follows same pattern as PR #16689 for AdmissionControllerTest This should resolve the flaky NetworkFlowTest failure where edges return null due to collector not being ready. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This change addresses timing issues between
AdmissionControllerTestandComplianceTestwhere sensor restarts caused test failures due to run ID mismatches.Changes:
orchestrator.waitForSensor()afterAdmissionControllerTestcleanupAdmissionControllerTestcleanup🤖 Generated with Claude Code