oficina / equipo Public

Record enrolment before starting the runner; resume restarts safely

Review round 2: cutover-finish-thin.sh started the unit before recording
done_enrol, so a run cut off between them retried enrol against a
running runner that holds the state lock. Enrolment is now recorded
first and the start is its own step (done_start), then verify.

upgrade-thin.sh records the runner switch apart from the restart
(done_restart); a retry finds the staged runner already running and
does not restart it again. Its rollback does not stop the previous
runner a second time on a retry once it runs again.

The test unit stubs model start, stop and an interrupted run, and the
fixture runner refuses enrol while the unit runs (its state lock).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev ac65713a927559545c8065645811b3836a44aaf1 parent c149a3e
5 files changed, +113 −30
  • internal/release/cutover_finish_test.go +21 −3
  • internal/release/upgrade_test.go +38 −4
  • scripts/cutover-finish-thin.sh +15 −6
  • scripts/runner-reference-allowlist.json +15 −8
  • scripts/upgrade-thin.sh +24 −9

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/upgrade-thin: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.4s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 3.2s
ci-box: file times set from content: 2721 files, 174 directories
ci-box: ready in 16.7s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.240s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.0s
+ go list -export -test -tags testbuild -f  ./...
  0.8s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.2s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC

go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m19.211s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.779s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.78s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 33.02, cpu waiting 21.02%, memory waiting 0.00%, io waiting 0.79%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m20.89s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m19.25s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.25s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 33.02, cpu waiting 20.41%, memory waiting 0.00%, io waiting 0.74%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m22.942s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m20.78s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m10.56s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.64s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.58s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 31.50, cpu waiting 19.90%, memory waiting 0.00%, io waiting 0.71%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m17.456s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.89s amadan.net/oficina/equipo/internal/headless
receipt: slow test 36.21s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.13s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.52s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 33.02, cpu waiting 21.02%, memory waiting 0.00%, io waiting 0.79%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m34.561s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m32.954s amadan.net/oficina/equipo/internal/headless
receipt: slow test 58.1s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.78s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.82s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.52s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.73s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 28.49, cpu waiting 16.63%, memory waiting 0.00%, io waiting 0.58%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 3m5.947s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m4.01s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m44.11s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.42s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.27s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.98s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.26s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 8.12, cpu waiting 3.73%, memory waiting 0.00%, io waiting 0.17%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 436ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m0.883s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.82s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.38s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.88s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.42s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 0.73, cpu waiting 0.00%, memory waiting 0.00%, io waiting 2.78%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 384ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m22.798s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.23s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
receipt: slow test 2.35s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 0.73, cpu waiting 0.81%, memory waiting 0.00%, io waiting 2.82%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 4m28.059s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m40.929s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 4m28.059s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.95s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.89s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.78s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.9s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.18, cpu waiting 0.77%, memory waiting 0.00%, io waiting 0.02%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 47.042s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 45.932s amadan.net/oficina/equipo/internal/runner
receipt: slow test 25.9s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 30.17, cpu waiting 19.83%, memory waiting 0.00%, io waiting 1.31%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 46.385s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 44.51s amadan.net/oficina/equipo/internal/runner
receipt: slow test 34.61s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 30.62s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.37s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 29.31, cpu waiting 19.92%, memory waiting 0.00%, io waiting 1.35%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 34.953s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.05s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.11s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.65s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 1.99s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 19.93, cpu waiting 15.07%, memory waiting 0.00%, io waiting 1.60%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 28.1%, load 13.57
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m3.782s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m2.022s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.53s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.43s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.53s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.15s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.95s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectKinds
machine: 32 CPUs, load 28.49, cpu waiting 17.16%, memory waiting 0.00%, io waiting 0.60%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 28.1%, load 13.57
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 328ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m14.081s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.43s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 19.43s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 19.41s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 19.38s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 19.3s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
machine: 32 CPUs, load 13.57, cpu waiting 11.19%, memory waiting 0.00%, io waiting 1.77%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 28.1%, load 13.57
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m14.199s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m3.001s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.6s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.74s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.71s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.66s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.6s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 24.57, cpu waiting 14.59%, memory waiting 0.00%, io waiting 0.51%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 28.1%, load 13.57
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 447ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m6.433s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.51s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.68s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.62s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 22.72s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
receipt: slow test 22.66s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 13.57, cpu waiting 12.36%, memory waiting 0.00%, io waiting 1.71%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 28.1%, load 13.57
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 502ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 47.181s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.5s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.44s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.42s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.32s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.18s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 13.57, cpu waiting 11.19%, memory waiting 0.00%, io waiting 1.77%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 28.1%, load 13.57
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/cmd/equipo-runner: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 25.955s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 13.726s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 10.311s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 47.583s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/release took 18.426s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 38.329s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m13.348s against a 60s target (the gate's other steps are not in this figure)
receipt: 14 packages ran, 46 cached, 18 without tests, 0 failed
receipt: slow package 52.218s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.722s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 47.583s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 38.329s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 35.938s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 21.4s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.95s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 15.07s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 9.18s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
receipt: slow test 8.55s amadan.net/oficina/equipo/internal/runner/checks TestCheckNamespaceGoRootInsideModuleCache
machine: 32 CPUs, load 10.84, cpu waiting 5.39%, memory waiting 0.00%, io waiting 0.18%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m20.939s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m19.65s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.12s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.01s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.96s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.55s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.59s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 31.50, cpu waiting 20.41%, memory waiting 0.00%, io waiting 0.74%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m30.629s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m28.948s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.45s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.12s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.96s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.02s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.8s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 30.02, cpu waiting 17.70%, memory waiting 0.00%, io waiting 0.62%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m39.384s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m37.775s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.56s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.09s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.89s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.23s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.13s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 26.45, cpu waiting 15.56%, memory waiting 0.00%, io waiting 0.54%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-19T22:07:08.283Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T22:07:08.283Z level=INFO msg="startup phase done" phase=state_lock took=70µs
time=2026-11-19T22:07:08.283Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T22:07:08.283Z level=INFO msg="startup phase done" phase=claim_roots took=86µs
time=2026-11-19T22:07:08.283Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T22:07:08.340Z level=INFO msg="startup phase done" phase=sweep took=56.75ms
time=2026-11-19T22:07:08.340Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T22:07:08.340Z level=INFO msg="startup phase done" phase=credentials took=185µs
time=2026-11-19T22:07:08.340Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T22:07:08.387Z level=INFO msg="startup phase done" phase=open_state took=46.468ms
time=2026-11-19T22:07:08.387Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T22:07:08.388Z level=INFO msg=connecting host=127.0.0.1:33221 protocol=28
time=2026-11-19T22:07:08.391Z level=INFO msg=connected host=127.0.0.1:33221 took=2.607ms
time=2026-11-19T22:07:08.391Z level=INFO msg="capabilities gathering"
time=2026-11-19T22:07:08.392Z level=INFO msg="capabilities gathered" took=1.055ms tags=linux,claude,go
time=2026-11-19T22:07:08.393Z level=INFO msg="hello sent" protocol=28
time=2026-11-19T22:07:08.402Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.81s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-19T22:07:38.892Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T22:07:38.892Z level=INFO msg="startup phase done" phase=state_lock took=91µs
time=2026-11-19T22:07:38.892Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T22:07:38.893Z level=INFO msg="startup phase done" phase=claim_roots took=333µs
time=2026-11-19T22:07:38.893Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T22:07:38.924Z level=INFO msg="startup phase done" phase=sweep took=31.067ms
time=2026-11-19T22:07:38.924Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T22:07:38.924Z level=INFO msg="startup phase done" phase=credentials took=163µs
time=2026-11-19T22:07:38.924Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T22:07:38.966Z level=INFO msg="startup phase done" phase=open_state took=41.599ms
time=2026-11-19T22:07:38.966Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T22:07:38.967Z level=INFO msg=connecting host=127.0.0.1:42591 protocol=28
time=2026-11-19T22:07:38.968Z level=INFO msg=connected host=127.0.0.1:42591 took=908µs
time=2026-11-19T22:07:38.968Z level=INFO msg="capabilities gathering"
time=2026-11-19T22:07:38.968Z level=INFO msg="capabilities gathered" took=377µs tags=linux,claude,go
time=2026-11-19T22:07:38.969Z level=INFO msg="hello sent" protocol=28
time=2026-11-19T22:07:38.973Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-19T22:07:39.972Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (5.87s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m25.731s
FAIL	amadan.net/oficina/equipo/internal/headless	86.010s


receipt: test step 1m27.064s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m25.731s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.03s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.96s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.35s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.26s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 7.86s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest ac65713a927559545c8065645811b3836a44aaf1 1.81s 30.02
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest ac65713a927559545c8065645811b3836a44aaf1 5.87s 30.02
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 26.45, cpu waiting 15.56%, memory waiting 0.00%, io waiting 0.54%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo

receipt: test step 300ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 701ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 700ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

receipt: test step 200ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.631s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/idtest TestBrowserOficinaIDDoor
browser lane browser-rest: ./internal/plan3test
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestTeamsHierarchyBrowser)$' ./internal/plan3test

receipt: test step 201ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.794s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.79s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackStarCentre)$' ./internal/thintest

