fix(ci): writable HOME in Production auto-deploy — unblock fleet-wide deploys (#2193) #2196

Merged
cp-lead merged 1 commits from sre/fix-auto-deploy-writable-home-2193 into main 2026-06-04 02:54:11 +00:00
Owner

Fix #2193 — Production auto-deploy fails fleet-wide on unwritable HOME

The Production auto-deploy job's git/docker credential saves fail with:

Error saving credentials: mkdir /home/hongming: permission denied
##[error]Process completed with exit code 1

because the publish runner's default $HOME (/home/hongming) isn't writable. This halts the production rollout on every core main commit — blocking all merged changes from deploying.

build-and-push already dodges this for buildx (DOCKER_CONFIG="$RUNNER_TEMP/docker-config"); the auto-deploy job was missing the equivalent. This adds a first step that points HOME + DOCKER_CONFIG at the writable $RUNNER_TEMP, mirroring that proven pattern. Narrow, env-only; deploy logic untouched.

Closes #2193. Unblocks cp#511/core#2182 (google-adk SSOT) + all other stuck deploys.

## Fix #2193 — Production auto-deploy fails fleet-wide on unwritable HOME The `Production auto-deploy` job's git/docker credential saves fail with: ``` Error saving credentials: mkdir /home/hongming: permission denied ##[error]Process completed with exit code 1 ``` because the publish runner's default `$HOME` (`/home/hongming`) isn't writable. This halts the production rollout on **every** core main commit — blocking all merged changes from deploying. `build-and-push` already dodges this for buildx (`DOCKER_CONFIG="$RUNNER_TEMP/docker-config"`); the auto-deploy job was missing the equivalent. This adds a first step that points `HOME` + `DOCKER_CONFIG` at the writable `$RUNNER_TEMP`, mirroring that proven pattern. Narrow, env-only; deploy logic untouched. Closes #2193. Unblocks cp#511/core#2182 (google-adk SSOT) + all other stuck deploys.
hongming added 1 commit 2026-06-04 02:51:43 +00:00
fix(ci): writable HOME+DOCKER_CONFIG in Production auto-deploy (fixes #2193 — mkdir /home/hongming perm denied halting prod rollout)
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 3s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 1s
CI / Python Lint & Test (pull_request) Successful in 2s
CI / Detect changes (pull_request) Successful in 5s
E2E API Smoke Test / detect-changes (pull_request) Successful in 7s
E2E Chat / detect-changes (pull_request) Successful in 8s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 3s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 9s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 6s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 2s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 3s
gate-check-v3 / gate-check (pull_request_target) Successful in 4s
sop-checklist / all-items-acked (pull_request_target) Has been cancelled
sop-checklist / review-refire (pull_request_target) Has been cancelled
security-review / approved (pull_request_target) Failing after 3s
CI / Platform (Go) (pull_request) Successful in 1s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 51s
CI / Canvas (Next.js) (pull_request) Successful in 2s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 49s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 1s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 1s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 51s
CI / all-required (pull_request) Successful in 14s
sop-tier-check / tier-check (pull_request_target) Successful in 7s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m11s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 19s
E2E Chat / E2E Chat (pull_request) Successful in 19s
qa-review / approved (pull_request_target) Refired via /qa-recheck by unknown
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 1m13s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m11s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m32s
qa-review / approved (pull_request_review) Has been skipped
security-review / approved (pull_request_review) Has been skipped
sop-tier-check / tier-check (pull_request_review) Successful in 6s
audit-force-merge / audit (pull_request_target) Successful in 4s
1e4ed28023
core-qa approved these changes 2026-06-04 02:52:43 +00:00
core-qa left a comment
Member

qa: narrow env-only fix mirroring build-and-push's writable-config pattern; YAML-validated; deploy already broken so can only help. P1 unblock.

qa: narrow env-only fix mirroring build-and-push's writable-config pattern; YAML-validated; deploy already broken so can only help. P1 unblock.
cp-be added the tier:low label 2026-06-04 02:52:44 +00:00
Member

/qa-recheck /security-recheck

/qa-recheck /security-recheck
core-security approved these changes 2026-06-04 02:53:16 +00:00
core-security left a comment
Member

security: env-only (HOME/DOCKER_CONFIG -> RUNNER_TEMP); no secrets, no new perms, removes a host-path dependency. Approving.

security: env-only (HOME/DOCKER_CONFIG -> RUNNER_TEMP); no secrets, no new perms, removes a host-path dependency. Approving.
Author
Owner

/qa-recheck /security-recheck

/qa-recheck /security-recheck
cp-lead merged commit 619258cd23 into main 2026-06-04 02:54:11 +00:00
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2196