Skip to content

fix: fix TestWorkspaceAutobuild/DormantNoAutostart flake #10963

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Nov 30, 2023

fixes #10947

The test forgets to reassign the updated workspace object after stopping the workspace so the build time that we use to pass to the autobuilder ticker is the one from initially starting the workspace. You would frequently get lucky because both builds would occur within the same hour. In this case the start build happened on (e.g.) 01:59 and the stop build happened on 02:00 so when we're calculating the next occurrence we're off by one hour.

@sreya sreya requested a review from coadler November 30, 2023 21:00
@sreya sreya merged commit 329aa45 into main Nov 30, 2023
@sreya sreya deleted the jon/fixdormantflake branch November 30, 2023 21:45
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake: enterprise/coderd TestWorkspaceAutobuild/DormantNoAutostart
2 participants