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

Release docs: Update performance test instructions #43015

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

Mamaduka
Copy link
Member

@Mamaduka Mamaduka commented Aug 5, 2022

What?

PR updates Gutenberg plugin's release documentation to match current practice.

@Mamaduka Mamaduka self-assigned this Aug 5, 2022
@Mamaduka Mamaduka added the [Type] Developer Documentation Documentation for developers label Aug 5, 2022
@Mamaduka Mamaduka requested review from priethor and getdave August 5, 2022 06:54
@@ -113,12 +113,16 @@ These visual assets should maintain consistency with previous release posts; usi

The post should also include a performance audit at the end, comparing the current Gutenberg release with both the previous one and the latest WordPress major version. There are GitHub worfklows in place to do this comparison as part of the Continuous Integration setup, so the performance audit results can be found at the workflow run generated by the release commit in the [Performance Tests workflows](https://github.com/WordPress/gutenberg/actions/workflows/performance.yml) page, with the job name `Compare performance with current WordPress Core and previous Gutenberg versions`.

If the GitHub workflow fails, the performance audit can be executed locally using `bin/plugin/cli.js perf` and passing as parameters the tags to run the performance suite against, such as `bin/plugin/cli.js perf release/x.y release/x.z wp/a.b`.
If the GitHub workflow fails, the performance audit can be executed locally using `bin/plugin/cli.js perf` and passing the branches to run the performance suite against as parameters. In addition, the current major WP version can be passed to avoid running tests against the WP `trunk`. Example:
Copy link
Member Author

@Mamaduka Mamaduka Aug 5, 2022

Choose a reason for hiding this comment

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

This probably can be worded better, but my muse wasn't working this morning.

The CI runs tests against current major WP versions, so you want to do the same locally. See #32244.

Copy link
Contributor

@priethor priethor left a comment

Choose a reason for hiding this comment

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

Thanks for these detailed but necessary fixes, like adding the --wp-version parameter; I struggled to find it myself yesterday 🙂

@Mamaduka Mamaduka merged commit 1933820 into trunk Aug 5, 2022
@Mamaduka Mamaduka deleted the docs/update-release-performance-tests branch August 5, 2022 12:21
@github-actions github-actions bot added this to the Gutenberg 13.9 milestone Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants