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

[DevTools] Add Snapshots on e2e test failure #24672

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

lunaruan
Copy link
Contributor

@lunaruan lunaruan commented Jun 3, 2022

We have a currently unreproducible flaky e2e test. This PR captures snapshots on e2e test failures so we can better debug flaky e2e tests that don't fail locally.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jun 3, 2022
Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

🥹

},
// Some of our e2e tests can be flaky. Retry tests to make sure the error isn't transient
retries: 2,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this mean it wasn't retrying before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were, just twice instead of 3 times

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think flaky tests might actually be categorized as an error though, so looking into that as well. Figured we probably want snapshots of failing tests regardless though

Copy link
Contributor

Choose a reason for hiding this comment

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

small nit: was the move of the comment intended?

@sizebot
Copy link

sizebot commented Jun 3, 2022

Comparing: 7a5b822...f1e41df

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 131.54 kB 131.54 kB = 42.26 kB 42.26 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 136.80 kB 136.80 kB = 43.81 kB 43.81 kB
facebook-www/ReactDOM-prod.classic.js = 439.85 kB 439.85 kB = 80.44 kB 80.44 kB
facebook-www/ReactDOM-prod.modern.js = 425.14 kB 425.14 kB = 78.29 kB 78.28 kB
facebook-www/ReactDOMForked-prod.classic.js = 439.85 kB 439.85 kB = 80.45 kB 80.44 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against f1e41df

@@ -270,6 +270,8 @@ jobs:
- run:
name: Cleanup build regression folder
command: rm -r ./build-regression
- store_artifacts:
path: tmp/screenshots
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this configured somewhere? I think the default output directory of playwright trace report is called "test-results"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oooh good call I didn't push my most recent commit to main thanks!!

@facebook facebook deleted a comment from RambabuGi Jun 5, 2022
@lunaruan lunaruan merged commit 254b49e into facebook:main Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants