Skip to content

test(ci): admit reusable-workflow jobs in the release preflight check - #2741

Closed
kaoru0822-kitauji wants to merge 1 commit into
mainfrom
test/release-preflight-reusable-jobs
Closed

kaoru0822-kitauji wants to merge 1 commit into
mainfrom
test/release-preflight-reusable-jobs

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Problem

tests/boundary/filesystem/releaseCheckpoint.test.ts fails on main at d13c9f8 (reproduced locally). It also fails the boundary shard of open PRs, e.g. #2690 and #2720. All four the actual $job preflight admits the next action only for valid metadata cases fail:

ZodError: expected array, received undefined at jobs.qualification.steps

Cause

d13c9f8 (ci: reduce redundant compatibility and qualification work) turned the release workflow's qualification job into a reusable-workflow call (uses:), so it has no steps. The test parses .github/workflows/release.yml with a schema that requires steps on every job, although it only reads the steps of release-please and merged-release.

Fix

Make steps optional per job in the test's workflow schema and look up steps with ?.. If either inspected job loses its validation step, the test still fails: the z.string().parse(...) of the step's run rejects undefined.

Validation

  • releaseCheckpoint.test.ts: 39 passed (4 failed on main).
  • The other workflow-parsing suites (ciRequiredLanes, releaseWorkflow, ciTestReports, ciChangeScope, ciQualification, realGhidraWindowsWorkflow) already pass on main: 175 passed.
  • npm run check:fast passes.

🤖 Generated with Claude Code

d13c9f8 made the release `qualification` job call a reusable workflow,
so it declares `uses` and no `steps`. The release checkpoint test parsed
every job with required `steps`, so all four preflight cases failed with
a ZodError on main and in every PR's boundary shard. Only the inspected
release-please and merged-release jobs need steps; make the field
optional per job.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T09:57:01.561361Z c0cc777 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] This PR appears safe to merge; required preflight commands remain checked.

Summary

Updates releaseCheckpoint.test.ts to accept reusable-workflow jobs without steps.

  • The release preflight test reads jobs without steps.

Reviews (1) · Last reviewed commit: "test(ci): admit reusable-workflow jobs i..." · Reviewed by Greptile

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator Author

Superseded by 747e729 on main, which fixes the same preflight test. Closing.

@morluto morluto added the area: tests Test suite and verification label Oct 14, 2026
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Thanks, @kaoru0822-kitauji, for finding that the release preflight test rejected unrelated reusable-workflow jobs. Main now validates only the job selected for preflight and keeps the execution checks (main).

@morluto morluto added the area: build Build, CI, packaging, and publishing label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants