Skip to content

Stop Dockerfile build steps hiding failed commands - #827

Merged
KavanPrice merged 1 commit into
devfrom
kp/dockerfile-set-e
Oct 22, 2026
Merged

KavanPrice merged 1 commit into
devfrom
kp/dockerfile-set-e

Conversation

@KavanPrice

@KavanPrice KavanPrice commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Most images run their build steps in heredocs without set -e, so a step that fails part-way through still produces an image. That's how the broken visualiser bundle reached v6.13.0 (#826).

  • Every RUN <<'SHELL' heredoc now starts with set -e.
  • acs-service-setup and edge-helm-charts use sh -ex instead of sh -x.

No other heredoc step was failing in the v6.13.0 build, so nothing should start failing to build.

@KavanPrice
KavanPrice added this pull request to stack #833 October 21, 2026 17:54
Most images run their build steps in RUN <<'SHELL' heredocs. Without
set -e only the last command's exit status counts, so a step that
fails part-way through (npm install, a TypeScript build, apk add, the
postgres make) still produces an image. That is how a broken
visualiser bundle reached v6.13.0 (#826).

Start every heredoc with set -e, and run the sh -x heredocs in
acs-service-setup and edge-helm-charts with sh -ex, to match acs-files
and acs-git.

In the v6.13.0 release build logs no heredoc step other than the
visualiser's webpack build was failing, so no image should start
failing to build because of this.
@KavanPrice
KavanPrice merged commit 223e477 into dev Oct 22, 2026
2 checks passed
@KavanPrice
KavanPrice deleted the kp/dockerfile-set-e branch October 22, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants