Skip to content

Measure scoped CI against actual merge-group results - #388

Merged
n0rpan merged 8 commits into
mainfrom
ci/observe-small-merge-candidates
Dec 3, 2026
Merged

n0rpan merged 8 commits into
mainfrom
ci/observe-small-merge-candidates

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Replaces the queue-script-only observer. No new workflow, runner, checkout depth, required check or release change.

  • The existing pr_scope.py version step logs the PR-shaped alternative for each exact merge candidate. It reuses the same no-renames changed paths and classifier as today's full merge-group plan. Existing outputs are unchanged.
  • desktop/ci/queue_timing.py --recent 100 measures queue admission, runner wait, per-job execution and verdict timing; reports the last substantive job before the verdict, omitted failures with an otherwise green scoped result, unknowns, and observed scope frequency ranked by estimated time saved. It requires authenticated gh for timeline access. Historical scope is only reconstructed from an exact logged base and local candidate objects. Missing jobs and canceled runs do not count as evidence of a safe narrower gate.
  • Promotion criteria are documented: at least 50 comparable code candidates over a week, representative scope coverage, and no missed failures of the required gate. Shared/native, packaging, toolchain and unknown changes retain broad checks unless validated separately.

Evidence and tests

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 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-12-03T19:00:23.315280Z 02ed1e7 Draft marked ready
🔒 Security Review ✅ Completed 2026-12-03T19:04:39.081635Z 02ed1e7 Draft marked ready
ℹ️ 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.

@n0rpan n0rpan changed the title Measure a narrower merge gate without changing required CI Measure scoped CI against actual merge-group results Dec 3, 2026

@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: c6c18f10d4

ℹ️ 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 desktop/ci/pr_scope.py Resolved

@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: 4b3be7f1f0

ℹ️ 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 desktop/ci/queue_timing.py Resolved
On 2026-12-03, 67 completed candidate runs served 29 pull requests: 25 of
them needed two or more runs, and 17 runs failed. A full run took 42 minutes
at the median while a pull request spent 113 in the queue. The report now
shows that gap: runs per pull request, and each failed job with its first
failed step.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NazrMMqBKWzYjLU4xFBcbz

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Taking this over at the maintainer's request. Pushed 1 commit: the report now counts candidate runs per pull request and names each failed job with its first failed step.

Run on the 67 completed candidate runs of 2026-12-03 (--snapshot, jobs fetched from the API):

So the queue time is failures times rebuilds more than the length of one run. I would land #386 and #394 first and let this comparison collect before proposing any narrower gate.

Not verified: --recent end to end. This session cannot call GraphQL, so the admission lookup did not run here; the new lines only read the REST job list that --snapshot also reads.


Generated by Claude Code

Both latest-client jobs are continue-on-error outside the nightly run, so
the real scoped gate passes when one fails. The comparison required every
selected job to succeed: an upstream release would have hidden a genuine
miss as "scoped not green" and dropped valid green timing pairs.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NazrMMqBKWzYjLU4xFBcbz

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 4cd4930


Generated by Claude Code

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit 02ed1e7 is reviewed with nothing blocking; it has entered the merge queue.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 4cd4930

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the maintainer’s queue request, for commit 4cd4930.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 4cd4930f44

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

@n0rpan n0rpan added the full-ci label Dec 3, 2026 — with Claude
@n0rpan n0rpan removed the full-ci label Dec 3, 2026

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

The earlier request was answered with a code review of 4cd4930; the security row still names an older commit. Please run the security review on 4cd4930.


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 4cd4930f44

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

#401 added a sentence to the paragraph of docs/verification.md that this
branch also extends, so the queue could no longer build this candidate.
Both stay: main's sentence about the candidate-build observation, then
this branch's two paragraphs on the scoped-gate comparison.

Checked against main at 97f609a.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NazrMMqBKWzYjLU4xFBcbz

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 02ed1e7


Generated by Claude Code

@n0rpan
n0rpan removed this pull request from the merge queue due to a manual request Dec 3, 2026
@n0rpan
n0rpan marked this pull request as draft December 3, 2026 18:34
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 18:34
n0rpan pushed a commit that referenced this pull request Dec 3, 2026
A pull request that is in the queue while the gate holds it is taken out
by the gate. The gate then read its own removal as the end of the
maintainer's request: #388 was queued by hand at 18:16 UTC on 2026-12-03
while its security review was missing, removed by the gate at 18:32, and
answered "previous queue request expired after removal" once the reviews
were in.

GitHub records the gate's removal and one made by hand identically (reason
"manual", the maintainer's account), and its own as "failed_checks" by
github-merge-queue. So the gate notes the time of a removal it made in its
status comment, and only that removal leaves the request standing. A
removal GitHub made first is not recorded.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NazrMMqBKWzYjLU4xFBcbz
n0rpan added a commit that referenced this pull request Dec 3, 2026
* Start the security review of a requested head from the merge gate

The gate asks for a security review of the head with a comment. Codex
answers that comment with a code review and leaves its security entry at
an older commit, so the gate waits for an answer that does not come. On
2026-12-03, #394, #388 and #401 each waited about an hour that way, with
consent given, checks green and no findings, until the maintainer merged
around the gate.

Codex starts its security review when a pull request opens or a draft is
marked ready. Every pull request the gate admitted that day carried the
trigger "Draft marked ready" on both reviews, and #388 received both for
its head within two minutes of being made a draft and ready again.

After recording the request in its comment, the gate now does that itself,
once per head commit. If it cannot mark the pull request ready again it
retries once and fails the run.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NazrMMqBKWzYjLU4xFBcbz

* Keep the queue request when the merge gate removes a held pull request

A pull request that is in the queue while the gate holds it is taken out
by the gate. The gate then read its own removal as the end of the
maintainer's request: #388 was queued by hand at 18:16 UTC on 2026-12-03
while its security review was missing, removed by the gate at 18:32, and
answered "previous queue request expired after removal" once the reviews
were in.

GitHub records the gate's removal and one made by hand identically (reason
"manual", the maintainer's account), and its own as "failed_checks" by
github-merge-queue. So the gate notes the time of a removal it made in its
status comment, and only that removal leaves the request standing. A
removal GitHub made first is not recorded.

Co-Authored-By: Claude Mythos 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NazrMMqBKWzYjLU4xFBcbz

---------

Co-authored-by: Claude <[email protected]>

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 02ed1e7


Generated by Claude Code

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the maintainer’s queue request, for commit 02ed1e7.

@n0rpan
n0rpan marked this pull request as draft December 3, 2026 18:59
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 18:59

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The red Stock clients (baseline) on 02ed1e7 is not from this change. Job 144502079987 stopped in Install stock Claude Code from the official release, downloading from downloads.claude.ai:

curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)

curl --retry 3 does not retry that error. This pull request changes pr_scope.py, queue_timing.py, their tests and docs. The run is still going (one iOS job is waiting for a runner); I will re-run the failed job once when it ends. This download is the same kind of outside dependency #394 removes for the npm installs, and it is not covered there.


Generated by Claude Code

@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 3be3530 Dec 3, 2026
56 of 58 checks passed
@n0rpan
n0rpan deleted the ci/observe-small-merge-candidates branch December 3, 2026 22:24

This branch was previously deployed

1 inactive deployment
auto-queue — 02ed1e7c Deployed Dec 3, 2026 by n0rpan via Queue when green and reviewed #8347
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