mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
ci: stop a self-hosted job whose work or temp dir is not on NVMe
One runner box kept its runners' work, temp and Go cache directories on its SATA system disk (the default install puts _work under the runner directory in /home). Under the process-level tests' fsync load that disk saturated and jobs timed out, which read as test failures. The first step of the test and known-bugs jobs on a self-hosted runner now checks that every disk behind the workspace, RUNNER_TEMP, TMPDIR and GOCACHE is NVMe (tmpfs accepted) and fails naming the runner and the directory otherwise. GitHub-hosted runners skip the step. The script's test stubs df and lsblk: NVMe, tmpfs, a not-yet-created dir pass; SATA, an array with a SATA member and a network share fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2f602b6a11
commit
4ec8ec06e6
4 files changed
+91
No files matched your search
@@ -27,6 +27,15 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Runner disk is NVMe
|
||||
# A self-hosted runner whose work, temp or Go cache directory sits on a
|
||||
# SATA system disk times the process-level tests out under disk load;
|
||||
# this names the runner and stops the job before it starts.
|
||||
if: runner.environment == 'self-hosted'
|
||||
run: |
|
||||
bash .github/scripts/require-nvme-test.sh
|
||||
bash .github/scripts/require-nvme.sh "$GITHUB_WORKSPACE" "$RUNNER_TEMP" "${TMPDIR:-/tmp}" "${GOCACHE:-$HOME/.cache/go-build}"
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
|
||||
+9
@@ -55,6 +55,15 @@ jobs:
|
||||
# step can see which packages the PR touches.
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Runner disk is NVMe
|
||||
# A self-hosted runner whose work, temp or Go cache directory sits on a
|
||||
# SATA system disk times the process-level tests out under disk load;
|
||||
# this names the runner and stops the job before it starts.
|
||||
if: runner.environment == 'self-hosted'
|
||||
run: |
|
||||
bash .github/scripts/require-nvme-test.sh
|
||||
bash .github/scripts/require-nvme.sh "$GITHUB_WORKSPACE" "$RUNNER_TEMP" "${TMPDIR:-/tmp}" "${GOCACHE:-$HOME/.cache/go-build}"
|
||||
|
||||
- name: Docs-only pull request
|
||||
id: scope
|
||||
if: matrix.suite == 'process' && github.event_name == 'pull_request'
|
||||
|
||||
Reference in new issue
Block a user