ci: rename CI-internal workflow inputs to *_EARTHBUILD_*#645
ci: rename CI-internal workflow inputs to *_EARTHBUILD_*#645kmannislands wants to merge 1 commit into
Conversation
Renames two GitHub Actions inputs that are purely CI-internal plumbing:
BUILT_EARTHLY_PATH -> BUILT_EARTHBUILD_PATH
RUN_EARTHLY_TEST_ARGS -> RUN_EARTHBUILD_TEST_ARGS
These are reusable-workflow / composite-action inputs (the path to the
built binary and extra test CLI args). Renamed consistently across every
declaration (`inputs:`), consumer (`${{ inputs.* }}`), and caller
(`with:`) in .github. They have no consumers outside .github and are not
read by the earthly binary, so behavior is unchanged.
Left untouched: real env vars read by the tool (EARTHLY_VERSION_FLAG_OVERRIDES,
EARTHLY_TOKEN, EARTHLY_ORG, EARTHLY_INSTALL_ID, EARTHLY_BUILDKIT_IMAGE, ...)
and binary-path values like "./build/linux/amd64/earthly".
All changed workflow YAML parses. Reduces "earthly" line count by 65.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request renames the input parameter BUILT_EARTHLY_PATH to BUILT_EARTHBUILD_PATH in the stage2-setup GitHub Action and updates all of its references. The review feedback identifies multiple instances where the newly renamed path variable or its dirname command substitution is unquoted in shell commands. To prevent word splitting and potential execution failures if the path contains spaces, it is recommended to wrap these references in double quotes.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| chmod +x "${{inputs.BUILT_EARTHLY_PATH}}" | ||
| echo "Earthly binary installed from artifact to ${{inputs.BUILT_EARTHLY_PATH}}" | ||
| test -n "${{inputs.BUILT_EARTHBUILD_PATH}}" || (echo "BUILT_EARTHBUILD_PATH is empty" && exit 1) | ||
| mkdir -p $(dirname "${{inputs.BUILT_EARTHBUILD_PATH}}") |
There was a problem hiding this comment.
The command substitution $(dirname ...) is unquoted. If the path in BUILT_EARTHBUILD_PATH contains spaces or special characters, this will result in word splitting and cause the mkdir command to fail. Wrap the command substitution in double quotes to ensure robustness.
mkdir -p "$(dirname "${{inputs.BUILT_EARTHBUILD_PATH}}")"| test -n "${{inputs.BUILT_EARTHLY_PATH}}" || (echo "BUILT_EARTHLY_PATH is empty" && exit 1) | ||
| mkdir -p $(dirname "${{inputs.BUILT_EARTHLY_PATH}}") | ||
| test -n "${{inputs.BUILT_EARTHBUILD_PATH}}" || (echo "BUILT_EARTHBUILD_PATH is empty" && exit 1) | ||
| mkdir -p $(dirname "${{inputs.BUILT_EARTHBUILD_PATH}}") |
| - run: |- | ||
| echo "Configuring earthbuild to use GCR mirror" | ||
| ${{inputs.BUILT_EARTHLY_PATH}} config global.buildkit_additional_config "'[registry.\"docker.io\"] | ||
| ${{inputs.BUILT_EARTHBUILD_PATH}} config global.buildkit_additional_config "'[registry.\"docker.io\"] |
| export expected_buildkit_client_sha="$(cat earthly-next | head -c 12)" | ||
| test -n "$expected_buildkit_client_sha" || ( echo "expected_buildkit_client_sha is empty" && exit 1) | ||
| (strings ${{inputs.BUILT_EARTHLY_PATH}} | grep "$expected_buildkit_client_sha" ) || ( echo "expected to find $expected_buildkit_client_sha in earthly binary" && exit 1) | ||
| (strings ${{inputs.BUILT_EARTHBUILD_PATH}} | grep "$expected_buildkit_client_sha" ) || ( echo "expected to find $expected_buildkit_client_sha in earthly binary" && exit 1) |
There was a problem hiding this comment.
The binary path ${{inputs.BUILT_EARTHBUILD_PATH}} is unquoted inside the strings command. Wrap it in double quotes to prevent word splitting.
(strings "${{inputs.BUILT_EARTHBUILD_PATH}}" | grep "$expected_buildkit_client_sha" ) || ( echo "expected to find $expected_buildkit_client_sha in earthly binary" && exit 1)| shell: bash | ||
| - if: ${{ inputs.BINARY == 'podman' }} | ||
| run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHLY_PATH}} bootstrap | ||
| run: ${{inputs.SUDO}} ${{inputs.BUILT_EARTHBUILD_PATH}} bootstrap |
🎉 Are we earthbuild yet?Great progress! You've reduced "earthly" occurrences by 65 (1.20%) 📈 Overall Progress
Keep up the great work migrating from Earthly to Earthbuild! 🚀 💡 Tips for finding more occurrencesRun locally to see detailed breakdown: ./.github/scripts/count-earthly.shNote that the goal is not to reach 0. |
| required: false | ||
| default: 'latest' | ||
| BUILT_EARTHLY_PATH: | ||
| BUILT_EARTHBUILD_PATH: |
There was a problem hiding this comment.
Based on this comment, I would prefer EARTH instead of EARHBUILD.
| BUILT_EARTHBUILD_PATH: | |
| BUILT_EARTH_PATH: |
What
Renames two GitHub Actions inputs that are purely CI-internal plumbing:
BUILT_EARTHLY_PATHBUILT_EARTHBUILD_PATHRUN_EARTHLY_TEST_ARGSRUN_EARTHBUILD_TEST_ARGSThese are reusable-workflow / composite-action inputs — the path to the built binary and extra test CLI args. Renamed consistently across every declaration (
inputs:), consumer (${{ inputs.* }}), and caller (with:) in.github.Scope / safety
.github, and neither is read by theearthlybinary — pure CI plumbing, so runtime behavior is unchanged.EARTHLY_VERSION_FLAG_OVERRIDES,EARTHLY_TOKEN,EARTHLY_ORG,EARTHLY_INSTALL_ID,EARTHLY_BUILDKIT_IMAGE, ...) and binary-path values like"./build/linux/amd64/earthly".Verification
yaml.safe_load); input declarations still match theirwith:/inputs.references.earthlyline count by 65.🤖 Generated with Claude Code