From ea293a2f33f5097312d46a88bb2d0fd92b795ac1 Mon Sep 17 00:00:00 2001 From: Teddy Knox Date: Thu, 29 Oct 2026 12:24:14 -0400 Subject: [PATCH] ci: keep a Go build cache per go-tests node The 12 go-tests nodes shared one build-cache key per revision. Cache keys are immutable, so only the first node to finish saved; the other nodes' new compiles were discarded and rebuilt on the next push. Each node now restores and saves its own cache. Co-Authored-By: Claude Opus 5.5 --- .circleci/continue/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/continue/main.yml b/.circleci/continue/main.yml index 1495c561e10..8dc40200c59 100644 --- a/.circleci/continue/main.yml +++ b/.circleci/continue/main.yml @@ -1978,8 +1978,11 @@ jobs: # needs libclang, absent from this image) or a stray local binary. echo "export RUST_BINARY_PATH_OP_RETH_TEST_ENGINE=$ROOT_DIR/rust/target/release/op-reth-test-engine" >> "$BASH_ENV" echo "export REQUIRE_RUST_ENGINE=1" >> "$BASH_ENV" + # Each parallel node keeps its own build cache. With one shared key, only + # the first node to finish can save (keys are immutable), so the other + # nodes' new compiles are discarded and rebuilt on the next push. - go-restore-cache: - namespace: go-tests + namespace: "go-tests-node-{{ .Environment.CIRCLE_NODE_INDEX }}" - run: name: Run Go tests no_output_timeout: <> @@ -1988,7 +1991,7 @@ jobs: export TEST_TIMEOUT=<> just <> - go-save-cache: - namespace: go-tests + namespace: "go-tests-node-{{ .Environment.CIRCLE_NODE_INDEX }}" - store_test_results: path: ./tmp/test-results - run: