Repository navigation
Conversation
- auto-review-trigger.yml uploaded the artifact as 'pr_number' while auto-review-bot.yml downloaded 'pr-number', so every Auto Review Bot run failed with 'no artifacts found'. - post-ci.yml ran on every CI workflow_run, including master pushes where no pr_number artifact is produced, and hard-failed there. Fetch the artifact by either name via 'gh api', gate downstream steps on the artifact actually being present, and grant the 'actions: read' permission needed for cross-run artifact downloads.
master is internally consistent: the review flow uses 'pr-number' on both the upload and the download side, and the CI flow uses 'pr_number' on both. There was no name mismatch, so renaming the trigger's upload only risked breaking the review flow. The real fault in both workflows is that the artifact is legitimately absent for some trigger events and the consumer used if_no_artifact_found: fail.
…act-handoff # Conflicts: # .github/workflows/ci.yml
File
|
…ed lychee link-check work The lychee link-check migration is unrelated to this PR's stated scope (a workflow-only fix for auto-review-bot.yml/post-ci.yml). It has been preserved on the ci/lychee-link-check branch for a separate PR.
set -eo pipefail (GitHub Actions' default bash shell) means a failing gh api call aborts the step before the artifact-not-found check is ever reached, reproducing the exact class of bug this workflow is meant to fix. continue-on-error makes the step resilient to any api failure, not just an empty artifact list; downstream steps already gate on pr-number.txt actually existing, so behavior is unaffected when the fetch succeeds.
…tinue-on-error is load-bearing
The test suite added for the artifact-fetch fix had no CI enforcement - it only ran when invoked manually, so a future edit to auto-review-bot.yml/post-ci.yml could silently regress it.
Caught by actionlint/shellcheck (SC2086). Low-risk hardening in the two files this PR already touches.
Verified locally (actionlint v1.7.12) that the only non-shellcheck finding across every workflow file is a missing description on the merge-repos composite action, fixed here. Shellcheck's info/style-level findings (SC2086/SC2129/SC2002/SC2267) are pre-existing across several untouched workflow scripts; ignored via .github/actionlint.yaml rather than mass-editing files outside this PR's scope. actionlint's own checks (unpinned actions, unknown inputs, permissions, syntax) remain fully enforced.
Both are cheap checks over the same file set with no isolation need; one runner spin-up instead of two shaves fixed VM/queue startup overhead off every PR.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Workflow-only fix, split out of #12151 so it no longer needs EIP editor review.
Problem
Auto Review BotandPost CIboth fail continuously onmaster. Both have the same root cause: they consume a PR-number artifact that is legitimately absent for some trigger events, anddawidd6/action-download-artifactdefaults toif_no_artifact_found: fail.Auto Review Bot Trigger. That trigger only writespr-number.txtfor specific events, and its upload step is gated onfiles_exists == 'true'. For any other event the trigger succeeds having uploaded nothing, the bot fires anyway, and dies with##[error]no artifacts found(e.g. run31972258410).workflow_run, includingmasterpushes and scheduled runs where thesave-prjob never runs and nopr_numberartifact is produced (e.g. run31944799566).Fix
auto-review-bot.yml: fetch the artifact withgh apiand exit 0 when it is absent instead of failing. Gate the bot step on the artifact actually being present.post-ci.yml: replace the deprecateddawidd6/action-download-artifactwithactions/download-artifactpluscontinue-on-error, and gate every downstream step on the fetch having succeeded.actions: readpermission required for cross-run artifact downloads.Note on artifact naming
There is no producer/consumer name mismatch.
masteris internally consistent: the review flow usespr-numberon both the upload and download side, and the CI flow usespr_numberon both sides.An earlier revision of this PR renamed the trigger's upload from
pr-numbertopr_number, on the mistaken belief that a mismatch existed. That would have broken the review flow rather than fixing anything, and has been reverted —auto-review-trigger.ymlis untouched by this PR. Thegh apiquery accepts either name, which is harmless and guards against future drift.No EIP content is touched.