molecule-ci/.github/workflows
Hongming Wang da6407e58a fix(publish-template-image): make smoke-cleanup tolerate host-side uid 1000 ownership
Third hot-fix for #2275 Phase 2 — claude-code re-run #3 showed the
boot smoke ITSELF passing (`[smoke-mode] PASS: timed out past import-
tree (imports healthy)`), but the workflow step still exited 1 because
the post-smoke cleanup `rm -rf "${SMOKE_CONFIG_DIR}"` failed with
`Permission denied`.

Root cause: the image entrypoint (entrypoint.sh) does
`chown -R agent:agent /configs` before exec'ing molecule-runtime as
uid 1000. Because /configs is a bind-mount of the host's mktemp dir,
the chown propagates to the host — the runner user (the GHA `runner`
account, NOT root) can no longer delete the files inside it. With
`set -e` in effect, that rm exit propagates and we report failure
even though the gate itself passed.

Fix: best-effort rm with sudo fallback and final `|| true`. The
runner is ephemeral; /tmp gets cleaned automatically at job teardown.

Verified against run 25202859503 which showed every other step green
+ the smoke itself passing — only this rm was the blocker.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 21:56:36 -07:00
..
auto-promote-branch.yml docs: recommend @v1 over @main in reusable-workflow adoption snippets (#16) 2026-04-28 11:14:12 -07:00
auto-promote-staging-pr.yml docs: pin reusable-workflow examples from @main to @v1 (P133) 2026-04-30 01:04:06 -07:00
auto-promote-staging.yml docs: recommend @v1 over @main in reusable-workflow adoption snippets (#16) 2026-04-28 11:14:12 -07:00
disable-auto-merge-on-push.yml docs: recommend @v1 over @main in reusable-workflow adoption snippets (#16) 2026-04-28 11:14:12 -07:00
publish-template-image.yml fix(publish-template-image): make smoke-cleanup tolerate host-side uid 1000 ownership 2026-04-30 21:56:36 -07:00
validate-org-template.yml fix(validate): fetch validator scripts from molecule-ci instead of expecting them in caller 2026-04-29 01:56:25 -07:00
validate-plugin.yml fix(validate): fetch validator scripts from molecule-ci instead of expecting them in caller 2026-04-29 01:56:25 -07:00
validate-workspace-template.yml ci: lock down validate-workspace-template against fork-PR untrusted code (P135) 2026-04-30 01:07:58 -07:00