receipt: test step 297ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m4.809s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.42s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.34s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.61s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.34s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
receipt: slow test 9.15s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
machine: 32 CPUs, load 2.11, cpu waiting 0.81%, memory waiting 0.00%, io waiting 2.82%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.31s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.25s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.26s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.03s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.58s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (62s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 23.27s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.43s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.14s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.03s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 19.92s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 30.21, cpu waiting 21.24%, memory waiting 0.00%, io waiting 1.03%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 8.24s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 3 without tests, 0 failed
receipt: slow package 7.11s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 162ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 70ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.09s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 160ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.043s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.746s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 260ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
machine: 32 CPUs, load 3.86, cpu waiting 4.33%, memory waiting 0.00%, io waiting 2.39%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 28.1%, load 13.57
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2435 text files, 2842 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 87 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.469s
machine: 32 CPUs, load 29.31, cpu waiting 18.68%, memory waiting 0.00%, io waiting 1.44%
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 28.1%, load 13.57
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 13.57, cpu waiting 12.36%, memory waiting 0.00%, io waiting 1.71%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 28.1%, load 13.57
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 5
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 19.93, cpu waiting 15.07%, memory waiting 0.00%, io waiting 1.60%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 28.1%, load 13.57
shard 28: make gitleaks
10:06PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:07PM INF 1022 commits scanned.
10:07PM INF scanned ~59954408 bytes (59.95 MB) in 12.8s
10:07PM INF no leaks found
machine: 32 CPUs, load 29.31, cpu waiting 18.68%, memory waiting 0.00%, io waiting 1.44%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.072ms, worst 1.161ms, budget 150ms
perf: GET /api/runner/protocol: median 82µs, worst 115µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 615µs, worst 649µs, budget 150ms
perf: GET /api/v1/accounts: median 427µs, worst 459µs, budget 150ms
perf: GET /api/v1/auth/devices: median 475µs, worst 495µs, budget 150ms
perf: GET /api/v1/budgets: median 489µs, worst 511µs, budget 150ms
perf: GET /api/v1/capabilities: median 259µs, worst 274µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.224ms, worst 1.366ms, budget 150ms
perf: GET /api/v1/connections: median 576µs, worst 591µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 549µs, worst 586µs, budget 150ms
perf: GET /api/v1/conversation: median 932µs, worst 987µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.538ms, worst 1.658ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.824ms, worst 1.853ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 463µs, worst 525µs, budget 150ms
perf: GET /api/v1/journey: median 9.384ms, worst 12.211ms, budget 150ms
perf: GET /api/v1/me: median 489µs, worst 515µs, budget 150ms
perf: GET /api/v1/me/settings: median 589µs, worst 613µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.791ms, worst 8.986ms, budget 150ms
perf: GET /api/v1/notifications: median 1.603ms, worst 1.665ms, budget 150ms
perf: GET /api/v1/onboarding: median 385µs, worst 443µs, budget 150ms
perf: GET /api/v1/people: median 433µs, worst 450µs, budget 150ms
perf: GET /api/v1/playbooks: median 575µs, worst 579µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 521µs, worst 537µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 831µs, worst 907µs, budget 150ms
perf: GET /api/v1/preferences: median 727µs, worst 754µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 441µs, worst 479µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 557µs, worst 597µs, budget 150ms
perf: GET /api/v1/roster: median 444µs, worst 489µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 414µs, worst 431µs, budget 150ms
perf: GET /api/v1/specialists: median 7.97ms, worst 8.167ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.051ms, worst 8.121ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 830µs, worst 889µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.103ms, worst 1.194ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 725µs, worst 740µs, budget 150ms
perf: GET /api/v1/teams: median 439µs, worst 471µs, budget 150ms
perf: GET /api/v1/templates: median 588µs, worst 644µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 433µs, worst 495µs, budget 150ms
perf: GET /auth/callback: median 72µs, worst 111µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.28ms, worst 3.331ms, budget 150ms
perf: GET /auth/verify: median 82µs, worst 96µs, budget 150ms
perf: GET /connections: median 3.553ms, worst 3.678ms, budget 150ms
perf: GET /conversation: median 7.275ms, worst 7.331ms, budget 150ms
perf: GET /conversation/connections: median 232µs, worst 328µs, budget 150ms
perf: GET /conversation/notebook: median 251µs, worst 257µs, budget 150ms
perf: GET /conversation/settings: median 4.036ms, worst 4.173ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 3.603ms, worst 3.745ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.331ms, worst 6.413ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.342ms, worst 6.575ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.548ms, worst 3.672ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.07ms, worst 4.168ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.342ms, worst 4.464ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.401ms, worst 4.557ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.572ms, worst 6.558ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.962ms, worst 4.269ms, budget 150ms
perf: GET /housekeeping: median 3.71ms, worst 3.835ms, budget 150ms
perf: GET /invites/new: median 582µs, worst 642µs, budget 150ms
perf: GET /invites/{id}: median 622µs, worst 688µs, budget 150ms
perf: GET /jobs: median 3.212ms, worst 3.253ms, budget 150ms
perf: GET /jobs/{id}: median 4.362ms, worst 4.501ms, budget 150ms
perf: GET /journey: median 10.075ms, worst 10.104ms, budget 150ms
perf: GET /nav/rail: median 2.812ms, worst 2.961ms, budget 150ms
perf: GET /needs-you: median 9.916ms, worst 10.16ms, budget 150ms
perf: GET /onboarding: median 4.095ms, worst 6.479ms, budget 150ms
perf: GET /people: median 3.418ms, worst 3.48ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.559ms, worst 4.799ms, budget 150ms
perf: GET /playbooks: median 4.014ms, worst 4.159ms, budget 150ms
perf: GET /playbooks/new: median 4.129ms, worst 4.235ms, budget 150ms
perf: GET /playbooks/{id}: median 4.687ms, worst 4.737ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.699ms, worst 4.714ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.887ms, worst 4.013ms, budget 150ms
perf: GET /preferences: median 4.055ms, worst 4.139ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.893ms, worst 3.957ms, budget 150ms
perf: GET /projects: median 5.114ms, worst 5.349ms, budget 150ms
perf: GET /projects/accounts: median 3.651ms, worst 3.745ms, budget 150ms
perf: GET /projects/new: median 3.598ms, worst 3.763ms, budget 150ms
perf: GET /projects/{id}: median 10.213ms, worst 10.383ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.616ms, worst 3.697ms, budget 150ms
perf: GET /runners/enrol: median 4.221ms, worst 4.393ms, budget 150ms
perf: GET /settings: median 3.314ms, worst 3.359ms, budget 150ms
perf: GET /settings/coordinator: median 5.301ms, worst 5.481ms, budget 150ms
perf: GET /settings/devices: median 3.122ms, worst 3.26ms, budget 150ms
perf: GET /settings/recovery: median 3.262ms, worst 3.347ms, budget 150ms
perf: GET /settings/recovery/release: median 3.323ms, worst 3.441ms, budget 150ms
perf: GET /settings/thinking: median 239µs, worst 287µs, budget 150ms
perf: GET /signin: median 651µs, worst 1.02ms, budget 150ms
perf: GET /specialists/new: median 3.35ms, worst 3.498ms, budget 150ms
perf: GET /specialists/{key}: median 12.699ms, worst 13.139ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.928ms, worst 4.053ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.987ms, worst 4.373ms, budget 150ms
perf: GET /tasks: median 5.635ms, worst 5.776ms, budget 150ms
perf: GET /tasks/new: median 3.401ms, worst 3.505ms, budget 150ms
perf: GET /tasks/{id}: median 6.066ms, worst 6.251ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.388ms, worst 5.518ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.994ms, worst 7.185ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.807ms, worst 5.849ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.509ms, worst 1.62ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.092ms, worst 5.229ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.674ms, worst 4.84ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.075ms, worst 4.215ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.741ms, worst 8.133ms, budget 150ms
perf: GET /team/{specialist}: median 4.206ms, worst 4.338ms, budget 150ms
perf: GET /teams: median 11.795ms, worst 14.572ms, budget 150ms
perf: GET /templates: median 3.761ms, worst 3.995ms, budget 150ms
perf: GET /usage: median 4.428ms, worst 4.526ms, budget 150ms
perf: GET /work: median 3.264ms, worst 3.364ms, budget 150ms
perf: cold boot: median 257ms of [255.625064ms 256.798672ms 258.08588ms], budget 500ms

receipt: test step 29.358s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 83 without tests, 0 failed
receipt: slow package 8.88s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow package 0s amadan.net/oficina/equipo/internal/attach
receipt: slow test 8.06s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 820ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.41 GiB in 22212 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.84 GiB in 27329 files
diff --git a/internal/release/cutover_finish_test.go b/internal/release/cutover_finish_test.go
index b2babbde..b971d84f 100644
--- a/internal/release/cutover_finish_test.go
+++ b/internal/release/cutover_finish_test.go
@@ -38,7 +38,7 @@ func newFinishRig(t *testing.T) *finishRig {
r.write(filepath.Join(r.repo, "scripts", name), string(src), 0700)
}
release := filepath.Join(r.repo, "releases", "equipo-runner-linux-amd64-"+finishVersion)
- runner := "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> " + r.log + "; exit; fi\necho \"equipo-runner $1 $EQUIPO_INSTANCE_ID $EQUIPO_ORIGIN\" >> " + r.log + "\n[ -e " + filepath.Join(root, "enrolfail") + " ] && exit 1\necho new > \"$EQUIPO_RUNNER_STATE_DIR/credentials.json\"\n"
+ runner := "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> " + r.log + "; exit; fi\necho \"equipo-runner $1 $EQUIPO_INSTANCE_ID $EQUIPO_ORIGIN\" >> " + r.log + "\n[ -e " + filepath.Join(root, "enrolfail") + " ] && exit 1\n# The running runner holds the state lock enrol needs.\n[ -e " + filepath.Join(root, "active") + " ] && { echo state locked >&2; exit 1; }\necho new > \"$EQUIPO_RUNNER_STATE_DIR/credentials.json\"\n"
r.write(filepath.Join(release, "equipo-runner"), runner, 0700)
r.write(filepath.Join(release, "equipo-tool-proxy"), "proxy", 0700)
sum := func(s string) string { h := sha256.Sum256([]byte(s)); return hex.EncodeToString(h[:]) }
@@ -121,7 +121,7 @@ func TestCutoverFinishPlanChangesNothing(t *testing.T) {
inOrder(t, out, "instance "+keptID, "== 6 identity", "sh -s -- 'https://equipo.oficina.works' '"+finishVersion+"' '"+keptID+"'",
"== 7 config", "env unset --app equipo --account oficina --console https://console.carloku.com EQUIPO_DATABASE",
"== 8 install", "runner-config.py render", "EQUIPO_INSTANCE_ID="+keptID, "EQUIPO_ORIGIN=https://equipo.oficina.works", "state.pre-thin-20261119T140850Z",
- "== 9 enrol", "runner-config.py check", "verify-installed", "enrol", "systemctl --user start", "== 10 verify", "_SYSTEMD_INVOCATION_ID=", "msg=welcome", "Plan only.")
+ "== 9 enrol", "runner-config.py check", "verify-installed", "enrol", "== 10 start", "systemctl --user start", "== 11 verify", "_SYSTEMD_INVOCATION_ID=", "msg=welcome", "Plan only.")
if strings.Contains(out, "would refuse") || strings.Contains(out, "carlos db") {
t.Fatalf("plan refuses or reads the replica:\n%s", out)
}
@@ -419,8 +419,26 @@ func TestCutoverFinishRollbackChecksTheRunnerStopped(t *testing.T) {
if out, err := r.run("cutover-finish-thin.sh", "--execute"); err != nil {
t.Fatalf("finish: %v\n%s", err, out)
}
- r.write(filepath.Join(r.root, "active"), "", 0600)
+ r.write(filepath.Join(r.root, "stuck"), "", 0600)
if out, err := r.run("cutover-finish-thin.sh", "rollback", "--execute"); err == nil || !strings.Contains(out, "still running") || strings.Contains(r.state(), "kept_database=0") {
t.Fatalf("rollback recorded with the runner running: %v\n%s", err, out)
}
}
+
+// A run cut off right after the unit starts resumes forward: enrolment is
+// already recorded, so enrol (which the running runner's state lock would
+// refuse) does not run again, and the unit is not started twice.
+func TestCutoverFinishResumesAfterTheStart(t *testing.T) {
+ r := newFinishRig(t)
+ r.write(filepath.Join(r.root, "killafterstart"), "", 0600)
+ if out, err := r.run("cutover-finish-thin.sh", "--execute"); err == nil {
+ t.Fatalf("the run was not interrupted:\n%s", out)
+ }
+ if !strings.Contains(r.state(), "done_enrol=1") || strings.Contains(r.state(), "done_start=1") {
+ t.Fatalf("enrol not recorded before the start:\n%s", r.state())
+ }
+ r.finished(r.run("cutover-finish-thin.sh", "--execute"))
+ if n := strings.Count(r.read(r.log), "equipo-runner enrol"); n != 1 {
+ t.Fatalf("enrol ran %d times", n)
+ }
+}
diff --git a/internal/release/upgrade_test.go b/internal/release/upgrade_test.go
index a2eda700..6d0f4d80 100644
--- a/internal/release/upgrade_test.go
+++ b/internal/release/upgrade_test.go
@@ -309,16 +309,21 @@ func TestUpgradeRollbackRestoresRunnerAndVersion(t *testing.T) {
}
// unitStubs writes stub systemctl and journalctl for the runner unit at
-// unit: an invocation id (fresh on every call while root/flap exists),
-// main PID 4242, the loaded ExecStart (root/loaded, else the unit file's),
-// is-active (root/active) and the journal (root/journal, else a welcome).
+// unit: start and restart make it active (root/active) and stop ends it
+// unless root/stuck exists; with root/killafter<verb> the script calling
+// start or restart is killed right after (an interrupted run). It has an
+// invocation id (fresh on every call while root/flap exists), main PID
+// 4242 while active, the loaded ExecStart (root/loaded, else the unit
+// file's) and the journal (root/journal, else a welcome).
func unitStubs(write func(string, string, os.FileMode), root, unit, log string) {
bin := filepath.Join(root, "bin")
logLine := "echo \"$(basename $0) $*\" >> " + log + "\n"
write(filepath.Join(bin, "systemctl"), "#!/bin/sh\n"+logLine+`case "$*" in
*FragmentPath*) cat `+filepath.Join(root, "fragment")+` 2>/dev/null || echo `+unit+` ;;
*InvocationID*) if [ -e `+filepath.Join(root, "flap")+` ]; then od -An -tx1 -N16 /dev/urandom | tr -d ' \n'; echo; else echo 0123456789abcdef0123456789abcdef; fi ;;
-*MainPID*) echo 4242 ;;
+*MainPID*) if [ -e `+filepath.Join(root, "active")+` ]; then echo 4242; else echo 0; fi ;;
+*" start "*|*" restart "*) touch `+filepath.Join(root, "active")+`; v=$2; if [ -e `+filepath.Join(root, "killafter")+`$v ]; then rm `+filepath.Join(root, "killafter")+`$v; kill -TERM $PPID; fi ;;
+*" stop "*) [ -e `+filepath.Join(root, "stuck")+` ] || rm -f `+filepath.Join(root, "active")+` ;;
*ExecStart*) cat `+filepath.Join(root, "loaded")+` 2>/dev/null || sed -n 's/^ExecStart=\(.*\) run$/{ path=\1 ; argv[]=\1 run }/p' `+unit+` ;;
*is-active*) [ -e `+filepath.Join(root, "active")+` ] ;;
*daemon-reload*) if [ -e `+filepath.Join(root, "failreload")+` ]; then rm `+filepath.Join(root, "failreload")+`; exit 1; fi ;;
@@ -383,3 +388,32 @@ func TestOperatorScriptsAreExecutable(t *testing.T) {
}
}
}
+
+// A run cut off right after the restart resumes without restarting the
+// staged runner again; a rollback cut off after the previous runner
+// started does not stop it again.
+func TestUpgradeResumesAfterTheRestart(t *testing.T) {
+ r := newUpgradeRig(t)
+ r.write(filepath.Join(r.root, "killafterrestart"), "", 0600)
+ if out, err := r.run(upgradeTo, "--execute"); err == nil {
+ t.Fatalf("the run was not interrupted:\n%s", out)
+ }
+ if out, err := r.run(upgradeTo, "--execute"); err != nil || strings.Count(r.read(r.log), "systemctl --user restart") != 1 || !strings.Contains(r.state(), "done_verify=1") {
+ t.Fatalf("did not resume without a second restart: %v\n%s\n%s", err, out, r.read(r.log))
+ }
+ r.write(filepath.Join(r.root, "killafterstart"), "", 0600)
+ if out, err := r.run("rollback", "--execute"); err == nil {
+ t.Fatalf("the rollback was not interrupted:\n%s", out)
+ }
+ stops := strings.Count(r.read(r.log), "systemctl --user stop")
+ if stops != 1 {
+ t.Fatalf("the rollback stopped the staged runner %d times", stops)
+ }
+ // The previous runner is what the unit now runs.
+ exe := filepath.Join(r.root, "proc", "4242", "exe")
+ r.must(os.Remove(exe))
+ r.must(os.Symlink(filepath.Join(r.runner, "releases", upgradeFrom, "equipo-runner"), exe))
+ if out, err := r.run("rollback", "--execute"); err != nil || strings.Count(r.read(r.log), "systemctl --user stop") != stops || !strings.Contains(r.state(), "rolled_back=1") {
+ t.Fatalf("rollback retry stopped the previous runner again: %v\n%s\n%s", err, out, r.read(r.log))
+ }
+}
diff --git a/scripts/cutover-finish-thin.sh b/scripts/cutover-finish-thin.sh
index fe219ec5..66c1d9b5 100755
--- a/scripts/cutover-finish-thin.sh
+++ b/scripts/cutover-finish-thin.sh
@@ -24,8 +24,10 @@
# the old one; service.env and unit written from that record
# (scripts/runner-config.py); the old state moved aside
# 9 enrol the written and loaded configuration checked, then
-# verify-installed, enrol (the owner approves the link), start
-# 10 verify version and identity again; in this boot and this unit
+# verify-installed, enrol (the owner approves the link)
+# 10 start the unit starts (recorded apart from enrol: the running
+# runner holds the state lock enrol needs)
+# 11 verify version and identity again; in this boot and this unit
# invocation, the staged runner's process was welcomed by the
# instance and has not dropped since, on two readings
#
@@ -56,7 +58,7 @@ case "${1:-} ${2:-}" in
"--execute ") execute=1 ;;
"rollback ") mode=rollback ;;
"rollback --execute") mode=rollback execute=1 ;;
-*) sed -n '2,33p' "$0"; exit 2 ;;
+*) sed -n '2,35p' "$0"; exit 2 ;;
esac
die() { echo "refused: $*" >&2; exit 1; }
@@ -177,7 +179,7 @@ if [[ $mode == rollback ]]; then
cmp -s "$snap/service.env" "$RUNNER_ROOT/service.env" && cmp -s "$snap/equipo-runner.service" "$RUNNER_ROOT/equipo-runner.service" || die "the runner files are not the recorded ones"
[[ -d $RUNNER_ROOT/state && ! -e $kept ]] || die "the old runner state is not back in place"
fi
- for s in identity unset runner enrol verify; do put "done_$s" 0; done
+ for s in identity unset runner enrol start verify; do put "done_$s" 0; done
put state_moved 0
put kept_database 0
echo " The runner stays stopped and the instance stays on $version: nothing is promoted."
@@ -260,11 +262,18 @@ if ! done_step enrol; then
fi
run bash -c "set -a; . '$RUNNER_ROOT/service.env'; set +a; '$new/equipo-runner' verify-installed"
run bash -c "set -a; . '$RUNNER_ROOT/service.env'; set +a; '$new/equipo-runner' enrol"
- run systemctl --user start "$UNIT"
+ # Recorded before the start: a running runner holds the state lock, so
+ # enrol must never run again once the unit is up.
finish enrol
fi
-step "10 verify (no replica)"
+step "10 start the runner"
+if ! done_step start; then
+ run systemctl --user start "$UNIT"
+ finish start
+fi
+
+step "11 verify (no replica)"
run curl -fsS "$ORIGIN/api/version"
echo " install.sh names $old_id again; sha256 of $PROC/<MainPID>/exe is the staged runner's"
echo " $ journalctl --user -b _SYSTEMD_INVOCATION_ID=<InvocationID> _PID=<MainPID> -o cat --no-pager"
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json
index 26735b8b..dada24a4 100644
--- a/scripts/runner-reference-allowlist.json
+++ b/scripts/runner-reference-allowlist.json
@@ -16250,7 +16250,7 @@
"path": "internal/release/upgrade_test.go",
"line_sha256": "8adb8b295b76e076dc8c77118d8d2d6da779545242c87dec47ecc42a61201ee5",
"match": "equipo-runner",
- "count": 1,
+ "count": 2,
"reason": "Test of the production upgrade script: a stub runner release, runner unit and runner paths under a temporary HOME."
},
{
@@ -16309,13 +16309,6 @@
"count": 2,
"reason": "Thin v1 production cutover finish on the kept database (not run by agents): installs and enrols the staged runner, switches its unit and rolls it back."
},
- {
- "path": "internal/release/cutover_finish_test.go",
- "line_sha256": "ec77b37d0194b8a707ac59961d6796d83c2a99e22e1f2057d7cf9a509bf597da",
- "match": "equipo-runner",
- "count": 2,
- "reason": "Test of the cutover finish script: a stub runner release, runner unit and runner paths under a temporary HOME."
- },
{
"path": "internal/release/cutover_finish_test.go",
"line_sha256": "bee334cd0a8e2cd7a0c604bac8b35302b1b196271f3d8129eb374b6965532038",
@@ -16413,5 +16406,19 @@
"match": "equipo-runner",
"count": 1,
"reason": "Writes and checks the production runner unit file (equipo-runner.service) for the cutover finish and upgrade scripts."
+ },
+ {
+ "path": "internal/release/cutover_finish_test.go",
+ "line_sha256": "ac3af06bcf42f6e0653809e9ed7edcb4ef999a46f17942de9047424321d60058",
+ "match": "equipo-runner",
+ "count": 2,
+ "reason": "Test of the cutover finish script: a stub runner release, runner unit and runner paths under a temporary HOME."
+ },
+ {
+ "path": "internal/release/cutover_finish_test.go",
+ "line_sha256": "c8162f9af9bca14c82a3a2184c4c5d0a6a3dd7cc95b6c1fb4b7d68f4aa1772d7",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Test of the cutover finish script: a stub runner release, runner unit and runner paths under a temporary HOME."
}
]
diff --git a/scripts/upgrade-thin.sh b/scripts/upgrade-thin.sh
index 1a84926e..68d37823 100755
--- a/scripts/upgrade-thin.sh
+++ b/scripts/upgrade-thin.sh
@@ -112,6 +112,12 @@ idle() {
[[ $out =~ ^[0-9]+/[0-9]+/[0-9]+$ ]] || die "could not read the work in flight. $REPLICA"
[[ $out == 0/0/0 ]] || die "in flight (steps/merges/turns): $out; run again when nothing runs"
}
+# The unit's main process runs the binary with sha256 $1.
+runs() {
+ local pid
+ pid=$(systemctl --user show -p MainPID --value "$UNIT")
+ [[ $pid =~ ^[1-9][0-9]*$ && $(sha256sum "$PROC/$pid/exe" 2>/dev/null | cut -d ' ' -f 1) == "$1" ]]
+}
# Connected now: in this boot and the unit's current invocation, the
# process running the binary with sha256 $1 logged the instance's welcome,
# and no stream drop after it, on two readings in a row of the same
@@ -159,8 +165,12 @@ if [[ $mode == rollback ]]; then
[[ $(get rolled_back) != 1 ]] || die "already rolled back"
snap=$BACKUPS/upgrade-$(get stamp)
[[ -n $(get stamp) && -f $snap/service.env && -f $snap/equipo-runner.service ]] || die "the prior state was not recorded"
+ prev_exec=$(sed -n 's/^ExecStart=\(.*\) run$/\1/p' "$snap/equipo-runner.service")
+ [[ -f $prev_exec ]] || die "the previous runner $prev_exec is missing"
+ prev_sha=$(sha256sum "$prev_exec" | cut -d ' ' -f 1)
step "rollback 1 stop the runner"
- run systemctl --user stop "$UNIT"
+ # A retry after the previous runner started again does not stop it a second time.
+ if ((execute)) && runs "$prev_sha"; then echo " $UNIT already runs $prev_exec"; else run systemctl --user stop "$UNIT"; fi
step "rollback 2 the previous runner's service.env and unit"
run cp -p "$snap/service.env" "$RUNNER_ROOT/service.env"
run cp -p "$snap/equipo-runner.service" "$RUNNER_ROOT/equipo-runner.service"
@@ -170,11 +180,9 @@ if [[ $mode == rollback ]]; then
wait_serving "$(get prev_version)"
step "rollback 4 start the previous runner, and see it connected"
run systemctl --user start "$UNIT"
- prev_exec=$(sed -n 's/^ExecStart=\(.*\) run$/\1/p' "$snap/equipo-runner.service")
echo " $UNIT runs $prev_exec, welcomed by the instance in this invocation, on two readings"
if ((execute)); then
- [[ -f $prev_exec ]] || die "the previous runner $prev_exec is missing"
- connected "$(sha256sum "$prev_exec" | cut -d ' ' -f 1)" "the previous runner $prev_exec" || die "the previous runner is not connected; nothing recorded as rolled back"
+ connected "$prev_sha" "the previous runner $prev_exec" || die "the previous runner is not connected; nothing recorded as rolled back"
fi
put rolled_back 1
if ((!execute)) || [[ $(get instance_started) == 1 ]]; then database_note; fi
@@ -286,12 +294,20 @@ if ! done_step runner; then
if ((execute)); then
[[ $(systemctl --user show -p ExecStart --value "$UNIT") == *"path=$new/equipo-runner ;"* ]] || die "the loaded $UNIT does not start $new/equipo-runner"
fi
- echo " nothing in flight, read again right before the restart. This is a short window, not a drain:"
- echo " work dispatched after the reading, or not yet in the replica, can still be cut by the restart."
- if ((execute)); then idle; fi
- run systemctl --user restart "$UNIT"
finish runner
fi
+want=$( [[ -f $staged ]] && python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["sha256"]["runner"])' "$staged" || echo "the runner hash in $staged")
+echo " nothing in flight, read again right before the restart. This is a short window, not a drain:"
+echo " work dispatched after the reading, or not yet in the replica, can still be cut by the restart."
+if ! done_step restart; then
+ # A retry after the restart happened finds the staged runner running and
+ # does not restart it again.
+ if ((execute)) && runs "$want"; then echo " $UNIT already runs the staged runner"; else
+ if ((execute)); then idle; fi
+ run systemctl --user restart "$UNIT"
+ fi
+ finish restart
+fi
step "4 instance: the staged instance with --swap hold; its migrations run on start"
echo " From here a rollback restores the previous version but not the database: that needs the step 2 backup."
@@ -303,7 +319,6 @@ if ! done_step instance; then
fi
step "5 verify"
-want=$( [[ -f $staged ]] && python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["sha256"]["runner"])' "$staged" || echo "the runner hash in $staged")
run curl -fsS "$ORIGIN/api/version"
echo " sha256 of $PROC/<MainPID of $UNIT>/exe must be $want"
echo " $ journalctl --user -b _SYSTEMD_INVOCATION_ID=<InvocationID> _PID=<MainPID> -o cat --no-pager"