From 1ee5c4b942ac9cb68282ee67da483a18308ef2b7 Mon Sep 17 00:00:00 2001 From: cawthorne Date: Thu, 28 May 2026 14:19:11 +0100 Subject: [PATCH 1/4] Add Onchain Script Tests to GH CI --- .github/workflows/go-all.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/go-all.yml b/.github/workflows/go-all.yml index 9a406c97..7c2362ea 100644 --- a/.github/workflows/go-all.yml +++ b/.github/workflows/go-all.yml @@ -29,3 +29,22 @@ jobs: uses: smartcontractkit/.github/actions/ci-test-go@ci-test-go/v1 with: use-go-cache: true + on-chain-data-test: + name: On-chain Data Tests + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v6 + + - name: Extract Go version + uses: ./.github/actions/check-go-version + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: ${{ env.go_version }} + cache-dependency-path: scripts/on-chain-data/go.sum + + - name: Run on-chain-data tests + working-directory: scripts/on-chain-data + run: go test -count=1 ./... From 612a11d0a6553342b5a504de0b6f763cee7a305e Mon Sep 17 00:00:00 2001 From: cawthorne Date: Thu, 28 May 2026 15:07:18 +0100 Subject: [PATCH 2/4] update perms --- .github/workflows/go-all.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/go-all.yml b/.github/workflows/go-all.yml index 7c2362ea..a7430ea6 100644 --- a/.github/workflows/go-all.yml +++ b/.github/workflows/go-all.yml @@ -32,6 +32,8 @@ jobs: on-chain-data-test: name: On-chain Data Tests runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Check out code uses: actions/checkout@v6 From fd1bf671d63267b65eb872536217a18c73d81485 Mon Sep 17 00:00:00 2001 From: cawthorne Date: Thu, 28 May 2026 16:16:15 +0100 Subject: [PATCH 3/4] Optimize GH CI storage --- .github/workflows/aptos-run-smoke-tests.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/aptos-run-smoke-tests.yml b/.github/workflows/aptos-run-smoke-tests.yml index 939ba8bc..a088b8d3 100644 --- a/.github/workflows/aptos-run-smoke-tests.yml +++ b/.github/workflows/aptos-run-smoke-tests.yml @@ -49,14 +49,19 @@ jobs: # Clear up disk space, else we run out below: # Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/_diag/Worker_20250801-102100-utc.log' + # ubuntu-latest has ~72G on / and a separate ~74G volume on /mnt — write the tar there. - name: Flatten chainlink-aptos image run: | set -e df -h - docker save chainlink-aptos:latest -o chainlink-aptos.tar + # Base image is already in chainlink-aptos layers; drop it before save. + docker rmi local_chainlink || true + docker builder prune -af || true + export TMPDIR=/mnt + docker save chainlink-aptos:latest -o /mnt/chainlink-aptos.tar docker system prune -a -f - docker load -i chainlink-aptos.tar - rm -vf chainlink-aptos.tar + docker load -i /mnt/chainlink-aptos.tar + rm -vf /mnt/chainlink-aptos.tar df -h - name: Extract Go version From d5036787ab9b657e73fef29d38e0af68bbe827b8 Mon Sep 17 00:00:00 2001 From: cawthorne Date: Thu, 28 May 2026 16:58:20 +0100 Subject: [PATCH 4/4] Optimize GH CI storage 2 --- .github/workflows/aptos-run-smoke-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/aptos-run-smoke-tests.yml b/.github/workflows/aptos-run-smoke-tests.yml index a088b8d3..4ff921f7 100644 --- a/.github/workflows/aptos-run-smoke-tests.yml +++ b/.github/workflows/aptos-run-smoke-tests.yml @@ -49,7 +49,6 @@ jobs: # Clear up disk space, else we run out below: # Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/_diag/Worker_20250801-102100-utc.log' - # ubuntu-latest has ~72G on / and a separate ~74G volume on /mnt — write the tar there. - name: Flatten chainlink-aptos image run: | set -e @@ -57,11 +56,12 @@ jobs: # Base image is already in chainlink-aptos layers; drop it before save. docker rmi local_chainlink || true docker builder prune -af || true - export TMPDIR=/mnt - docker save chainlink-aptos:latest -o /mnt/chainlink-aptos.tar + TAR="${RUNNER_TEMP}/chainlink-aptos.tar" + export TMPDIR="${RUNNER_TEMP}" + docker save chainlink-aptos:latest -o "${TAR}" docker system prune -a -f - docker load -i /mnt/chainlink-aptos.tar - rm -vf /mnt/chainlink-aptos.tar + docker load -i "${TAR}" + rm -vf "${TAR}" df -h - name: Extract Go version