Skip to content

flake: TestSupportBundle (multiple variants): health report should not be empty #272

@mafredri

Description

@mafredri

Reopening due to recurrence on 2025-11-17 in Nightly Gauntlet.

Recent failure evidence

Key log excerpts

=== FAIL: cli TestSupportBundle/NoAgent (63.30s)
... GET /api/v2/debug/health ... took=1m0.00276575s  status_code=503
response_body={"message":"Healthcheck is in progress and did not complete in time. Try again in a few seconds."}
... support_test.go:243 ... support_test.go:153
Error: Should NOT be empty, but was {...}
Test: TestSupportBundle/NoAgent
Messages: health report should not be empty

Root-cause classification

  • Flaky test (health check endpoint didn’t return within test timeout; bundle health.json ends up empty).

Precise assignment analysis

  • Primary: Test function blame (approx.): recent meaningful changes to this test family:
    • chore(cli): increase healthcheck timeout in TestSupportbundle — a8fbe71a22fdc9dfd607d3ebc93c0d469cede735 (Cian Johnston)
    • test(cli): fix context init in TestSupportBundle — 860d17ad09d40a5a837013faf64e4c790c4a13ee (Mathias Fredriksson)
    • Numerous support bundle test additions/maintenance by Cian across 2024–2025.
  • Given the changes above, assigning to the test owner/primary maintainer of support bundle tests.

Related issues

  • This issue originally tracked NoWorkspace variant; the new occurrence is NoAgent variant. Keeping a single family issue open for both variants.

Next steps

  • Investigate why healthcheck can exceed 60s under CI load in NoAgent scenario and consider:
    • Further increasing/relaxing the healthcheck wait in tests or mocking health endpoint for this path.
    • Ensuring health is cached or fetched with a shorter code path for the support bundle.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions