Skip to content

ci: Crashed PR check scripts now warn instead of block - #1992

Merged
marcleblanc2 merged 6 commits into
mainfrom
marc/check-redirects-robust
Sep 17, 2026
Merged

marcleblanc2 merged 6 commits into
mainfrom
marc/check-redirects-robust

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

When a PR check script crashes, the workflow now comments that the check could not run instead of failing the PR

Unblocks #1982

Testing

  • Tested the run: steps locally for the crash, clean and findings paths
  • actionlint passes

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sourcegraph-docs Ignored Ignored Preview Sep 17, 2026 10:02am UTC

Request Review

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@marcleblanc2 marcleblanc2 changed the title ci: Do not fail or comment when a PR check crashes ci: PR check crash no longer fails PR Sep 17, 2026
@marcleblanc2
marcleblanc2 force-pushed the marc/check-redirects-robust branch 2 times, most recently from 9e30c17 to 67c744b Compare September 17, 2026 06:08
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

✅ This revision breaks no redirects

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

✅ This revision introduces no broken links

marcleblanc2 added a commit that referenced this pull request Sep 17, 2026
@marcleblanc2 marcleblanc2 changed the title ci: PR check crash no longer fails PR ci: Crashed PR check scripts warn instead of block PR Sep 17, 2026
@marcleblanc2 marcleblanc2 changed the title ci: Crashed PR check scripts warn instead of block PR ci: Crashed PR check scripts now warn instead of block Sep 17, 2026
@marcleblanc2
marcleblanc2 requested review from a team and enriquegh September 17, 2026 06:21
@marcleblanc2
marcleblanc2 enabled auto-merge (squash) September 17, 2026 06:24
marcleblanc2 and others added 6 commits September 17, 2026 04:02
The redirects check on #1982 posted a comment containing only its hidden
marker, then failed. The PR changed src/data/redirects.ts from
module.exports to export {}, and its copy of dev/check-redirects.mjs could
no longer read the base branch's file. The workflow could not tell that
crash (Node exits 1) from findings (also exit 1), so it treated an empty
report as a finding.

- check-redirects.mjs accepts both export styles, since CI runs the PR's
  script against the base branch too
- Both check workflows classify by output: the scripts write their result in
  one go at the end, so a crash leaves it empty. A crash is a workflow
  warning; the comment, review and fail steps only run on a real result
- The comment step never posts a report it does not have

Amp-Thread-ID: https://ampcode.com/threads/T-01a0adcb-1b03-716a-852a-cc3746148488
Co-authored-by: Amp <amp@ampcode.com>
Same pattern as the links and redirects checks: a crash at import time exits
1 like findings do, and the report step then died on the empty findings file.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0adcb-1b03-716a-852a-cc3746148488
Co-authored-by: Amp <amp@ampcode.com>
A crashed check used to warn in the job log and skip commenting, so
nobody would notice it was not running. Now the links, redirects, and
spelling checks post (or update) their summary comment saying the check
could not run on this revision, that it is a problem with the check and
not the PR, and linking the job log. The check still passes. The next
run that completes replaces the comment as usual.

The all-clear wording no longer claims earlier findings were fixed,
since the earlier comment may have been a crash notice.

dev/post-spelling-review.mjs --crashed posts the spelling notice,
reusing the summary upsert so a comment minimized as resolved is
reopened.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0adcb-1b03-716a-852a-cc3746148488
Co-authored-by: Amp <amp@ampcode.com>
@marcleblanc2
marcleblanc2 force-pushed the marc/check-redirects-robust branch from f6df330 to b714b50 Compare September 17, 2026 10:02
@marcleblanc2
marcleblanc2 merged commit 71a74eb into main Sep 17, 2026
6 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/check-redirects-robust branch September 17, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants