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

Tweak BuildPulse/rspec-retry logic #11598

Merged
merged 1 commit into from Jun 29, 2021
Merged

Tweak BuildPulse/rspec-retry logic #11598

merged 1 commit into from Jun 29, 2021

Conversation

MikeMcQuaid
Copy link
Member

BuildPulse is trying to find flaky tests for us but, given the previous model of using rspec-retry, it would rarely find them. Instead, let's try to always rerun brew tests multiple times, report to BuildPulse each time (by moving the reporting logic into brew tests) and disable rspec-retry when using BuildPulse.

While we're here, let's enable rspec-retry locally so we don't have flaky tests biting maintainers/contributors there.

CC @jasonrudolph for thoughts

@MikeMcQuaid MikeMcQuaid added the critical Critical change which should be shipped as soon as possible. label Jun 25, 2021
@BrewTestBot
Copy link
Member

BrewTestBot commented Jun 25, 2021

Review period ended.

BrewTestBot
BrewTestBot previously approved these changes Jun 25, 2021
BrewTestBot
BrewTestBot previously approved these changes Jun 25, 2021
BrewTestBot
BrewTestBot previously approved these changes Jun 25, 2021
BrewTestBot
BrewTestBot previously approved these changes Jun 25, 2021
BrewTestBot
BrewTestBot previously approved these changes Jun 25, 2021
jasonrudolph
jasonrudolph previously approved these changes Jun 25, 2021
# Retry multiple times when using BuildPulse to detect and submit
# flakiness (because rspec-retry is disabled).
if [ -n "$HOMEBREW_BUILDPULSE_ACCESS_KEY_ID" ]; then
brew tests --online --coverage || \

Choose a reason for hiding this comment

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

A quick question to check my understanding of things: Am I right in thinking that each call to brew tests will run the Homebrew.tests method?

Copy link
Member Author

Choose a reason for hiding this comment

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

BrewTestBot
BrewTestBot previously approved these changes Jun 28, 2021
BrewTestBot
BrewTestBot previously approved these changes Jun 28, 2021
BuildPulse is trying to find flaky tests for us but, given the previous
model of using `rspec-retry`, it would rarely find them. Instead, let's
try to always rerun `brew tests` multiple times, report to BuildPulse
each time (by moving the reporting logic into `brew tests`) and disable
`rspec-retry` when using BuildPulse.

While we're here, let's enable `rspec-retry` locally so we don't have
flaky tests biting maintainers/contributors there.
@MikeMcQuaid MikeMcQuaid merged commit 1e8f6d7 into master Jun 29, 2021
@MikeMcQuaid MikeMcQuaid deleted the buildpulse-retry branch June 29, 2021 12:14
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants