Skip to content

Only retry tests in CI#2227

Merged
elenatanasoiu merged 2 commits intomainfrom
elena/disable-local-retry
Mar 23, 2023
Merged

Only retry tests in CI#2227
elenatanasoiu merged 2 commits intomainfrom
elena/disable-local-retry

Conversation

@elenatanasoiu
Copy link
Copy Markdown
Contributor

@elenatanasoiu elenatanasoiu commented Mar 23, 2023

We introduced this change to help with reducing flakiness in CI.

This has a slightly different effect locally, where every failed test will output three times.

This in turn makes it harder to read, especially when you have multiple failing tests.

Since the original intent for this behaviour was to be used in CI, I'm proposing we disable it when the CI env variable isn't set.

I've opted to set it for all jobs involving tests, just for consistency. I'm happy to limit it to just the places where it's required.

@elenatanasoiu elenatanasoiu requested a review from a team as a code owner March 23, 2023 14:35
@elenatanasoiu elenatanasoiu requested a review from a team March 23, 2023 14:39
@elenatanasoiu
Copy link
Copy Markdown
Contributor Author

Comment thread .github/workflows/main.yml Outdated
Comment on lines +111 to +112
env:
CI: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The CI definitions should be unnecessary, the CI environment variable is set by default in GitHub Actions (and most other CI system).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Even better!

@elenatanasoiu elenatanasoiu force-pushed the elena/disable-local-retry branch from bcd1eae to fceaa4e Compare March 23, 2023 15:26
We introduced this change to help with reducing flakiness in CI [1].

This has a slightly different effect locally, where every failed test
will output three times.

This in turn makes it harder to read, especially when you have multiple
failing tests.

Since the original intent for this behaviour was to be used in CI, I'm
proposing we disable it when the CI env variable isn't set.

I've opted to set it for all jobs involving tests, just for consistency.
I'm happy to limit it to just the places where it's required.

[1]: #2059
@elenatanasoiu elenatanasoiu force-pushed the elena/disable-local-retry branch from fceaa4e to c882a9f Compare March 23, 2023 15:28
@elenatanasoiu elenatanasoiu merged commit 1d3d8da into main Mar 23, 2023
@elenatanasoiu elenatanasoiu deleted the elena/disable-local-retry branch March 23, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants