Skip to the content
Howdah

being built · no release yet

Search

Skip the list of pages

ADR-0337: A pull request can be held to its new code alone

Status: Accepted Date: 2026-11-29

Context

A pull request and a merge group are held to their trees' floors and to their new code's (ADR-0005, ADR-0022). The default branch is held to its trees' floors on every push and schedule.

A change to what decides how the gate runs reaches every unit (ADR-0005). On such a pull request a survivor or an unjudged mutant on a line the change never touched fails the run, and the change waits on code it did not write.

Decision

  1. newCode.alone, false by default, holds a pull request and a merge group to their new code alone. The verdict judges the new code against newCode.floor and shows each tree against its floor without failing on it, as a watch round does. The security sets are not held either.
  2. A floor a command names still decides. --security and --suite hold what they hold.
  3. Such a run judges the units that hold new code and none beside them. The units it would run that hold no line of new code are left out as a sample leaves units out (ADR-0020), each tree's estimate counting them.
  4. pre-push is held as the push's pull request will be: to its new code alone where newCode.alone is on, running the same units.
  5. No other run changes. A push or a schedule on the default branch and a run with no pull request are held to their trees and run every unit they reach, whatever the setting says.
  6. What fails a run beside a floor still fails it: a floor lowered without its reason, a raise not committed where baseline.improvement requires it, a held unit its holding tests miss lines of, a unit a time budget left unjudged, and what cannot be judged.
  7. The verdict names newCode.alone as a loose value in force (ADR-0142).

Consequences

  • A pull request passes where its own lines are killed, and merges without waiting on survivors elsewhere in a tree.
  • A survivor outside the new code, and one a changed test lets through in code the change did not touch, is found by the default branch's run, not by the pull request.
  • Where newCode.alone is false, a pull request is held to its trees and its new code, as before.