Repository navigation
MOPS-112: the release lookup names a suite of jobs and links to the run it reused - #7
Conversation
…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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| 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); |
There was a problem hiding this comment.
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 👍 / 👎.
What
Two gaps found when Talaria adopted
release-preflight'scheckslookup (TAL-2396).*now names every job whose name starts with what precedes it, for exampleci.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.runsoutput, JSON keyed likechecks, 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.checksstays boolean, so existing consumers need no change.Tests
node --test: the existing lookup test now also coversruns, a suite that passed, a suite with one skipped job, the wider suite that includes it, and a suite with no jobs.