-
Notifications
You must be signed in to change notification settings - Fork 4.5k
CodeVitals: Use a different SHA for the base branch #70565
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
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
The problem with this change is that it will fix the issue but since the chosen hash doesn't have any value in the code vitals dataviews, we will see "jumps" in the graph for all the metrics because we don't have the reference values to compare to. |
If I'm understand the issue though, it seems we don't have any potential reference commit where the tests pass right? Which means we don't have much choice right? |
I think that's true. All previous SHA seem to be affected by the build error. |
I'm ok just accepting the jumps personally. But folks monitoring the graphs need to be aware about it. |
Thank you everyone for your reviews.
This is true. Let's merge this PR and hope the performance tests pass. |
All CI passed on the trunk branch, but there was a huge change in the CodeVitals graph 😂 |
It is not unexpected for me. Using a commit that has no previous value basically mean starting the graphs from scratch |
@t-hamano, it might be worth sharing the reason for this stats drop in the Slack channel(s). |
Follow-up #70553
What?
This PR updates the commit hash of the base branch used by Code Vitals, which should resolve the failing performance tests in the trunk branch.
Why?
#70553 fixed the npm library inconsistency,
npm ci
now works properly, and some performance tests now work properly.Meanwhile, on the trunk branch, we have performance tests that run when the event is "push", i.e. when a PR is merged. Those performance tests use the 7f6a627 commit hash, but that commit doesn't yet contain #70553, so
npm ci
fails. As a result, CodeVitals also doesn't update correctly.How?
Update the commit hash with #70553 (1b8efa7).
This should allow
npm ci
to succeed on the base branch. However, this commit hash is usually only updated when we update the minimum WordPress version that the Gutenberg plugin supports. Therefore, I am concerned that updating the commit hash now will affect some metrics.Testing Instructions
This PR is unfortunately not testable as it tries to resolve performance tests that run only on trunk. Hopefully, the performance tests will pass on the trunk branch, and CodeVitals will be updated.