rehearsal: snapshot-advance comments carry per-phase rebuild timings; arc-start checklist walks fixed costs #1139

Closed
opened 2026-09-02 05:59:21 +00:00 by ben · 2 comments
Owner

Why (from the #854 phase-5 retrospective)

91 of the arc's 112 gateway-image rebuilds ran at the old ~60-minute cost; the 15-minute rebased image (#1102 ruling B, #1108) landed 36 h before green. The cost was invisible for a week because nothing surfaced per-rebuild timings where anyone looks. The instrumentation now exists (test-results/drive-device/gateway-image-rebuild.log records per-phase timings since #1108) — it just never reaches the tracker.

What

  1. The #661 auto-rebuild's snapshot-advance comment on the drive issue carries the rebuild's total duration and per-phase breakdown (provision / nixos-install / installer-base / snapshot), read from the rebuild log of that run.
  2. docs/PROCESS.md, drive-arc section, arc-start checklist gains one line: "walk every fixed cost the loop will pay per cycle; any recurring step >30 min is a ticket on day one, not a tax."

Acceptance

  • The next snapshot-advance comment on any drive issue shows total XXmYYs plus the four phase timings.
  • A rebuild whose log is missing the timings still posts (with timings unavailable), never blocks the advance.
  • The PROCESS.md line is in the arc-start checklist.

Evidence: phase-5 report — rebuild tax ~95 h background compute, 60 min → 15 min only in the final 36 h.

## Why (from the #854 phase-5 retrospective) 91 of the arc's 112 gateway-image rebuilds ran at the old ~60-minute cost; the 15-minute rebased image (#1102 ruling B, #1108) landed 36 h before green. The cost was invisible for a week because nothing surfaced per-rebuild timings where anyone looks. The instrumentation now exists (`test-results/drive-device/gateway-image-rebuild.log` records per-phase timings since #1108) — it just never reaches the tracker. ## What 1. The #661 auto-rebuild's **snapshot-advance comment** on the drive issue carries the rebuild's total duration and per-phase breakdown (provision / nixos-install / installer-base / snapshot), read from the rebuild log of that run. 2. `docs/PROCESS.md`, drive-arc section, arc-start checklist gains one line: *"walk every fixed cost the loop will pay per cycle; any recurring step >30 min is a ticket on day one, not a tax."* ## Acceptance - The next snapshot-advance comment on any drive issue shows `total XXmYYs` plus the four phase timings. - A rebuild whose log is missing the timings still posts (with `timings unavailable`), never blocks the advance. - The PROCESS.md line is in the arc-start checklist. Evidence: phase-5 report — rebuild tax ~95 h background compute, 60 min → 15 min only in the final 36 h.

swarm-claim host=matou-dev-server-01 run=16334
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=16334 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1139 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1139,
  "status": "success",
  "commits": [
    "29fc3f9cd3f319e8c86627f6b5cc01ddeab9c2c2"
  ],
  "changed_files": [
    "scripts/lib/gateway-image-timing-lib.sh",
    "scripts/lib/gateway-image-rebuild-lib.sh",
    "scripts/tests/gateway-image-timing-test.sh",
    "docs/PROCESS.md"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/gateway-image-timing-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/gateway-image-rebuild-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The next snapshot-advance comment on any drive issue shows `total XXmYYs` plus the four phase timings": "oc_gwimage_announce (gateway-image-rebuild-lib.sh) now appends 'Rebuild timings: <oc_gwimage_rebuild_timings>' which renders 'total XXmYYs (provision …, nixos-install …, installer-base …, snapshot …)'; test 7 in gateway-image-timing-test.sh asserts the exact string",
    "A rebuild whose log is missing the timings still posts (with `timings unavailable`), never blocks the advance": "oc_gwimage_rebuild_timings returns 'timings unavailable' for missing/empty/TOTAL-less log and always returns 0; announce is best-effort and unchanged in that respect; test 8 asserts all three unavailable cases",
    "The PROCESS.md line is in the arc-start checklist": "docs/PROCESS.md step 7 in the 'Adding an executor host (rehearsal drives)' checklist carries the exact fixed-cost line"
  },
  "summary": "The #661 snapshot-advance comment now carries the rebuild's total + four per-phase timings read from the drive-dir rebuild log, and the drive-arc checklist gains the fixed-cost line.",
  "blockers": []
}
**close-report** for #1139 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1139, "status": "success", "commits": [ "29fc3f9cd3f319e8c86627f6b5cc01ddeab9c2c2" ], "changed_files": [ "scripts/lib/gateway-image-timing-lib.sh", "scripts/lib/gateway-image-rebuild-lib.sh", "scripts/tests/gateway-image-timing-test.sh", "docs/PROCESS.md" ], "tests": [ { "command": "bash scripts/tests/gateway-image-timing-test.sh", "exit_code": 0 }, { "command": "bash scripts/tests/gateway-image-rebuild-test.sh", "exit_code": 0 } ], "criteria": { "The next snapshot-advance comment on any drive issue shows `total XXmYYs` plus the four phase timings": "oc_gwimage_announce (gateway-image-rebuild-lib.sh) now appends 'Rebuild timings: <oc_gwimage_rebuild_timings>' which renders 'total XXmYYs (provision …, nixos-install …, installer-base …, snapshot …)'; test 7 in gateway-image-timing-test.sh asserts the exact string", "A rebuild whose log is missing the timings still posts (with `timings unavailable`), never blocks the advance": "oc_gwimage_rebuild_timings returns 'timings unavailable' for missing/empty/TOTAL-less log and always returns 0; announce is best-effort and unchanged in that respect; test 8 asserts all three unavailable cases", "The PROCESS.md line is in the arc-start checklist": "docs/PROCESS.md step 7 in the 'Adding an executor host (rehearsal drives)' checklist carries the exact fixed-cost line" }, "summary": "The #661 snapshot-advance comment now carries the rebuild's total + four per-phase timings read from the drive-dir rebuild log, and the drive-arc checklist gains the fixed-cost line.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
Matou/idss#1139
No description provided.