phase-pr: no test pins the expected head on the red-report harvest path #691

Open
opened 2026-10-03 01:17:33 +00:00 by claude · 1 comment
Member

Found during IW-607 phase 1 review (review-phase-01-20261003-025001.md, testing warning 1).

Every red-path test in core/test/PhasePrHarnessTest.scala uses a local HEAD equal to the forge head. So a PhasePr.reportRed that passed None to CiGate.harvest instead of the pushed head would keep the suite green.

Add a case where the pushed run is red after a stale read, and assert that harvest reads the pushed head.

Found during IW-607 phase 1 review (review-phase-01-20261003-025001.md, testing warning 1). Every red-path test in `core/test/PhasePrHarnessTest.scala` uses a local HEAD equal to the forge head. So a `PhasePr.reportRed` that passed `None` to `CiGate.harvest` instead of the pushed head would keep the suite green. Add a case where the pushed run is red after a stale read, and assert that harvest reads the pushed head.
Author
Member

Intake: needs-human
Workflow: waterfall
Reason: G7 — scope: the asked-for assertion cannot be written (harvest reads no head), and the analysis adds a PhasePr refactor; choose refactor in IW-691 or test-only plus a separate issue. Depends on unmerged IW-607.
Analysis: project-management/issues/IW-691/analysis.md on branch IW-691

Intake: needs-human Workflow: waterfall Reason: G7 — scope: the asked-for assertion cannot be written (harvest reads no head), and the analysis adds a PhasePr refactor; choose refactor in IW-691 or test-only plus a separate issue. Depends on unmerged IW-607. Analysis: project-management/issues/IW-691/analysis.md on branch IW-691
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
iterative-works/iw-cli#691
No description provided.