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

tests: retry some jest tests on failure #12298

Merged
merged 10 commits into from
Apr 13, 2021
Merged

Conversation

connorjclark
Copy link
Collaborator

These are too flaky. This should help.

@connorjclark connorjclark requested a review from a team as a code owner March 25, 2021 20:41
@connorjclark connorjclark requested review from adamraine and removed request for a team March 25, 2021 20:41
@google-cla google-cla bot added the cla: yes label Mar 25, 2021
@@ -142,7 +142,7 @@
"glob": "^7.1.3",
"idb-keyval": "2.2.0",
"intl-messageformat-parser": "^1.8.1",
"jest": "^24.9.0",
"jest": "^26.6.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This comment was marked as off-topic.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@brendankenny
Copy link
Member

Has anyone looked into why these are flaky? Does #12284 help?

@connorjclark
Copy link
Collaborator Author

connorjclark commented Mar 25, 2021

Has anyone looked into why these are flaky? Does #12284 help?

havent looked. searching my memory of n=1 data points, yarn test-clients fails because the page crash. so upgrading chrome might have an impact there.

set -euxo pipefail

$*
$* --onlyFailures --passWithNoTests
Copy link
Member

Choose a reason for hiding this comment

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

What about?

$* || $* --onlyFailures

@connorjclark
Copy link
Collaborator Author

connorjclark commented Mar 30, 2021

i'm gonna retry the actions a few times and see how many times it passes

(this PR only impacts some of the unit tests, not smokes...)

  • passed
  • failed (smoke test offline)
  • failed (smoke test offline)
  • failed (unit-cli Unable to connect to Chrome; smoke test offline)
  • ...

@brendankenny
Copy link
Member

we haven't landed #12284 yet :P

@connorjclark
Copy link
Collaborator Author

I'm not talking about puppeteer, I'm curious if this PR does anything.

I hit a wall with #12284 – next action item is a Chrome bisect but I'm strapped for bandwidth for another couple weeks, so I can't move forward there at the moment.

@connorjclark
Copy link
Collaborator Author

connorjclark commented Apr 8, 2021

I haven't seen the unit tests fail here yet; they continue to fail elsewhere (look at latest master CI run). should be an improvement to merge this. Can investigate if still needed even after puppeteer upgrade (altho, I think some failures are not related to puppeteer, I'd have to check again..)

@brendankenny
Copy link
Member

should be an improvement to merge this

The failures are real annoying, so SGTM if this was waiting on me :) I'd really like us to not wave off the failures as expected flakiness because I think they've definitely increased in rate recently (it would be nice if Github Actions tracked this), but I don't think there's any problem waiting for the #12284 investigation.

@brendankenny
Copy link
Member

jest 27 is getting a new jest.retryTimes(55) that can be added in any test that would also be a nice version of this, but I didn't find an obvious roadmap, so I'm not sure when that's coming.

@connorjclark
Copy link
Collaborator Author

so SGTM if this was waiting on me :)

was actually waiting for master to be unbroked.

now, it seems windows in GH Actions doesn't use environment variables like the other environments...

@brendankenny
Copy link
Member

now, it seems windows in GH Actions doesn't use environment variables like the other environments...

@paulirish mentioned that xvfb-run will (may?) work with inlined yarn test-viewer || yarn test-viewer --onlyFailures, which avoid the script indirection step and sidestep the windows issue

@connorjclark
Copy link
Collaborator Author

last failure was b/c of ESOCKETTIMEDOUT in smoke test yarn install :/

@connorjclark connorjclark merged commit 4a6a1c0 into master Apr 13, 2021
@connorjclark connorjclark deleted the retry-some-jest-tests branch April 13, 2021 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants