Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/actions/local-environment-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ outputs: {}
runs:
using: "composite"
steps:
- uses: EarthBuild/actions-setup@cae2d9ab68894d8402751fe42e07c7cca0272f7f
- uses: EarthBuild/actions-setup@3eefe0d8a96e1ffbefb86e2bbf6542eec78cbccb
with:
version: v0.8.16
version: v0.8.17

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use the EarthBuild setup pin in local env tests

This composite still uses the old setup action ref, whose setup.ts hard-codes pkgName = 'earthly' and downloads from github.com/earthly/earthly/.../${pkgName}-...; pairing it with v0.8.17 breaks the continuous-integration.yml local-environment-tests job on clean runners because that release is the EarthBuild rename (earth binary under EarthBuild/earthbuild). Even if a runner had an old toolcache entry, the later step now invokes earth, which this old setup action does not install, so this action needs the new EarthBuild setup ref as well.

Useful? React with 👍 / 👎.

use-cache: false

# Match the tls_enabled: false setting the other self-hosted earthly jobs apply
# (run / test-toolkit). Without this, this action's earthly invocation has a
# different settings hash than the one already running on the host, and earthly's
# Match the tls_enabled: false setting the other self-hosted EarthBuild jobs apply
# (run / test-toolkit). Without this, this action's 'earth' invocation has a
# different settings hash than the one already running on the host, and EarthBuild's
# reuse-or-recycle logic SIGTERMs the existing buildkitd — taking down any
# concurrent earthly build on the same host. Still required after the WITH DOCKER
# flip: it governs the *outer* earthly/buildkitd, which we deliberately keep shared.
- name: Disable earthly TLS (self-hosted runner has no certs)
# concurrent EarthBuild on the same host. Still required after the WITH DOCKER
# flip: it governs the *outer* EarthBuild/buildkitd, which we deliberately keep shared.
- name: Disable EarthBuild TLS (self-hosted runner has no certs)
shell: bash
run: |
echo " tls_enabled: false" >> .earthly/config.yml

# GHCR auth for earthly's `--pull` of the private node / indexer / toolkit images
# GHCR auth for EarthBuild's `--pull` of the private node / indexer / toolkit images
# into the nested DinD daemon (writes to the per-slot DOCKER_CONFIG the caller set).
- name: Docker Login
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee #v4.2.0
Expand All @@ -82,12 +82,12 @@ runs:
password: ${{ inputs.dockerhub-password }}

# The WHOLE premerge surface — stack bring-up → verify-finality → e2e suite →
# toolkit multi-dest E2E — now runs INSIDE earthly's nested dockerd (+local-env-ci,
# toolkit multi-dest E2E — now runs INSIDE EarthBuild's nested dockerd (+local-env-ci,
# needs `-P`). The nested daemon is ephemeral and per-invocation, so there are no
# leftover host containers to reclaim and no fixed host ports to collide on — which
# is why the caller drops the repo-wide concurrency group. No host-side node/just/npm
# setup is needed (it all lives inside the target). Source .envrc so EARTHLY_CONFIG
# matches the other self-hosted jobs (else earthly recycles the shared buildkitd).
# matches the other self-hosted jobs (else EarthBuild recycles the shared buildkitd).
- name: Deploy + test against local environment (nested dockerd)
shell: bash
env:
Expand All @@ -100,7 +100,7 @@ runs:
DOCKERHUB_TOKEN: ${{ inputs.dockerhub-password }}
run: |
. ./.envrc
earthly -P \
earth -P \
--secret DOCKERHUB_USER="$DOCKERHUB_USER" \
--secret DOCKERHUB_TOKEN="$DOCKERHUB_TOKEN" \
+local-env-ci \
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-publish-contract-precompiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
env:
FORCE_COLOR: 1
steps:
# Install Earthly
- uses: EarthBuild/actions-setup@cae2d9ab68894d8402751fe42e07c7cca0272f7f
# Install EarthBuild
- uses: EarthBuild/actions-setup@3eefe0d8a96e1ffbefb86e2bbf6542eec78cbccb
with:
version: v0.8.16
version: v0.8.17
github-token: ${{ github.token }}
use-cache: false

Expand All @@ -59,8 +59,8 @@ jobs:
username: MidnightCI
password: ${{ secrets.MIDNIGHTCI_PACKAGES_WRITE }}

