Skip to content

Commit 1070160

Browse files
committed
TEMP: trigger runner-trust-probe on PR for pre-merge verification
Signed-off-by: Ralf Juengling <[email protected]>
1 parent 171b26b commit 1070160

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

‎.github/workflows/runner-trust-probe.yml‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@
88
name: "CI: Runner trust probe"
99

1010
on:
11+
# Temporary triggers for pre-merge PR verification (revert before merging):
12+
# - pull_request exercises GitHub-hosted labels immediately on the PR.
13+
# - push on pull-request/[0-9]+ exercises all labels (including self-hosted
14+
# CPU and GPU runners) when synced by copy-pr-bot.
15+
pull_request:
16+
paths:
17+
- ".github/workflows/runner-trust-probe.yml"
18+
- "ci/tools/runner_trust_probe.sh"
19+
- "ci/tools/runner_trust_probe.ps1"
20+
- "ci/tools/runner_trust_probe_node.js"
21+
push:
22+
branches:
23+
- "pull-request/[0-9]+"
24+
paths:
25+
- ".github/workflows/runner-trust-probe.yml"
26+
- "ci/tools/runner_trust_probe.sh"
27+
- "ci/tools/runner_trust_probe.ps1"
28+
- "ci/tools/runner_trust_probe_node.js"
1129
schedule:
1230
# Weekly on Mondays at 06:23 UTC
1331
- cron: "23 6 * * 1"
@@ -49,7 +67,11 @@ jobs:
4967
- name: Compute runner labels
5068
id: compute
5169
env:
52-
LABEL_FILTER: ${{ inputs.label-filter || '' }}
70+
# On fork pull_request events self-hosted runners do not pick up jobs;
71+
# limit pull_request runs to GitHub-hosted labels, while push to
72+
# pull-request/[0-9]+ (copy-pr-bot) and schedule/workflow_dispatch
73+
# probe the full fleet.
74+
LABEL_FILTER: ${{ inputs.label-filter || (github.event_name == 'pull_request' && '^(ubuntu-latest|windows-latest|windows-2022|windows-11-arm)$') || '' }}
5375
run: |
5476
matrix_json="$(yq -o json '.' ci/test-matrix.yml)"
5577

0 commit comments

Comments
 (0)