CI: scratch directories per run, not per commit
Test and deploy / test (push) Successful in 26s
Test and deploy / deploy (push) Successful in 26s

The build runner takes two jobs at once, so the same commit pushed to
two branches (main and a feature branch) ran its test job twice in
parallel against one src-<sha> directory, and each run's clean-up
deleted the other's source mid-test. Suffix the scratch directories
(and activity-tracker's throwaway Postgres and network) with the run id.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:14:45 +00:00
co-authored by Claude Opus 5.5
parent d383774e97
commit 66173d96e3
+3 -1
View File
@@ -24,7 +24,9 @@ jobs:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
# Kept between runs so fetches are incremental. # Kept between runs so fetches are incremental.
CACHE: /home/adamf/.cache/stpweb-ci/repo.git CACHE: /home/adamf/.cache/stpweb-ci/repo.git
SRC: /home/adamf/.cache/stpweb-ci/src-${{ github.sha }} # Per run, not just per commit: the build runner takes two jobs at
# once, and the same commit pushed to two branches runs twice.
SRC: /home/adamf/.cache/stpweb-ci/src-${{ github.sha }}-${{ github.run_id }}
steps: steps:
- name: Export the pushed commit to a scratch directory - name: Export the pushed commit to a scratch directory
shell: bash shell: bash