-
Notifications
You must be signed in to change notification settings - Fork 682
Do not fail bundle size workflow on main branch #3653
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -47,7 +47,7 @@ jobs: | |||||
| jaeger-ui-bundle-size | ||||||
|
|
||||||
| - name: Compare bundle sizes | ||||||
| if: steps.cache-bundle-size.outputs.cache-matched-key != '' | ||||||
| if: steps.cache-bundle-size.outputs.cache-matched-key != '' && github.ref != 'refs/heads/main' | ||||||
|
||||||
| if: steps.cache-bundle-size.outputs.cache-matched-key != '' && github.ref != 'refs/heads/main' | |
| if: steps.cache-bundle-size.outputs.cache-matched-key != '' && github.event_name != 'push' |
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.
This
ifguard relies oncache-matched-key, but the workflow never saves a cache under the exact keyjaeger-ui-bundle-size(it savesjaeger-ui-bundle-size-${{ github.run_id }}), socache-matched-keywill typically stay empty and the compare step will never run. Consider switching to a versioned save key (e.g. includesgithub.sha/run_id) and restoring via a prefixrestore-keys(e.g.jaeger-ui-bundle-size-) so PRs can compare against the latest main baseline.