# Run Earthly build with platform-specific flags
- name: Run Earthly build for linux/${{ matrix.platform }}
# Run EarthBuild with platform-specific flags
- name: Run EarthBuild for linux/${{ matrix.platform }}
id: version
env:
PLATFORM: ${{ matrix.platform }}
Expand All @@ -70,7 +70,7 @@ jobs:
echo "[net]" >> "$HOME"/.cargo/config
echo "git-fetch-with-cli = true" >> "$HOME"/.cargo/config

. ./.envrc && earthly --platform="linux/$PLATFORM" --push +node-ci-image-single-platform
. ./.envrc && earth --platform="linux/$PLATFORM" --push +node-ci-image-single-platform

RUST_VERSION=$(grep '^channel' rust-toolchain.toml | sed 's/.*"\(.*\)".*/\1/')
COMPACTC_VERSION=$(cat COMPACTC_VERSION)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-publish-partnerchains-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
env:
FORCE_COLOR: 1
steps:
- uses: EarthBuild/actions-setup@cae2d9ab68894d8402751fe42e07c7cca0272f7f
- uses: EarthBuild/actions-setup@3eefe0d8a96e1ffbefb86e2bbf6542eec78cbccb
with:
version: v0.8.16
version: v0.8.17
github-token: ${{ github.token }}
use-cache: false

Expand All @@ -43,4 +43,4 @@ jobs:
echo "[net]" >> "$HOME"/.cargo/config
echo "git-fetch-with-cli = true" >> "$HOME"/.cargo/config

. ./.envrc && earthly --ci --push +partnerchains-dev
. ./.envrc && earth --ci --push +partnerchains-dev
12 changes: 6 additions & 6 deletions .github/workflows/continuous-integration-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
username: MidnightCI
password: ${{ secrets.MIDNIGHTCI_PACKAGES_READ }}

- uses: EarthBuild/actions-setup@cae2d9ab68894d8402751fe42e07c7cca0272f7f
- uses: EarthBuild/actions-setup@3eefe0d8a96e1ffbefb86e2bbf6542eec78cbccb
if: steps.guard.outputs.hit != 'true'
with:
version: v0.8.16
version: v0.8.17
github-token: ${{ github.token }}
use-cache: false

Expand All @@ -57,7 +57,7 @@ jobs:
- name: Run build
if: steps.guard.outputs.hit != 'true'
run: |
. ./.envrc && earthly --ci +check
. ./.envrc && earth --ci +check

- uses: ./.github/actions/tree-cache-guard/save
if: steps.guard.outputs.hit != 'true'
Expand Down Expand Up @@ -88,10 +88,10 @@ jobs:
username: MidnightCI
password: ${{ secrets.MIDNIGHTCI_PACKAGES_READ }}

- uses: EarthBuild/actions-setup@cae2d9ab68894d8402751fe42e07c7cca0272f7f
- uses: EarthBuild/actions-setup@3eefe0d8a96e1ffbefb86e2bbf6542eec78cbccb
if: steps.guard.outputs.hit != 'true'
with:
version: v0.8.16
version: v0.8.17
github-token: ${{ github.token }}
use-cache: false

Expand All @@ -102,7 +102,7 @@ jobs:
- name: Run feature unification check
if: steps.guard.outputs.hit != 'true'
run: |
. ./.envrc && earthly --ci +check-feature-unification
. ./.envrc && earth --ci +check-feature-unification

- uses: ./.github/actions/tree-cache-guard/save
if: steps.guard.outputs.hit != 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/continuous-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
- id: guard
uses: ./.github/actions/tree-cache-guard

- uses: EarthBuild/actions-setup@cae2d9ab68894d8402751fe42e07c7cca0272f7f
- uses: EarthBuild/actions-setup@3eefe0d8a96e1ffbefb86e2bbf6542eec78cbccb
if: steps.guard.outputs.hit != 'true'
with:
version: v0.8.16
version: v0.8.17
github-token: ${{ github.token }}
use-cache: false

Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
exit 1
fi
echo "Using CACHE_KEY=$CACHE_KEY"
. ./.envrc && earthly -P \
. ./.envrc && earth -P \
--secret GITHUB_TOKEN="$GITHUB_TOKEN" \
--secret DOCKERHUB_USER="$DOCKERHUB_USER" \
--secret DOCKERHUB_TOKEN="$DOCKERHUB_TOKEN" \
Expand Down
Loading
Loading