fix(ci): allow-list Publish trigger events in benchmark.yml instead of excluding 'push' - #2114
Merged
Merged
Conversation
…f excluding 'push' Both jobs gated on `workflow_run.event != 'push'`, which stops matching once Publish's dev-build trigger moves from push to schedule (companion PR). Switch to a positive allow-list of 'release'/'workflow_dispatch' so the filter can't silently drift out of sync with Publish's trigger set again.
Contributor
…e-from-every-publish
Contributor
Author
|
Addressed Claude's review feedback: none required — Greptile's review (5/5 confidence, "Safe to merge") did not flag any findings or gaps against the workflow diff itself. What was done since that review:
|
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
benchmark.ymlgated ongithub.event.workflow_run.event != 'push'. That's a negative exclusion, not a positive allow-list of the event types that actually warrant a benchmark run.pushtoschedule—!= 'push'doesn't exclude'schedule', so once that merges, scheduled dev-build Publish completions would newly pass this filter, and:record-benchmarkswould try to downloadbenchmark-files/benchmark-results-jsonartifacts that don't exist for schedule-triggered Publish runs (onlyrelease/workflow_dispatchgo throughpre-publish-benchmark), failing the jobembedding-benchmarkwould kick off a redundant 2.5+ hour run against the latest stable npm version once a day, for nothingevent == 'release' || event == 'workflow_dispatch') so it can't silently drift out of sync with Publish's trigger set againWhy
Direct correctness dependency of #2113 (Publish dev-build scheduling). Also corrects my own earlier issue #2109, which incorrectly assumed this workflow ran the full benchmark suite on every Publish completion — it already didn't, this fix just keeps that true after #2113.
Closes #2109
Depends on #2113 (should merge together or #2113 first)
Test plan
actionlintshows no new findings (pre-existing shellcheck notes only)record-benchmarksorembedding-benchmark