Skip to content

Merge paths: review_kit merge and lens_arm must require a full tooling-test run #1478

Backlog

Description

@scuttletoby

Follow-up from #1401 (PR runs select only the tooling tests a change can affect, #1390 tier 1), round-2 review point 5.

Problem. Since #1401 a pull-request run of fork-tests.yml can be partial: the Changes job picks only the tooling tests the change can affect, and its fork-ci-result check is green when those pass. The merge conveyor never counts a pull-request run (it starts a full run of the head itself), but two other merge paths do:

  • review_kit merge (review_merge.py) judges the lens reads and then relies on GitHub's required checks. It never asks whether the green check came from a full run.
  • lens_arm (lensArmRun.ts) arms GitHub auto-merge, and GitHub merges on the same green check.

So a pull request could merge on a run that skipped tests.

Why not in #1401. Job outputs cannot be read through the API. The only marker a run leaves today is the tested main notice from fork_ci_result. A full-run check needs three parts: a new notice in the workflow (for example tooling tests: all), a read of the check-run annotations in Python for review_merge, and the same read in TypeScript for lensArmRun. This is merge-path code. #1401's last round has no review after it, so it should not go in unreviewed.

Proposal.

  1. fork_ci_result writes a notice naming the run's tooling scope (all, or chosen).
  2. review_merge.py refuses to merge unless the head's green fork-ci-result carries all. It starts a full run when it does not, or says to start one.
  3. lensArmRun.ts refuses to arm unless the same holds, next to its existing gateProblem refusal.
  4. Failing-first tests for both: a partial run's green check is refused, and a full run's is accepted.

Critical code (merge path): two independent high reviewers.

Activity

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions