fix(ci): isolate publish buildx docker config #1641

Merged
hongming merged 1 commits from fix/publish-buildx-docker-config into main 2026-05-21 17:43:31 +00:00
Owner

Summary

  • Set a per-job writable DOCKER_CONFIG before docker/setup-buildx-action in the publish workflow
  • Pre-create buildx/certs under RUNNER_TEMP so the publish runner does not use the host-owned /home/hongming/.docker-ecr path

Why

The fresh staging peer-visibility E2E exposed that the tenant image is stale: the admin workspace-token route exists in main, but the post-merge publish job failed before building with EACCES creating /home/hongming/.docker-ecr/buildx/certs. Without a successful publish, fresh tenants continue booting an older platform-tenant:staging-latest image and POST /admin/workspaces/:id/tokens falls through to Canvas.

Tests

  • python3 .gitea/scripts/lint-workflow-yaml.py --workflow-dir .gitea/workflows
  • git diff --check
## Summary - Set a per-job writable DOCKER_CONFIG before docker/setup-buildx-action in the publish workflow - Pre-create buildx/certs under RUNNER_TEMP so the publish runner does not use the host-owned /home/hongming/.docker-ecr path ## Why The fresh staging peer-visibility E2E exposed that the tenant image is stale: the admin workspace-token route exists in main, but the post-merge publish job failed before building with EACCES creating /home/hongming/.docker-ecr/buildx/certs. Without a successful publish, fresh tenants continue booting an older platform-tenant:staging-latest image and POST /admin/workspaces/:id/tokens falls through to Canvas. ## Tests - python3 .gitea/scripts/lint-workflow-yaml.py --workflow-dir .gitea/workflows - git diff --check
hongming added 1 commit 2026-05-21 17:38:05 +00:00
fix(ci): isolate publish buildx docker config
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 5s
CI / Detect changes (pull_request) Successful in 6s
E2E API Smoke Test / detect-changes (pull_request) Successful in 5s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 7s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 8s
E2E Chat / detect-changes (pull_request) Successful in 8s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 7s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 4s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 3s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 1m16s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 1m13s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 5s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
gate-check-v3 / gate-check (pull_request) Successful in 7s
qa-review / approved (pull_request) Failing after 4s
security-review / approved (pull_request) Failing after 4s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 3s
sop-checklist / review-refire (pull_request) Has been skipped
sop-tier-check / tier-check (pull_request) Successful in 4s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 1m31s
CI / Platform (Go) (pull_request) Successful in 3s
CI / Canvas (Next.js) (pull_request) Successful in 2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 1s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 2s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 4s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m4s
CI / all-required (pull_request) Successful in 2m34s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m16s
audit-force-merge / audit (pull_request) Successful in 8s
fc7498fef0
hongming reviewed 2026-05-21 17:42:29 +00:00
hongming left a comment
Author
Owner

Approving CI-only publish fix. Required CI aggregate is green; change is scoped to writable DOCKER_CONFIG before setup-buildx.

Approving CI-only publish fix. Required CI aggregate is green; change is scoped to writable DOCKER_CONFIG before setup-buildx.
hongming reviewed 2026-05-21 17:42:44 +00:00
hongming left a comment
Author
Owner

Approving CI-only publish fix.

Approving CI-only publish fix.
devops-engineer approved these changes 2026-05-21 17:43:05 +00:00
devops-engineer left a comment
Member

devops approval: CI-only publish runner fix; required CI aggregate green; change scopes DOCKER_CONFIG to RUNNER_TEMP before setup-buildx.

devops approval: CI-only publish runner fix; required CI aggregate green; change scopes DOCKER_CONFIG to RUNNER_TEMP before setup-buildx.
infra-runtime-be approved these changes 2026-05-21 17:43:23 +00:00
infra-runtime-be left a comment
Member

infra approval: fixes publish runner Buildx config ownership; required CI aggregate green.

infra approval: fixes publish runner Buildx config ownership; required CI aggregate green.
hongming merged commit fd92df486c into main 2026-05-21 17:43:31 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1641