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

Retain Playwright e2e test's trace on failure on CI #40586

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

kevin940726
Copy link
Member

@kevin940726 kevin940726 commented Apr 25, 2022

What?

Originally since #38570, traces are only recorded on CI on the first retry. This PR changes it to retain trace on every failure instead.

Why?

The original idea is to avoid slowing down the tests on CI if they're all passing since recording traces adds a little bit of overhead. However, this makes some flaky tests hard to debug when they always pass on the first retry (#40307) and basically makes the trace useless. Furthermore, the overhead of recording traces seems to be pretty minimal on CI. Hence, I propose to enable recording traces on every test run instead.

Videos are still being recorded only on the first retry, though. Recording videos seems to have a bigger impact on performance and traces are almost always more useful than videos anyway. We can discuss if we want to remove video recording altogether if needed.

How?

Change via the global settings.

Testing Instructions

N/A

@kevin940726 kevin940726 added [Type] Enhancement A suggestion for improvement. [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Apr 25, 2022
Copy link
Contributor

@ntsekouras ntsekouras left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@kevin940726 kevin940726 merged commit aa6c071 into trunk Apr 27, 2022
@kevin940726 kevin940726 deleted the fix/playwright-trace-retain-on-ci branch April 27, 2022 06:22
@github-actions github-actions bot added this to the Gutenberg 13.2 milestone Apr 27, 2022
@georgeh georgeh removed the [Type] Enhancement A suggestion for improvement. label May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants