Skip to content
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

[ci] Handle coverage missing on tests omitted by the retry. #14755

Closed
wants to merge 3 commits into from

Conversation

dixler
Copy link
Contributor

@dixler dixler commented Dec 5, 2023

Fixes #14756

Due to tests being flakey, they are re-run. The re-runs cause coverage on well-behaved tests to be discarded for the re-run test coverage.

This PR aims to make tests and coverage more reliable.

@dixler dixler changed the title Handle coverage missing on tests omitted by the retry. [ci] Handle coverage missing on tests omitted by the retry. Dec 5, 2023
@dixler dixler added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Dec 5, 2023
@pulumi-bot
Copy link
Contributor

pulumi-bot commented Dec 5, 2023

Changelog

[uncommitted] (2023-12-07)

@dixler dixler force-pushed the dixler-codecov-rerun-all branch 17 times, most recently from 8350d93 to 3cf6df3 Compare December 6, 2023 06:48
Comment on lines 2202 to 2207
requirementsPath := filepath.Join(cwd, "requirements.txt")
requirementsmd5, err := hashFile(requirementsPath)
if err != nil {
return err
}
pt.opts.virtualEnvDir = fmt.Sprintf("pulumi-venv-%x", requirementsmd5)
Copy link
Contributor Author

@dixler dixler Dec 6, 2023

Choose a reason for hiding this comment

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

It seems that there's some sort of interaction causing tests to fail in setup when different tests are reading and writing to the same virtualenv.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dixler dixler force-pushed the dixler-codecov-rerun-all branch 6 times, most recently from 5146153 to 5449125 Compare December 6, 2023 20:32
@dixler dixler force-pushed the dixler-codecov-rerun-all branch 2 times, most recently from 8f28a68 to ec921c9 Compare December 6, 2023 21:11
@dixler
Copy link
Contributor Author

dixler commented Dec 8, 2023

Workaround appears not to work on our setup.

@dixler dixler closed this Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[testing] investigate coverage inconsistency.
2 participants