From 583d32735264024d8974046d700d5353199a15db Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Wed, 10 Jun 2026 09:04:00 +0000 Subject: [PATCH] ci: reuse Go test cache in PR gate; fix stale .github paths filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Drop -count=1 from the ci.yml test step. The runner fleet now persists GOCACHE across jobs (operator-config#184); -count=1 bypassed result reuse so the cache only sped up compilation. The suite is hermetic (httptest mock servers) and cache entries invalidate on any source or dependency change. -race is kept (76569b7). - Fix paths filters still pointing at .github/workflows/ci.yml after the post-suspension rename to .gitea/workflows/ — workflow edits never re-triggered CI. release.yml intentionally untouched (publish workflow). Co-Authored-By: Claude Fable 5 --- .gitea/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8cae493..6cbd32b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,13 +11,13 @@ on: - '**.go' - 'go.mod' - 'go.sum' - - '.github/workflows/ci.yml' + - '.gitea/workflows/ci.yml' pull_request: paths: - '**.go' - 'go.mod' - 'go.sum' - - '.github/workflows/ci.yml' + - '.gitea/workflows/ci.yml' permissions: contents: read @@ -36,4 +36,9 @@ jobs: - name: Vet run: go vet ./... - name: Test - run: go test -race -count=1 ./... + # No -count=1: the runner fleet persists GOCACHE (operator-config#184), + # so unchanged packages legitimately reuse cached results ("(cached)"). + # Tests here are hermetic (httptest mock servers); the cache invalidates + # on any source/dep change. Keep -race (76569b7 rationale: connect + # orchestrator heartbeat/poll goroutines). + run: go test -race ./... -- 2.52.0