Skip to content

CI: stop failing Auto Review Bot and Post CI when no PR-number artifact exists - #12177

Open
minksy-ux wants to merge 13 commits into
ethereum:masterfrom
minksy-ux:ci/workflow-artifact-handoff
Open

minksy-ux wants to merge 13 commits into
ethereum:masterfrom
minksy-ux:ci/workflow-artifact-handoff

Conversation

@minksy-ux

@minksy-ux minksy-ux commented Aug 17, 2026 •

Copy link
Copy Markdown

Workflow-only fix, split out of #12151 so it no longer needs EIP editor review.

Problem

Auto Review Bot and Post CI both fail continuously on master. Both have the same root cause: they consume a PR-number artifact that is legitimately absent for some trigger events, and dawidd6/action-download-artifact defaults to if_no_artifact_found: fail.

  • Auto Review Bot runs on every completion of Auto Review Bot Trigger. That trigger only writes pr-number.txt for specific events, and its upload step is gated on files_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. run 31972258410).
  • Post CI runs on every CI workflow_run, including master pushes and scheduled runs where the save-pr job never runs and no pr_number artifact is produced (e.g. run 31944799566).

Fix

  • auto-review-bot.yml: fetch the artifact with gh api and exit 0 when it is absent instead of failing. Gate the bot step on the artifact actually being present.
  • post-ci.yml: replace the deprecated dawidd6/action-download-artifact with actions/download-artifact plus continue-on-error, and gate every downstream step on the fetch having succeeded.
  • Add the actions: read permission required for cross-run artifact downloads.

Note on artifact naming

There is no producer/consumer name mismatch. master is internally consistent: the review flow uses pr-number on both the upload and download side, and the CI flow uses pr_number on both sides.

An earlier revision of this PR renamed the trigger's upload from pr-number to pr_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.yml is untouched by this PR. The gh api query accepts either name, which is harmless and guards against future drift.

No EIP content is touched.

- 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.
@minksy-ux
minksy-ux requested a review from eth-bot as a code owner August 17, 2026 04:57
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
@eth-bot

eth-bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Collaborator

File .github/actionlint.yaml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/actions/merge-repos/action.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/dependabot.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/auto-review-bot.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/auto-review-trigger.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/auto-stagnate-bot.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/ci.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/jekyll-label-bot.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/jekyll.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/post-ci.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File .github/workflows/workflow-security.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File GOVERNANCE.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File MIGRATION.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File README.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File SECURITY.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File SECURITY_IMPROVEMENT_PLAN.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File SECURITY_MIGRATION_GUIDE.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File VALIDATION_SPEC.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File WORKFLOW_RELIABILITY_PLAN.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File config/shared-workflow-manifest.yml

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File docs

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File docs/validation-spec-v1.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File scripts

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File scripts/verify

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File scripts/verify-eip

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/fixtures

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/fixtures/conflicting-manifest.json

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/fixtures/invalid-missing-discussions-to.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/fixtures/missing-repository-file.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/fixtures/valid-eip.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/fixtures/valid-erc.md

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/run.sh

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/validation/vectors.json

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/workflows

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/workflows/actionlint.sh

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/workflows/run.sh

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/workflows/security.sh

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

File tests/workflows/sync.sh

Requires 2 more reviews from Editors: @g11tech, @jochem-brouwer, @lightclient, @samwilsn, @xinbenlv

@eth-bot eth-bot added the e-consensus Waiting on editor consensus label Aug 20, 2026
…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.
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.
@github-actions github-actions Bot added c-new Creates a brand new proposal s-draft This EIP is a Draft t-core t-erc labels Aug 21, 2026

@minksy-ux minksy-ux left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

review

minksy-ux and others added 2 commits November 10, 2026 09:16
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-new Creates a brand new proposal e-consensus Waiting on editor consensus s-draft This EIP is a Draft t-core t-erc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants