Skip to content

[FEATURE] ci: a cheap Owner Surface Check on PRs that runs the integration slice an owner or install change can reach #4625

Closed

Description

Proposals are welcome before implementation. For substantive changes, wait
for a responsible human maintainer to approve the scope and identify a review
contact. An automated recommendation, label alone, or silence is not approval.
See Contributing.

Is your feature request related to a problem? Please describe.
On 2026-11-21 main went red twice in integration shards that run only on merge_group or dispatch, never on the PR:

Owner-guard and install regressions reach main because a PR never runs those tests.

Describe the solution you'd like
Add a cheap PR check, Owner Surface Check (.github/workflows/owner-surface.yml plus scripts/owner_surface.py). It always reports, so it can be required later.

  • Trigger (owner surface):

    • src/apm_cli/install/* and src/apm_cli/deps/lockfile*;
    • .apm/architecture/* and scripts/architecture_linter/*;
    • tests/integration/test_architecture_*.py and tests/integration/test_install_*.py;
    • every file an owner registry selector names;
    • the check's own files.
  • Slice:

    • owner-rule mutation cases, plus test_architecture_*.py files that name a changed file or an affected owner, guard or rule;
    • every test_install_*.py file for install-path changes.

    It runs hermetic tests in 3 duration-balanced shards, targeting under 10 min.

  • Result: the check passes when no owner surface changed (the slice is skipped) and on merge_group, where the full suite runs. The full integration suite stays once per train head, never per PR.

  • Done when:

  • Out of scope:

    • making the check required. That is a maintainer gate: a merge-gate.yml EXPECTED_CHECKS edit (recommended) or a ruleset edit, both prepared but not executed;
    • changes to the full suite.

Describe alternatives you've considered
#4117, a blast-radius slice from a nightly coverage-context map, is broader and not implemented. This check is a narrower, static precursor that needs no nightly artifact.

Additional context
Refs #4117. The Ops agent org ([OPS] Lead, CI & Merge Queue) will implement it. Review contact: Daniel Meppiel (@danielmeppiel).

Activity

  1. added
    type/feature
    on Nov 21, 2026
  2. danielmeppiel commented on Nov 21, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Add an advisory PR check, Owner Surface Check (.github/workflows/owner-surface.yml + scripts/owner_surface.py), on pull_request and merge_group with no paths filter. It triggers on owner surfaces: src/apm_cli/install/, src/apm_cli/deps/lockfile, .apm/architecture/, scripts/architecture_linter/, tests/integration/test_architecture_.py, tests/integration/test_install_.py, every owner-registry selector file, and its own files. It runs only the hermetic integration slice the change can reach (owner-rule mutation cases and test_architecture_* files naming a changed file or affected owner/guard/rule, plus test_install_* for install changes) in 3 duration-balanced shards. One always() aggregate passes on a skipped slice and on merge_group. Unit tests; cicd instructions and integration-testing docs.
    Done when: unit tests cover the trigger, selection keys, deselection and the aggregate; replaying #4067 and #4007 selects their failing tests with an estimated wall clock under 10 min (recorded in the PR body); PR CI is green, with the check reporting on the PR itself.
    Out of scope: making the check required (a maintainer gate: merge-gate.yml EXPECTED_CHECKS or ruleset 9294522, prepared not executed); changes to the full integration suite or to merge_group; #4117's nightly coverage-context map.
    Review contact: Daniel Meppiel (@danielmeppiel)

  3. added
    status/accepted
    on Nov 21, 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

    area/cistatus/acceptedtype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions