Skip to content

The only tool you need to know what is happening and how to fix it.

ci: move every first-party action off the Node 20 runtime (#328)

FrameAutomata31c8d43f5642
diff --git a/.github/workflows/backend-vulncheck.yml b/.github/workflows/backend-vulncheck.yml
index f3a45575..625811dc 100644
--- a/.github/workflows/backend-vulncheck.yml
+++ b/.github/workflows/backend-vulncheck.yml
@@ -67,18 +67,18 @@ jobs:
working-directory: backend
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- # setup-go@v5 reads the `go` line of go.mod; Go's own GOTOOLCHAIN=auto
- # then downloads the `toolchain` version, so the scan runs on the same
- # release release-traceway.yml builds the runner with. The Docker images are not covered by that: the official golang
- # bases set GOTOOLCHAIN=local, so they build with whatever the floating
- # golang:1.26-* tag ships, which is >= what is scanned here. One setup-go
- # cache shared by the three rows is fine here, unlike backend.yml: with
- # no -race and no test builds the module cache is what matters, and it
- # is identical across rows.
+ # setup-go@v7 installs the `toolchain` version of go.mod directly, so the
+ # scan runs on the same release release-traceway.yml builds the runner
+ # with. The Docker images are not covered by that: their golang bases pin
+ # GOTOOLCHAIN=local, so they ignore the `toolchain` line and build with
+ # whatever the floating golang:1.26-* tag ships, which is >= what is
+ # scanned here. One setup-go cache shared by the three rows is fine here,
+ # unlike backend.yml: with no -race and no test builds the module cache
+ # is what matters, and it is identical across rows.
- name: Setup Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 0df24706..08e06f42 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -36,10 +36,11 @@ jobs:
working-directory: backend
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ id: setup-go
+ uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
# Cached per build-tag set below instead: setup-go keys only on
@@ -48,16 +49,20 @@ jobs:
# leaving the duckdb job to re-fetch ~131MB of libduckdb every run.
cache: false
+ # The Go version is part of the key because both cached trees depend on
+ # it: go-build entries are compiler-keyed, and a Go bump otherwise leaves
+ # the superseded toolchain module sitting in ~/go/pkg/mod, which the
+ # run_id rotation below then copies forward on every run.
- name: Cache Go modules and build
- uses: actions/cache@v4
+ uses: actions/cache@v6
with:
path: |
~/.cache/go-build
~/go/pkg/mod
- key: go-${{ runner.os }}-sqlite-${{ hashFiles('backend/go.sum') }}-${{ github.run_id }}
+ key: go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-sqlite-${{ hashFiles('backend/go.sum') }}-${{ github.run_id }}
restore-keys: |
- go-${{ runner.os }}-sqlite-${{ hashFiles('backend/go.sum') }}-
- go-${{ runner.os }}-sqlite-
+ go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-sqlite-${{ hashFiles('backend/go.sum') }}-
+ go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-sqlite-
# CGO_ENABLED=0 mirrors Dockerfile.sqlite, so CI links what ships.
- name: Build
@@ -116,24 +121,25 @@ jobs:
CGO_ENABLED: "1"
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ id: setup-go
+ uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
cache: false
- name: Cache Go modules and build
- uses: actions/cache@v4
+ uses: actions/cache@v6
with:
path: |
~/.cache/go-build
~/go/pkg/mod
- key: go-${{ runner.os }}-duckdb-${{ hashFiles('backend/go.sum') }}-${{ github.run_id }}
+ key: go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-duckdb-${{ hashFiles('backend/go.sum') }}-${{ github.run_id }}
restore-keys: |
- go-${{ runner.os }}-duckdb-${{ hashFiles('backend/go.sum') }}-
- go-${{ runner.os }}-duckdb-
+ go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-duckdb-${{ hashFiles('backend/go.sum') }}-
+ go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-duckdb-
# Retained even though the ./... test scope below compiles every package
# too: this fails fast with a plain build error before any test binary is
@@ -205,24 +211,25 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ id: setup-go
+ uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
cache: false
- name: Cache Go modules and build
- uses: actions/cache@v4
+ uses: actions/cache@v6
with:
path: |
~/.cache/go-build
~/go/pkg/mod
- key: go-${{ runner.os }}-pgch-${{ hashFiles('backend/go.sum') }}-${{ github.run_id }}
+ key: go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-pgch-${{ hashFiles('backend/go.sum') }}-${{ github.run_id }}
restore-keys: |
- go-${{ runner.os }}-pgch-${{ hashFiles('backend/go.sum') }}-
- go-${{ runner.os }}-pgch-
+ go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-pgch-${{ hashFiles('backend/go.sum') }}-
+ go-${{ runner.os }}-${{ steps.setup-go.outputs.go-version }}-pgch-
# CGO_ENABLED=0 mirrors Dockerfile and Dockerfile.minimal.
- name: Build
diff --git a/.github/workflows/benchmark-hardware.yml b/.github/workflows/benchmark-hardware.yml
index 7ee1ef6f..69a49778 100644
--- a/.github/workflows/benchmark-hardware.yml
+++ b/.github/workflows/benchmark-hardware.yml
@@ -132,7 +132,7 @@ jobs:
CLICKHOUSE_DATABASE: ${{ secrets.BENCH_CH_DATABASE }}
BENCH_CH_HTTPS_PORT: ${{ secrets.BENCH_CH_HTTPS_PORT }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Install hcloud CLI
run: |
@@ -149,7 +149,7 @@ jobs:
printf '%s\n' "${{ secrets.BENCHMARK_SSH_PRIVATE_KEY }}" > "$key"
echo "BENCHMARK_SSH_KEY=$key" >> "$GITHUB_ENV"
- - uses: actions/setup-go@v5
+ - uses: actions/setup-go@v7
with:
go-version: '1.25'
@@ -166,7 +166,7 @@ jobs:
fi
./benchmarks/scripts/run-matrix-entry.sh "${{ matrix.tier }}" "${{ matrix.mode }}" "${{ matrix.signal }}" "${{ github.event.inputs.duration }}" benchmarks/_artifact "" "${async_arg}"
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: always()
with:
name: result-${{ matrix.tier }}-${{ matrix.mode }}-${{ matrix.signal }}${{ github.event.inputs.async_insert == 'true' && '-async' || '' }}
@@ -178,13 +178,13 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
with:
# Need history so the bot commit doesn't trample anything.
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- - uses: actions/download-artifact@v4
+ - uses: actions/download-artifact@v8
with:
path: /tmp/results-raw
diff --git a/.github/workflows/benchmark-metricsdb.yml b/.github/workflows/benchmark-metricsdb.yml
index 01f80bd3..78a6f59c 100644
--- a/.github/workflows/benchmark-metricsdb.yml
+++ b/.github/workflows/benchmark-metricsdb.yml
@@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
@@ -98,7 +98,7 @@ jobs:
cp scripts/remote-*.sh _artifact/
LD_LIBRARY_PATH=_artifact _artifact/metricsdb-bench --version
ls -la _artifact
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
with:
name: metricsdb-bench
path: benchmarks/metricsdb/_artifact/
@@ -152,9 +152,9 @@ jobs:
ARTIFACT_DIR: ${{ github.workspace }}/benchmarks/metricsdb/_artifact
OUT_DIR: ${{ github.workspace }}/benchmarks/metricsdb/_results
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- - uses: actions/download-artifact@v4
+ - uses: actions/download-artifact@v8
with:
name: metricsdb-bench
path: benchmarks/metricsdb/_artifact/
@@ -183,7 +183,7 @@ jobs:
timeout-minutes: 330
run: ./benchmarks/metricsdb/scripts/entry.sh ${{ matrix.db }}
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: always()
with:
name: metricsdb-result-${{ github.event.inputs.tier }}-${{ matrix.db }}
@@ -203,9 +203,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- - uses: actions/download-artifact@v4
+ - uses: actions/download-artifact@v8
with:
pattern: metricsdb-result-*
merge-multiple: true
@@ -223,7 +223,7 @@ jobs:
got=$(find "${results}" -maxdepth 1 -name '*.json' | wc -l | tr -d ' ')
echo "cells with a result file: ${got}/${{ needs.setup.outputs.expected }}"
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
with:
name: metricsdb-summary
path: |
diff --git a/.github/workflows/benchmark-processor.yml b/.github/workflows/benchmark-processor.yml
index bc2e9d3f..8b787990 100644
--- a/.github/workflows/benchmark-processor.yml
+++ b/.github/workflows/benchmark-processor.yml
@@ -77,13 +77,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-go@v5
+ - uses: actions/checkout@v7
+ - uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- uses: dtolnay/rust-toolchain@stable
- - uses: actions/setup-node@v4
+ - uses: actions/setup-node@v7
with:
node-version: 22
- name: Build oxc shim
@@ -127,7 +127,7 @@ jobs:
cp config-honeycomb.yaml config-honeycomb-ios.yaml config-honeycomb-android.yaml artifacts/
[ -f ../../testing/symbolication/node-app/dist/app.mjs ] && cp ../../testing/symbolication/node-app/dist/app.mjs ../../testing/symbolication/node-app/dist/app.mjs.map artifacts/ || true
fi
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
with:
name: bench-artifacts
path: benchmarks/processor/artifacts/
@@ -158,8 +158,8 @@ jobs:
matrix:
impl: ${{ fromJson(needs.setup.outputs.impls) }}
steps:
- - uses: actions/checkout@v4
- - uses: actions/download-artifact@v4
+ - uses: actions/checkout@v7
+ - uses: actions/download-artifact@v8
with:
name: bench-artifacts
path: benchmarks/processor/artifacts/
@@ -193,7 +193,7 @@ jobs:
hcloud server delete "bench-sut-${{ github.run_id }}-${{ matrix.impl }}" 2>/dev/null || true
hcloud server delete "bench-ldg-${{ github.run_id }}-${{ matrix.impl }}" 2>/dev/null || true
hcloud ssh-key delete "bench-key-${{ github.run_id }}-${{ matrix.impl }}" 2>/dev/null || true
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: always()
with:
name: results-${{ matrix.impl }}
@@ -204,8 +204,8 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/download-artifact@v4
+ - uses: actions/checkout@v7
+ - uses: actions/download-artifact@v8
with:
pattern: results-*
merge-multiple: true
@@ -213,7 +213,7 @@ jobs:
- name: Summarize
working-directory: benchmarks/processor
run: bash summarize.sh ./results | tee -a "$GITHUB_STEP_SUMMARY"
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
with:
name: summary
path: benchmarks/processor/results/
diff --git a/.github/workflows/benchmark-symbolicator-cache.yml b/.github/workflows/benchmark-symbolicator-cache.yml
index 8c299761..ea045d9d 100644
--- a/.github/workflows/benchmark-symbolicator-cache.yml
+++ b/.github/workflows/benchmark-symbolicator-cache.yml
@@ -47,7 +47,7 @@ jobs:
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
- name: Install hcloud CLI
run: |
@@ -61,7 +61,7 @@ jobs:
printf '%s\n' "${{ secrets.BENCHMARK_SSH_PRIVATE_KEY }}" > "$key"
echo "BENCHMARK_SSH_KEY=$key" >> "$GITHUB_ENV"
- - uses: actions/setup-go@v5
+ - uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
@@ -86,7 +86,7 @@ jobs:
cat benchmarks/results-cachebench/summary.md >> "$GITHUB_STEP_SUMMARY"
fi
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: always()
with:
name: cachebench-${{ github.event.inputs.tier }}
diff --git a/.github/workflows/benchmark-symbolicator.yml b/.github/workflows/benchmark-symbolicator.yml
index 4280d074..cf0855b5 100644
--- a/.github/workflows/benchmark-symbolicator.yml
+++ b/.github/workflows/benchmark-symbolicator.yml
@@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
@@ -32,7 +32,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Cache oxc shim build
- uses: actions/cache@v4
+ uses: actions/cache@v6
with:
path: |
~/.cargo/registry
@@ -58,7 +58,7 @@ jobs:
} >> "$GITHUB_STEP_SUMMARY"
- name: Upload results
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@v7
with:
name: symbolicator-bench
path: symbolicator-bench.txt
diff --git a/.github/workflows/cli-contract.yml b/.github/workflows/cli-contract.yml
index 9ff1b67b..8e129118 100644
--- a/.github/workflows/cli-contract.yml
+++ b/.github/workflows/cli-contract.yml
@@ -31,10 +31,10 @@ jobs:
working-directory: cli/test/contract
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: cli/test/contract/go.mod
cache-dependency-path: cli/test/contract/go.sum
diff --git a/.github/workflows/cli-lint.yml b/.github/workflows/cli-lint.yml
index 8222f24b..482e2a5e 100644
--- a/.github/workflows/cli-lint.yml
+++ b/.github/workflows/cli-lint.yml
@@ -46,10 +46,10 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: cli/go.mod
cache-dependency-path: cli/go.sum
@@ -73,10 +73,10 @@ jobs:
working-directory: cli
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: cli/go.mod
cache-dependency-path: cli/go.sum
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
index a515c5e1..113ccd3d 100644
--- a/.github/workflows/cli.yml
+++ b/.github/workflows/cli.yml
@@ -29,10 +29,10 @@ jobs:
working-directory: cli
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: cli/go.mod
cache-dependency-path: cli/go.sum
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml
index e01c4489..f47d39b8 100644
--- a/.github/workflows/release-cli.yml
+++ b/.github/workflows/release-cli.yml
@@ -36,7 +36,7 @@ jobs:
fi
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
fetch-depth: 0
@@ -49,7 +49,7 @@ jobs:
fi
- name: Setup Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: cli/go.mod
cache-dependency-path: cli/go.sum
diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml
index 6cd0cf76..81efc149 100644
--- a/.github/workflows/release-docs.yml
+++ b/.github/workflows/release-docs.yml
@@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
node-version: "latest"
cache: "npm"
diff --git a/.github/workflows/release-helm.yml b/.github/workflows/release-helm.yml
index a5f54ae6..23812a8f 100644
--- a/.github/workflows/release-helm.yml
+++ b/.github/workflows/release-helm.yml
@@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Determine version
id: version
diff --git a/.github/workflows/release-traceway.yml b/.github/workflows/release-traceway.yml
index d586175b..c95e4183 100644
--- a/.github/workflows/release-traceway.yml
+++ b/.github/workflows/release-traceway.yml
@@ -46,7 +46,7 @@ jobs:
fi
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
@@ -60,7 +60,7 @@ jobs:
fi
- name: Setup Node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
# frontend/package.json only declares a floor (>=22); keep the
# release build on the same major the Dockerfiles use.
@@ -164,7 +164,7 @@ jobs:
--notes "$NOTES"
- name: Set up Go for runner binaries
- uses: actions/setup-go@v5
+ uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
@@ -198,7 +198,7 @@ jobs:
needs: release
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
diff --git a/.github/workflows/release-website.yml b/.github/workflows/release-website.yml
index 6c2c1bda..22c58fc1 100644
--- a/.github/workflows/release-website.yml
+++ b/.github/workflows/release-website.yml
@@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v7
- name: Setup Node
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v7
with:
node-version: "latest"
cache: "npm"
diff --git a/.github/workflows/traceway-autofix.yml b/.github/workflows/traceway-autofix.yml
index 5ddd9896..e33cc05d 100644
--- a/.github/workflows/traceway-autofix.yml
+++ b/.github/workflows/traceway-autofix.yml
@@ -17,7 +17,7 @@ jobs:
issues: write
id-token: write
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
@@ -34,7 +34,7 @@ jobs:
-H "anthropic-version: 2023-06-01" -o /dev/null \
|| { echo "ANTHROPIC_API_KEY was rejected"; exit 1; }
- - uses: actions/setup-go@v5
+ - uses: actions/setup-go@v7
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
@@ -129,7 +129,7 @@ jobs:
git diff HEAD > "$RUNNER_TEMP/artifact/fix.patch" || true
git status --porcelain > "$RUNNER_TEMP/artifact/changed-files.txt" || true
- - uses: actions/upload-artifact@v4
+ - uses: actions/upload-artifact@v7
if: always()
with:
name: traceway-fix-issue-${{ github.event.issue.number }}
diff --git a/docs/pages/client/js-sdk/sourcemap-upload.mdx b/docs/pages/client/js-sdk/sourcemap-upload.mdx
index 7380e60e..ab5805f2 100644
--- a/docs/pages/client/js-sdk/sourcemap-upload.mdx
+++ b/docs/pages/client/js-sdk/sourcemap-upload.mdx
@@ -87,8 +87,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
+ - uses: actions/checkout@v7
+ - uses: actions/setup-node@v7
with:
node-version: 20