Skip to content

perf(ci): scope a release merge group's test selection to the release diff #12633

Closed

Description

@kyle-sexton

Refs: #12284

Problem

Row 14 of the #12284 findings found that merge groups holding a release pull request widen test selection to the whole tree (quoted baseline: about 38 a day). Each full-tree run costs runner time while the release diff touches only plugin versions, changelogs and fragments. The merge queue re-runs full CI per group: 1,885 groups and 200 run-hours in 7 days.

Fix

Scope a release merge group's test selection to the release diff, the same way any other group is scoped. Keep --check-release on every merge_group commit as ADR 0048 requires (docs/adr/0048-release-plugins-from-changelog-fragments-through-a-bot-maintained-release-pr.md:124-128); this changes which suites run, not how a release merges.

Builder: Automation Lanes (the change is in the merge-queue test selection).

Done when

  • A merge group whose only entry is the release pull request selects the suites its diff touches, not the whole tree.
  • --check-release still runs on every merge_group commit.
  • Release merge-group run-hours per day are measured for 7 days before and after, and posted here.

Filed by the issue-triage session from #12284's findings.

Activity

  1. added
    needs-triage
    on Nov 3, 2026
  2. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

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

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

    Understood: when a merge group holds only the release pull request, test selection should follow the release diff instead of covering the whole tree. --check-release must still run on every merge_group commit.

    The first two done-when items can be checked in a lane run. The third (7 days of run-hour measurements before and after) needs time to pass, so it can't be done in one run.

    The recent commit "perf(ci): scope a release merge group's test selection to the release diff (#12781)" on main looks like it may already implement this. A maintainer should confirm that before more work starts.

    No duplicates found among the open issues.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Nov 3, 2026
  4. added
    status: ready
    on Nov 3, 2026
  5. added
    admission-deferred
    agent-ready
    and removed
    admission-deferred
    on Nov 3, 2026
  6. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor
    No description provided.
  7. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor
    No description provided.
  8. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 41571552531, the work-resolve-issue run that agent-ready started, before it did any work; that run ended at 2026-11-03T04:43:53Z. work-unblock has now removed and added agent-ready back to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last added agent-ready or a run last reported, work-unblock waits longer before each one, up to 24 hours.

  9. 4 remaining items

  10. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    The lanes App's pull request #12781 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it at status: confirmed for a check of what that pull request left, until a **Decision recorded.** comment says what is left or someone closes it.

  11. removed
    status: ready
    agent-ready
    on Nov 3, 2026
  12. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (attempt 1 of 2).

  13. added
    status: ready
    on Nov 3, 2026
  14. added
    needs-owner-decision
    and removed
    status: ready
    on Nov 3, 2026
  15. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its done-when asks for what an unattended lane run cannot perform: item 3 (tracker-output: "Release merge-group run-hours per day are measured for 7 days before and afte..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (host-run); merged pull request #12781 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  16. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

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

  17. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Delivered: closing as completed.
    Agent choice, not an owner answer.

    What #12781 (75b2dae) delivered, checked on origin/main:

    • A merge group whose only entry is the release pull request selects the suites its diff touches, not the whole tree: scripts/resolve-diff-base.sh no longer sends a group whose diff touches a plugin or marketplace manifest to the whole tree, and scripts/resolve-diff-base.test.sh now expects the queue's base for those cases.
    • --check-release still runs on every merge_group commit: perf(ci): scope a release merge group's test selection to the release diff #12781 did not change the release gate step, which resolves the queued pull request on every merge group and runs scripts/check-changelog-fragments.sh --check-release against the group's base SHA when that pull request is the release (.github/workflows/pr-require-checks.yml:2647-2661).

    Carried: body item 3, the 7-day before-and-after measurement of release merge-group run-hours, moves to host-run #13077. It is a measurement over time, which no lane run can perform, and #12781's own commit lists it under remaining work. Nothing else is left on this issue.

  18. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Closing as completed: items 1-2 delivered by #12781; the 7-day measurement is carried to #13077 (record above).

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

    needs-owner-decision

    Type

    Fields

    Work status

    needs-owner-decision

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions