fix(provisioner): add local-only build tag to Docker ownership test
Some checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 30s
CI / Detect changes (pull_request) Successful in 35s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 38s
E2E API Smoke Test / detect-changes (pull_request) Successful in 24s
E2E Chat / detect-changes (pull_request) Successful in 27s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 24s
E2E Staging SaaS (full lifecycle) / pr-validate (pull_request) Successful in 1m8s
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Has been skipped
Handlers Postgres Integration / detect-changes (pull_request) Successful in 19s
Harness Replays / detect-changes (pull_request) Successful in 21s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 34s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 21s
gate-check-v3 / gate-check (pull_request) Successful in 27s
qa-review / approved (pull_request) Failing after 19s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m35s
security-review / approved (pull_request) Failing after 23s
sop-checklist / all-items-acked (pull_request) Successful in 21s
sop-tier-check / tier-check (pull_request) Successful in 18s
CI / Python Lint & Test (pull_request) Successful in 8m41s
CI / Canvas (Next.js) (pull_request) Successful in 24m4s
CI / Platform (Go) (pull_request) Successful in 27m43s
CI / all-required (pull_request) Successful in 27m5s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 10s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 25s
Harness Replays / Harness Replays (pull_request) Successful in 12s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 8s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m52s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
E2E Chat / E2E Chat (pull_request) Failing after 10m31s

provisioner_token_ownership_local_test.go invokes WriteAuthTokenToVolume
and WriteFilesToContainer against a real local Docker daemon — it is
designed to run manually with `go test -tags local`, not in CI.

Without the tag, `go test ./...` picks it up in the CI pipeline where
no Docker daemon is available, causing the test to hang/timeout
(~26 min before the runner kills it).

Add `//go:build local` + `// +build local` (matching the existing
integration-test pattern) so CI's `go test ./...` silently skips it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Molecule AI · core-be 2026-05-16 15:47:28 +00:00
parent 71ba2a572c
commit efd755604f

View File

@ -1,3 +1,6 @@
//go:build local
// +build local
package provisioner
// Fast local provisioner-parity test — the proof-of-pattern that the