Repository navigation
fix(e2e): make setup-timeout diagnostics actually diagnose - #5462
openshift-merge-bot[bot] merged 1 commit into
Conversation
Two osd-gcp runs in a row failed showcase-runtime's operator deploy with the backend never passing readiness, and both were undiagnosable from CI artifacts because the diagnostics pipeline destroyed its own evidence: - getEventSortTimestamp/formatEventTimestamp treated a null firstTimestamp as present (typeof null === "object") and crashed with 'Cannot read properties of null (reading getTime)', aborting the pod event listing — exactly where the failing readiness probe lines would have appeared. Guard null explicitly. - collectTimeoutDiagnostics never called the existing logPodContainerLogs, so the backend container log was not captured on setup timeouts. Call it. - pollUntil timeout errors threw the bare label, producing messages like 'Error: Deployment backstage-rhdh ready (1 replicas)' that read as success in junit. Prefix with 'Timed out after Nms waiting for:'. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5462 +/- ##
===========================================
- Coverage 74.21% 64.04% -10.17%
===========================================
Files 69 57 -12
Lines 799 573 -226
Branches 125 99 -26
===========================================
- Hits 593 367 -226
Misses 205 205
Partials 1 1
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
/retest |
4 similar comments
|
/retest |
|
/retest |
|
/retest |
|
/retest |
|
/test e2e-ocp-helm |
|
The |
|
This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 21 days. |
|
This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 21 days. |
|
/retest |
f00ae28
into
redhat-developer:main



Description
Two consecutive
e2e-osd-gcp-operator-nightlyruns (on #5435) failedshowcase-runtime's operator deploy with the backend Running but never Ready — and the root cause is unknowable from the artifacts, because the diagnostics pipeline destroys its own evidence. Three fixes:getEventSortTimestamp/formatEventTimestampguard!== undefined, but the API returnsfirstTimestamp: null;typeof null === "object"routes into.getTime()→Cannot read properties of null (reading 'getTime')(seen verbatim in both runs). The pod events are exactly where the failing readiness-probe lines appear. Now guardsnullexplicitly.collectTimeoutDiagnosticscalls events/conditions but not the already-existinglogPodContainerLogs. Now it does.pollUntilthrows the bare label, so junit showsError: Deployment backstage-rhdh ready (1 replicas)— reads like a success. Now:Timed out after 600000ms waiting for: Deployment backstage-rhdh ready (1 replicas).With this merged, the next runtime setup failure will carry probe status codes and backend logs in the step output.
Verification
yarn tsc0,yarn lint0 errors,yarn fmt:checkclean,yarn test:unit86 passed.🤖 Generated with Claude Code