CI: scratch directories per run, not per commit
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user