Skip to content

test(clickstack-upgrade): key the provisioner wait on the dashboard, dump logs on timeout - #285

Merged
braghettos merged 3 commits into
mainfrom
fix/clickstack-upgrade-provisioner-wait
Dec 2, 2026
Merged

braghettos merged 3 commits into
mainfrom
fix/clickstack-upgrade-provisioner-wait

Conversation

@braghettos

Copy link
Copy Markdown
Collaborator

Problem

A release-candidate gate run failed the clickstack-upgrade leg for the 0.1.68 baseline with "timed out waiting for the provisioner to write the dashboard (last: False)" after 420 s; the same leg had passed an hour earlier on identical code.

Cause

The suite waited for a "Created provisioned dashboard" line in the NEW HyperDX pod. The 0.1.68 baseline already runs the provisioner, and the team is registered seconds before the upgrade. The old pod keeps serving for about two minutes while the new one starts, so a provisioner tick in it can create the dashboard first. The new pod then finds it present and never logs "Created". Whether that happens depends on where the old pod's minute tick falls, which is why it is intermittent. The failed run's log has no container logs, so this is inferred from the timeline (team registered 22:38:59, upgrade 22:39:00, new pod Ready 22:40:41, 420 s of silence), not observed; the diagnostics added here will confirm or refute it on the next occurrence.

Fix

  • Wait for the dashboard to exist in HyperDX (bound: 240 s, pod already Ready).
  • Delete it and require the new pod to create it again within 150 s (one minute tick plus slack). This proves the new pod's watcher and provisioner regardless of who created it first, and a recurrence of the race cannot fail it.
  • On either timeout, print the last 60 lines of the app and dashboard-watcher logs.

No chart change.

🤖 Generated with Claude Code

https://claude.ai/code/session_016RAxvm3ReSNJ4Vzepck9JT

…eated line in the new pod

Gate run 46986599979 failed the 7f9537a baseline waiting 420 s for
"Created provisioned dashboard" in the new HyperDX pod. That baseline already ran
the same provisioner, and the team is registered seconds before the upgrade, so the
old pod (serving for about two minutes while the new one starts) can create the
dashboard in a tick of its own; the new pod then has nothing to create and logs no
such line. The same leg passed an hour earlier when the old pod's tick missed.

The wait now keys on the dashboard existing in HyperDX, then deletes it and requires
THIS pod to create it again within one provisioner tick plus slack, which proves the
new pod's watcher and provisioner whoever created it first. On a timeout the suite
prints both containers' logs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016RAxvm3ReSNJ4Vzepck9JT
@braghettos
braghettos requested a review from a team as a code owner December 2, 2026 22:52
@braghettos
braghettos requested review from fedepini and removed request for a team December 2, 2026 22:52
braghettos and others added 2 commits December 3, 2026 00:01
…me and message

The provisioner logs the dashboard name as a field, so the count must match the
message and the name on the same line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016RAxvm3ReSNJ4Vzepck9JT
HTTP 0 (no response), 429 and 5xx are retried with a short backoff, and so is the ghcr
token request; 401 and 404 are answers about the reference and fail on the first try.
A single dropped connection to ghcr failed a PR's preflight on an unrelated change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016RAxvm3ReSNJ4Vzepck9JT
@braghettos
braghettos merged commit bfd5ac5 into main Dec 2, 2026
23 checks passed
@braghettos
braghettos deleted the fix/clickstack-upgrade-provisioner-wait branch December 2, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant