Skip to content

MOPS-112: the release lookup names a suite of jobs and links to the run it reused - #7

Merged
kiliantyler merged 1 commit into
mainfrom
feat/release-check-suites
Nov 17, 2026
Merged

kiliantyler merged 1 commit into
mainfrom
feat/release-check-suites

Conversation

@kiliantyler

Copy link
Copy Markdown
Contributor

What

Two gaps found when Talaria adopted release-preflight's checks lookup (TAL-2396).

  • Suites. Talaria's Web suite is 20 jobs with no single gate, so its release listed all 20 by hand, with a test keeping the list in step with the CI matrices. A job name ending in * now names every job whose name starts with what precedes it, for example ci.yml: web / *. The suite passed when it has at least one job and every one succeeded. A skipped, failed or running job in it means it did not, and so does a suite with no jobs.
  • Links. A new runs output, JSON keyed like checks, gives the page of the CI run each check was read from, so a release summary can link to what it reused. A workflow with no run on the commit has no entry.

checks stays boolean, so existing consumers need no change.

Tests

node --test: the existing lookup test now also covers runs, a suite that passed, a suite with one skipped job, the wider suite that includes it, and a suite with no jobs.

…un it reused

A job name ending in * is every job that starts with what precedes it: the suite passed when it has a job and
all of them succeeded. A runs output gives the page of the CI run each check was read from. checks stays
boolean, so existing workflows are unaffected.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T23:32:53.719901Z e0325ff PR opened
🔒 Security Review ✅ Completed 2026-11-17T23:37:45.463234Z e0325ff 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.

@kiliantyler
kiliantyler merged commit c3d669b into main Nov 17, 2026
1 check passed
@kiliantyler
kiliantyler deleted the feat/release-check-suites branch November 17, 2026 23:32

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0325ff589

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/release.js
const page = await api("GET", path);
if (page.status !== 200) throw failed("Reading a run's jobs failed", page);
for (const job of page.data.jobs) if (job.conclusion === "success") names.add(job.name);
for (const job of page.data.jobs) conclusions.set(job.name, job.conclusion);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve every job's conclusion when evaluating suites

When multiple jobs share a display name—for example, matrix jobs with a custom name that omits a matrix dimension—this map retains only the last job's conclusion. If a failed or skipped job is followed by a successful job with the same name, a wildcard suite incorrectly passes, allowing preflight to report verified=true and the release to skip its own verification. A mocked run containing two web / tests jobs, first failed and then successful, reproduces this for ci.yml: web / *. Preserve all matching job records, or aggregate duplicate names so that any non-success makes the suite fail.

Useful? React with 👍 / 👎.

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.

1 participant