Skip to content

fix(dev): let the Docker build scripts run when CI is unset - #2835

Merged
milenkovicm merged 1 commit into
apache:mainfrom
NoahKusaba:fix/build-scripts-unset-ci
Nov 10, 2026
Merged

milenkovicm merged 1 commit into
apache:mainfrom
NoahKusaba:fix/build-scripts-unset-ci

Conversation

@NoahKusaba

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

No issue filed; small fix.

Rationale for this change

#1705 added if test -z "${CI}" to both Docker build scripts to skip the cli and benchmarks images in CI. Both scripts run under set -u, so on any machine without CI set they abort before building an image:

./dev/build-ballista-executables.sh: line 43: CI: unbound variable

This breaks dev/integration-tests.sh and the documented local Docker build. CI never hits it because GitHub Actions sets CI=true.

What changes are included in this PR?

${CI} → ${CI:-} in dev/build-ballista-executables.sh and dev/build-ballista-docker.sh. CI behaviour is unchanged. Locally, the scripts build all images again, including the benchmarks image that docker-compose.yml uses.

Are there any user-facing changes?

No.

Both scripts run under `set -u`, so `${CI}` aborted with an unbound
variable error on any machine without CI set, which broke
dev/integration-tests.sh locally. Default it to empty.

@milenkovicm milenkovicm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @NoahKusaba

@milenkovicm
milenkovicm added this pull request to the merge queue Nov 10, 2026
Merged via the queue into apache:main with commit 9f770a9 Nov 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants