-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make the performance tests more stable #48094
Conversation
Size Change: 0 B Total Size: 1.33 MB ℹ️ View Unchanged
|
Flaky tests detected in 67998fb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4231927585
|
I've noticed a typo in the selector and fixed it. Let's see if it helps. |
Still broken, but now something else. It looks like the I've also noticed that the Site Editor's Typing suite is quite chaotic, as it doesn’t wait properly for the post content to be loaded and ends up typing the I'm currently trying to address both issues, will keep you updated. |
@youknowriad which editor canvas selectors should be supported in the performance tests? AFAIK there's the |
I can't think of any other canvas selector. Also this is broken in trunk which is basically the latest version. |
Pushed a WiP fix here: #48138. Will continue tomorrow. |
dfbaa2c
to
468711e
Compare
d23fdb9
to
67998fb
Compare
// where the site editor toggle was not implemented yet. | ||
if ( ! isViewMode ) { | ||
return; | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is not necessary but I think it's a bit safer than the previous code, so I decided to leave it.
'npm ci && npm run prebuild:packages && node ./bin/packages/build.js && npx wp-scripts build', | ||
buildPath | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #45737 we've introduced a potential optimization to the performance job, the problem is that it resulted in the job comparing the wrong thing.
Basically if a branch was equivalent to the "test branch", we reused the same code to gain some time and avoid the git clone, the issue is that we didn't build the code in that case, meaning we were using the WP trunk version of Gutenberg and not the actual branch.
(Currently WP trunk's version does have the '/navigation/single'
support in the site editor which explains why this random change fixed the perf job.
The bummer is that you can say that for the last three months, the perf jobs in PRs were useless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That also explains why I was completely unable to repro locally. 💥
Nice catch, though the bug is indeed a nasty one! 🐛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 6771f8b |
Recently, the performance job has been unstable. This PR tries to solve that.
It turns out the job was broken for a long time. Read this comment for the details.