Bug: Apply step exit code capture broken — lock detection is dead code #151
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-platform#151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
standalone — discovered during pipeline failure investigation (session 2026-03-24)
Repo
forgejo_admin/pal-e-platformWhat Broke
In
.woodpecker.yamlline 193, the apply step uses a subshell piped to tee:When
tofu applyfails, the subshell'secho $?never executes — the pipe kills the left-side subshell before it reaches the echo./tmp/apply-exitis never created.Error in CI logs:
cat: can't open '/tmp/apply-exit': No such file or directoryThis makes the lock detection logic (lines 196-209) dead code — it's never reached. Subsumes #136.
Repro Steps
tofu applyExpected Behavior
Environment
Acceptance Criteria
Related
project-pal-e-platform— platform CIforgejo_admin/pal-e-platform #136— dead force-unlock block (subsumed by this fix)forgejo_admin/pal-e-platform #137— Woodpecker secret drift (also causes apply failures)