From aa0ac8a661736205e0cd05a1855125f2c0864e76 Mon Sep 17 00:00:00 2001 From: "Kevin H. Luu" Date: Tue, 16 Jun 2026 19:49:22 -0700 Subject: [PATCH] [CI] Run pre-commit on self-hosted vllm-runners (#45865) Signed-off-by: khluu Co-authored-by: Claude Opus 4.8 (1M context) --- .github/actionlint.yaml | 5 +++++ .github/workflows/pre-commit.yml | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .github/actionlint.yaml diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 0000000000..940c288580 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,5 @@ +# Custom self-hosted runner labels (e.g. the autoscaling vllm-runners pool) so +# actionlint doesn't flag them as unknown in `runs-on`. +self-hosted-runner: + labels: + - vllm-runners diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 93a5a5ff0a..2f3e3e6e52 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -46,12 +46,16 @@ jobs: pre-commit: needs: pre-run-check if: always() && (needs.pre-run-check.result == 'success' || needs.pre-run-check.result == 'skipped') - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64, vllm-runners] steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0 with: python-version: "3.12" + # Provide shellcheck on PATH so tools/pre_commit/shellcheck.sh skips its + # wget + tar -xJ self-download, which the self-hosted runner image lacks + # (no wget/xz). Pinned to shellcheck 0.10.0 to match the script's "stable". + - run: python -m pip install shellcheck-py==0.10.0.1 - run: echo "::add-matcher::.github/workflows/matchers/actionlint.json" - run: echo "::add-matcher::.github/workflows/matchers/markdownlint.json" - run: echo "::add-matcher::.github/workflows/matchers/mypy.json"