0
0
requester: a release answered by termination sets Release.OK
docs/plans/0040-release-pipeline.md+5−2
| @@ -286,6 +286,9 @@ Each: what was seen (with the log), the cause, the fix, its proof. | ||
cancels (true only from 4cb9bbb3, step 7). Until then: cancel the older branch run by hand. | ||
- A request's summary can say `"phase": "released"`, `"termination": "deleted_on_request"` with `"releaseOk": false` | ||
(`releaseStatus` 200): 15 of 246 saved request logs on hat-8 (`~/.tmp/swc-system-tests/runs/*/logs/*/release.log`), and | ||
the step 1 rehearsal (2026-11-17, `~/.tmp/rehearse.log`); `finishRelease` sets it true (`internal/market/requester/ | ||
runner.go`): not root-caused. | ||
the step 1 rehearsal (2026-11-17, `~/.tmp/rehearse.log`). Cause: the bidder's `vm.terminated` (`deleted_on_request`) | ||
lands before the release ack, and the release path's termination branch (`runner.go` `release`) marks the contract | ||
Released without `finishRelease`, so `Release.OK` stays false (the contract's ReleaseAcknowledged condition already | ||
counts the termination). Fix: that branch sets `Release.OK` when a release was sent. Proof: pending (the next released | ||
contract's summary). | ||
- `scripts/ci-hand-market.sh` uses sudo on the bidder hosts (sudo on the hats is allowed by the owner). | ||
internal/market/requester/runner.go+3−0
| @@ -1824,6 +1824,9 @@ func (r *contractRunner) releaseContract(ctx context.Context, state *v1alpha1.No | ||
} | ||
if state.Termination != nil { | ||
state.Phase = v1alpha1.ContractReleased | ||
if state.Release != nil { | ||
state.Release.OK = true | ||
} | ||
if state.Timestamps != nil && state.Timestamps.Released == "" { | ||
state.Timestamps.Released = q.nowISO() | ||
} | ||