Skip to content

perf(ci): measure release merge-group run-hours, 7 days before and after #12781 #13077

Closed

Description

@kyle-sexton

Refs: #12633

Problem

#12781 (75b2dae) scoped a release merge group's test selection to the release diff (scripts/resolve-diff-base.sh). #12633's last done-when item asks for the measured effect; #12633 closed with its other items delivered and this one carried here. It is a measurement over time, which an unattended lane run cannot perform, so it is host work.

Done when

  • Release merge-group run-hours per day are measured for the 7 days before, and measured with the available after window (2026-11-03T08:16Z to 2026-11-06T19:00Z, 3.45 days), and posted here.

The after window starts when #12781 merged (commit 75b2dae, 2026-11-03T08:16Z). The owner asked on 2026-11-06 for this to be measured now rather than after the full 7-day after window, so the after window is the 3.45 days available.

Filed by Issue Triage. This was generated by AI.

Activity

  1. added
    host-run
    on Nov 4, 2026
  2. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: read-only
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: this asks for release merge-group run-hours per day, measured for the 7 days before and the 7 days after #12781 merged (2026-11-03T08:16Z), with the numbers posted here. This carries over the last done-when item from #12633. The measurement runs over time, so an unattended lane run can't do it. It is host work, and the existing host-run label already covers that. Nothing else is missing. I found no duplicate among the open issues.

    Automated triage, applied by the lanes App.

  3. added
    status: ready
    on Nov 4, 2026
  4. added
    status: confirmed
    and removed
    status: ready
    on Nov 4, 2026
  5. melodic-automation-lanes commented on Nov 4, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its done-when asks for what an unattended lane run cannot perform: item 1 (tracker-output: "Release merge-group run-hours per day are measured for 7 days before and afte..."); no done-when item is left for the lane, so it goes to the host queue (host-run); it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. melodic-automation-lanes commented on Nov 4, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  7. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Claimed by poteto (desk session 789d5794). The 7-day BEFORE and an interim AFTER (from the change's merge until now) get posted here today, with the method and the script path, so the final AFTER is the same command run over the full window once it closes. That final AFTER, and this issue's close, can't come before the 7-day after window ends.

  8. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Before measurement and interim after: release merge-group run-hours per day

    Run-hours per day for release merge groups fell from 72.3 to 24.4, about 66% less. Per group they fell from 1.57 to 0.47 job-hours, while volume rose slightly from 46.1 to 51.5 groups a day. The per-group cost carries the drop, not fewer groups.

    Method

    Script: .work/gh-monitor/trends/13077-measure.py <from> <to> [--sample N] (hub-local, run with python3 -I). Line numbers below are on origin/main at e5554b8.

    • Change under test: perf(ci): scope a release merge group's test selection to the release diff #12781 (75b2dae) removed the manifest-diff branch that sent any merge group touching .claude-plugin/marketplace.json or plugins/*/.claude-plugin/plugin.json to the whole tree. Now scripts/resolve-diff-base.sh:34-38 gives every merge group with a usable base the queue's base SHA. The resolver's only caller is .github/workflows/pr-require-checks.yml:1071-1077.
    • Release run: a workflow run with event=merge_group, actor=melodic-plugin-release[bot] (the release PRs' author), and a head commit message starting chore(release):.
      • The two tests agree on every run in both windows: 0 actor-matched runs lack the title.
      • On one unfiltered 100-run page (2026-11-02 19:06Z to 23:59Z), the 11 runs with a chore(release): head commit are exactly the 11 with that actor.
      • Every release run belongs to the single workflow pr-require-checks.
    • Release merge group: one distinct gh-readonly-queue/main/pr-<N>-<sha> head branch. Because the head commit is the release PR's, this counts groups whose newest entry is the release PR.
    • Run-hours: the summed job durations (completed_at − started_at) of every attempt (jobs?filter=all), on an evenly spaced sample of 25 completed runs per window. The sample mean is scaled to every completed release run in the window. No run in either window had a re-run attempt.
    • Wall-clock: updated_at − run_started_at, reported for every run as a full-n cross-check.
    • Listing: one actions/runs call per UTC day. Each day held fewer than 100 release runs.

    BEFORE: 2026-10-27T08:16Z to 2026-11-03T08:16Z (7.00 days)

    measure value
    release merge-group runs 324 (46.3/day)
    release merge groups 323 (46.1/day)
    release PRs heading those groups 253
    summed job hours per run, sample mean (n=25 of 324) 1.563
    summed job hours per run, sample median / min / max 1.569 / 1.391 / 1.719
    run-hours per day 72.34
    run-hours per release merge group 1.568
    wall-clock hours per run, all 324: mean / median 0.153 / 0.152

    Conclusions: 282 success, 23 failure, 19 cancelled.

    Interim AFTER: 2026-11-03T08:16Z to 2026-11-04T15:30Z (interim, 1.30 of 7 days)

    measure value
    release merge-group runs 67 (51.5/day)
    release merge groups 67 (51.5/day)
    release PRs heading those groups 61
    summed job hours per run, sample mean (n=25 of 66 completed) 0.481
    summed job hours per run, sample median / min / max 0.347 / 0.181 / 1.059
    run-hours per day 24.38
    run-hours per release merge group 0.474
    wall-clock hours per run, all 66 completed: mean / median 0.108 / 0.089

    Conclusions: 60 success, 6 failure, 1 in progress. The window includes the GitHub incident of 2026-11-04T09:54Z to 11:44Z; no runs were excluded for it.

    The BEFORE sample is tight (1.39-1.72 h), consistent with a whole-tree run every time. The AFTER spread (0.18-1.06 h) is what diff-scoped selection looks like: a release that bumps many plugins selects more suites.

    Final AFTER (after 2026-11-10T08:16Z)

    python3 -I .work/gh-monitor/trends/13077-measure.py 2026-11-03T08:16:00Z 2026-11-10T08:16:00Z --sample 25
    

    Run it with no --cache, so it reads fresh. Expected cost: 8 listing calls and 25 jobs calls.

    UNVERIFIED

    • Groups where the release PR is not the newest entry are not counted. Before perf(ci): scope a release merge group's test selection to the release diff #12781, the manifest rule tested the diff from merge_group.base_sha. If a stacked group's base is main rather than the entry ahead of it, non-release groups queued behind a release also went to the whole tree. In that case this count understates the saving, and non-release groups are not a clean control. Whether GitHub sets a stacked group's base_sha to main or to the previous entry was not checked.
    • Run-hours are a 25-run sample scaled up, not a full sum. The BEFORE spread is narrow. The AFTER spread is wide, so the interim mean has more sampling error.
  9. kyle-sexton commented on Nov 6, 2026

    @kyle-sexton
    MemberAuthor

    Result: release merge-group run-hours per day, measured with the available after window

    Release merge-group run-hours per day fell from 72.34 to 18.67, about 74% less, after #12781. Volume rose slightly (46.1 to 51.9 groups a day), so the drop comes from each group costing less: 1.568 job-hours per group before, 0.360 after.

    The owner asked on 2026-11-06 for this to be measured now, so the AFTER window is 3.45 days instead of 7.

    window dates (UTC) length runs (n) groups sampled runs job-h per run, sample mean (median, min-max) run-hours per day job-h per group wall-clock h per run, mean / median (all runs)
    BEFORE 2026-10-27T08:16Z to 2026-11-03T08:16Z 7.00 d 324 (46.3/day) 323 25 of 324 1.563 (1.569, 1.391-1.719) 72.34 1.568 0.153 / 0.152
    AFTER 2026-11-03T08:16Z to 2026-11-06T19:00Z 3.45 d 179 (51.9/day) 179 25 of 179 0.360 (0.221, 0.184-1.067) 18.67 0.360 0.098 / 0.091

    AFTER conclusions: 168 success, 11 failure, no re-run attempts. The BEFORE row is the 7-day baseline posted above, unchanged.

    Direction: down, and clear. The two ranges do not overlap: the highest AFTER sample (1.067 h) is below the lowest BEFORE sample (1.391 h). The full-n wall-clock cross-check moves the same way (0.153 to 0.098 h mean).

    Confidence, reduced: the AFTER window is 3.45 of 7 days, so it covers fewer release patterns (a release that bumps many plugins selects more suites, which is what the 1.067 h outlier looks like). Run-hours come from a 25-run sample scaled up, and the AFTER spread is wide, so the 18.67 figure carries more sampling error than the BEFORE one; the direction does not depend on it. It includes the GitHub incident of 2026-11-04T09:54Z to 11:44Z, with no runs excluded. The UNVERIFIED point above about stacked groups behind a release still stands: if it holds, this understates the saving.

    Command: python3 -I .work/gh-monitor/trends/13077-measure.py 2026-11-03T08:16:00Z 2026-11-06T19:00:00Z --sample 25 (hub-local, 29 API calls, no cache).

  10. removed
    status: confirmed
    host-run
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    confirmed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions