Repository navigation
test(site): Fix a timing race in the Redfish burn-in lab - #252
Merged
Merged
Conversation
The Redfish lab moved its clock past the burn-in, then slept 50ms and assumed the worker polled the console in that gap. On a loaded CI runner the poll can miss it, so the last stored sighting predates the move, the measured burn-in is near zero, and a passing commissioning fails as too short. Tests that ran a full burn-in flaked this way. The lab now waits until the worker stores a sighting on the moved clock. A move shorter than the persist interval stores nothing new, so it keeps the short pause. With the worker's poll slowed to 100ms the old lab fails the burn-in tests and this one passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A burn-in shorter than the persist interval kept the 50ms pause, so the too-short and restart tests still relied on the worker polling before the receipt. The lab now waits for the worker's first stored sighting there. That gap has not been seen to fail, even with the poll slowed to 100ms, because the first sighting lands well before the receipt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scotwells
marked this pull request as ready for review
November 29, 2026 02:09
scotwells
requested review from
ecv and
kevwilliams
and removed request for
a team
November 29, 2026 02:09
ecv
approved these changes
Nov 29, 2026
ecv
left a comment
Contributor
There was a problem hiding this comment.
Approve.
The Redfish lab now waits until the worker has stored a console sighting on the moved clock before it writes the receipt, instead of sleeping 50ms and hoping a poll landed. That is the race behind the TestCommissioningPassesAServerThatMeetsThePlan failures seen on loaded runners, and the wait has a 10s deadline that fails the test loudly rather than hanging. Test-only.
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #196.
Redfish commissioning tests such as
TestCommissioningPassesAServerThatMeetsThePlanflaked on loaded CI runners. The test lab moved its clock past the burn-in, slept 50ms and assumed the worker polled the console meanwhile, so a missed poll made a passing run fail as too short. The lab now waits until the worker stores a sighting on the moved clock.Test plan
🤖 Generated with Claude Code