Skip to content

fix: resolve TestAPI/Error/DuringInjection flake #19407

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
Aug 19, 2025

Conversation

DanielleMaywood
Copy link
Contributor

Comment on lines -2099 to -2100
coderBin, err := os.Executable()
require.NoError(t, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this might sometimes be a symlink which we aren't resolving which causes a problem in the tests on nightly gauntlet. Instead of resolving this symlink, I've just removed this and replaced the mock expectation with gomock.Any() as we don't really care about this for this test.

Comment on lines +2157 to +2158
err = api.RefreshContainers(ctx)
require.NoError(t, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive by fix: whilst trying to recreate this flake, i got this to fail because the clock would skip a turn for some reason, so instead we just invoke RefreshContainers directly.

@DanielleMaywood DanielleMaywood marked this pull request as ready for review August 19, 2025 09:42
@DanielleMaywood DanielleMaywood merged commit e879526 into main Aug 19, 2025
35 checks passed
@DanielleMaywood DanielleMaywood deleted the danielle/flake/during-injection branch August 19, 2025 11:23
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2025
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: TestAPI/Error/DuringInjection
3 participants