Skip to content

Commit 6ba3143

Browse files
committed
[CI] Drop change detection and pin actions to specific commit
1 parent 8f5984c commit 6ba3143

2 files changed

Lines changed: 28 additions & 49 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,10 @@ jobs:
4949
echo "enable_integration=true" >> $GITHUB_ENV
5050
- name: Checkout post-submit commits
5151
if: github.event_name == 'push'
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5353
with:
5454
# Only fetch two commits to check the latest changed files.
5555
fetch-depth: 2
56-
- name: Detect if build deps (e.g. LLVM hash) changed
57-
id: detect-change
58-
if: github.event_name == 'push'
59-
uses: tj-actions/changed-files@v45
60-
with:
61-
files: |
62-
cmake/*.txt
63-
cmake/*.json
6456
- name: Detect if enough time has passed since last post-submit run
6557
id: detect-time
6658
if: github.event_name == 'push'
@@ -104,9 +96,7 @@ jobs:
10496
# (e.g. we update the LLVM hash).
10597
- name: Decide whether to run integration tests post-submit
10698
if: |
107-
github.event_name == 'push' &&
108-
(steps.detect-change.outputs.any_changed == 'true' ||
109-
env.n_hours_since_last_run == 'true')
99+
github.event_name == 'push' && env.n_hours_since_last_run == 'true'
110100
run: |
111101
echo "enable_integration=true" >> $GITHUB_ENV
112102
- name: Prepare runner matrix
@@ -128,8 +118,8 @@ jobs:
128118
runs-on: ubuntu-latest
129119
steps:
130120
- name: Checkout
131-
uses: actions/checkout@v4
132-
- uses: actions/setup-python@v5
121+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
122+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
133123
with:
134124
python-version: '3.12'
135125
cache: 'pip'
@@ -139,7 +129,7 @@ jobs:
139129
echo "pre_commit_hash=$(sha256sum .pre-commit-config.yaml | cut -d ' ' -f 1)" >> $GITHUB_OUTPUT
140130
shell: bash
141131
- name: Cache pre-commit's cache dir
142-
uses: actions/cache@v4
132+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
143133
with:
144134
# Note that we cannot use environment variables here given there is
145135
# no shell to interpret them in the paths.
@@ -166,7 +156,7 @@ jobs:
166156
RUNNER_TYPE: ${{ matrix.runner[0] }}
167157
steps:
168158
- name: Checkout
169-
uses: actions/checkout@v4
159+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
170160
with:
171161
submodules: "true"
172162
- name: Compute cache keys
@@ -189,7 +179,7 @@ jobs:
189179
echo "datetime=$(date -u -Iseconds)" >> $GITHUB_OUTPUT
190180
shell: bash
191181
- name: Cache build dependencies
192-
uses: actions/cache@v4
182+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
193183
with:
194184
# Note that we cannot use environment variables here given there is
195185
# no shell to interpret them in the paths.
@@ -211,7 +201,7 @@ jobs:
211201
name: Restore cache of ccache and Triton compilation artifacts
212202
id: restore-build-cache
213203
if: github.ref != 'refs/heads/main'
214-
uses: actions/cache/restore@v4
204+
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
215205
with:
216206
path: |
217207
~/.triton/cache
@@ -282,7 +272,7 @@ jobs:
282272
# evicts cache entries LRU, but maybe this saves a bit of time in CI.)
283273
name: Save ccache and Triton compilation artifacts to cache
284274
if: github.ref == 'refs/heads/main'
285-
uses: actions/cache/save@v4
275+
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
286276
with:
287277
path: |
288278
~/.triton/cache
@@ -304,7 +294,7 @@ jobs:
304294
options: --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --user root
305295
steps:
306296
- name: Checkout
307-
uses: actions/checkout@v4
297+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
308298
with:
309299
submodules: 'true'
310300
- name: Compute cache keys
@@ -327,7 +317,7 @@ jobs:
327317
echo "datetime=$(date -u -Iseconds)" >> $GITHUB_OUTPUT
328318
shell: bash
329319
- name: Cache build dependencies
330-
uses: actions/cache@v4
320+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
331321
with:
332322
# Note that we cannot use environment variables here given there is
333323
# no shell to interpret them in the paths.
@@ -349,7 +339,7 @@ jobs:
349339
name: Restore cache of ccache and Triton compilation artifacts
350340
id: restore-build-cache
351341
if: github.ref != 'refs/heads/main'
352-
uses: actions/cache/restore@v4
342+
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
353343
with:
354344
path: |
355345
~/.triton/cache
@@ -440,7 +430,7 @@ jobs:
440430
# evicts cache entries LRU, but maybe this saves a bit of time in CI.)
441431
name: Save ccache and Triton compilation artifacts to cache
442432
if: github.ref == 'refs/heads/main'
443-
uses: actions/cache/save@v4
433+
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
444434
with:
445435
path: |
446436
~/.triton/cache
@@ -464,7 +454,7 @@ jobs:
464454
RUNNER_TYPE: ${{ matrix.runner[0] }}
465455
steps:
466456
- name: Checkout
467-
uses: actions/checkout@v4
457+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
468458
with:
469459
submodules: "true"
470460
- name: Install brew dependencies
@@ -491,7 +481,7 @@ jobs:
491481
echo "datetime=$(date -u -Iseconds)" >> $GITHUB_OUTPUT
492482
shell: bash
493483
- name: Cache build dependencies
494-
uses: actions/cache@v4
484+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
495485
with:
496486
# Note that we cannot use environment variables here given there is
497487
# no shell to interpret them in the paths.
@@ -513,7 +503,7 @@ jobs:
513503
name: Restore cache of ccache and Triton compilation artifacts
514504
id: restore-build-cache
515505
if: github.ref != 'refs/heads/main'
516-
uses: actions/cache/restore@v4
506+
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
517507
with:
518508
path: |
519509
~/.triton/cache
@@ -569,7 +559,7 @@ jobs:
569559
# evicts cache entries LRU, but maybe this saves a bit of time in CI.)
570560
name: Save ccache and Triton compilation artifacts to cache
571561
if: github.ref == 'refs/heads/main'
572-
uses: actions/cache/save@v4
562+
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
573563
with:
574564
path: |
575565
~/.triton/cache

.github/workflows/integration-tests.yml.in

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,11 @@ jobs:
5454

5555
- name: Checkout post-submit commits
5656
if: github.event_name == 'push'
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858
with:
5959
# Only fetch two commits to check the latest changed files.
6060
fetch-depth: 2
6161

62-
- name: Detect if build deps (e.g. LLVM hash) changed
63-
id: detect-change
64-
if: github.event_name == 'push'
65-
uses: tj-actions/changed-files@v45
66-
with:
67-
files: |
68-
cmake/*.txt
69-
cmake/*.json
70-
7162
- name: Detect if enough time has passed since last post-submit run
7263
id: detect-time
7364
if: github.event_name == 'push'
@@ -112,9 +103,7 @@ jobs:
112103
# (e.g. we update the LLVM hash).
113104
- name: Decide whether to run integration tests post-submit
114105
if: |
115-
github.event_name == 'push' &&
116-
(steps.detect-change.outputs.any_changed == 'true' ||
117-
env.n_hours_since_last_run == 'true')
106+
github.event_name == 'push' && env.n_hours_since_last_run == 'true'
118107
run: |
119108
echo "enable_integration=true" >> $GITHUB_ENV
120109

@@ -139,9 +128,9 @@ jobs:
139128

140129
steps:
141130
- name: Checkout
142-
uses: actions/checkout@v4
131+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
143132

144-
- uses: actions/setup-python@v5
133+
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
145134
with:
146135
python-version: '3.12'
147136
cache: 'pip'
@@ -153,7 +142,7 @@ jobs:
153142
shell: bash
154143

155144
- name: Cache pre-commit's cache dir
156-
uses: actions/cache@v4
145+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
157146
with:
158147
# Note that we cannot use environment variables here given there is
159148
# no shell to interpret them in the paths.
@@ -188,7 +177,7 @@ jobs:
188177

189178
steps:
190179
- name: Checkout
191-
uses: actions/checkout@v4
180+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
192181
with:
193182
submodules: "true"
194183

@@ -215,7 +204,7 @@ jobs:
215204

216205
- &cache-build-dependencies-step
217206
name: Cache build dependencies
218-
uses: actions/cache@v4
207+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
219208
with:
220209
# Note that we cannot use environment variables here given there is
221210
# no shell to interpret them in the paths.
@@ -239,7 +228,7 @@ jobs:
239228
name: Restore cache of ccache and Triton compilation artifacts
240229
id: restore-build-cache
241230
if: github.ref != 'refs/heads/main'
242-
uses: actions/cache/restore@v4
231+
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
243232
with:
244233
path: |
245234
~/.triton/cache
@@ -322,7 +311,7 @@ jobs:
322311
- &save-build-artifacts-step
323312
name: Save ccache and Triton compilation artifacts to cache
324313
if: github.ref == 'refs/heads/main'
325-
uses: actions/cache/save@v4
314+
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
326315
with:
327316
path: |
328317
~/.triton/cache
@@ -351,7 +340,7 @@ jobs:
351340

352341
steps:
353342
- name: Checkout
354-
uses: actions/checkout@v4
343+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
355344
with:
356345
submodules: 'true'
357346

@@ -440,7 +429,7 @@ jobs:
440429

441430
steps:
442431
- name: Checkout
443-
uses: actions/checkout@v4
432+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
444433
with:
445434
submodules: "true"
446435
- name: Install brew dependencies

0 commit comments

Comments
 (0)