Commit e9b18e5
committed
fix(gate): stop observed release plans from clearing the revision under test
`just release-profile nightly code` ran the complete gate, passed every step
including `source.verify`, and then refused at `confirm-head`:
tested-head is empty; refusing to publish a revision nothing recorded
Correct refusal, self-inflicted cause. Four contracts in
tests/capsem-release/ run a real release plan against a recording runner to
read back its argv, and `RecordHead` wrote that runner's empty capture over
the running gate's `tested-head`.
This is the same bug as the source state, and this morning's fix for that one
did not reach it. That fix taught the filesystem `Action` subclasses to check
`context.observing`; `RecordHead` writes through the `write_text` helper, which
no `Action` mediates. Claiming the fix covered "every action" was wrong -- it
covered the ones that happened to be actions.
`RecordHead` now checks the same flag as `RecordSourceState`, and the conftest
guard watches the set of files a run records its identity in rather than the
single one that had failed by then. Reverting the fix reds the guard on all
four contracts, by name, in one second -- which is the point: this cost an
hour of gate and one aborted release to find.1 parent f8401c3 commit e9b18e5
3 files changed
Lines changed: 43 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
581 | 590 | | |
582 | 591 | | |
583 | 592 | | |
| |||
596 | 605 | | |
597 | 606 | | |
598 | 607 | | |
599 | | - | |
| 608 | + | |
| 609 | + | |
600 | 610 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
0 commit comments