Skip to content

Commit 4afbff4

Browse files
author
Colin Davidson
authored
Merge pull request uxlfoundation#911 from coldav/colin/add_llvm_21_testing
Add testing for llvm 21 and full main
2 parents acc0382 + 13e38f8 commit 4afbff4

5 files changed

Lines changed: 119 additions & 22 deletions

.github/workflows/planned_testing_caller_19.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
paths:
55
- '.github/workflows/planned_testing_caller_19.yml'
66
schedule:
7-
# Run Sun, Tues, Thurs Sat at 7pm
8-
- cron: '0 19 * * 0,2,4,6'
7+
# Run Sun, Wed at 7pm
8+
- cron: '0 19 * * 0,3'
99

1010
permissions:
1111
packages: read

.github/workflows/planned_testing_caller_20.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
paths:
55
- '.github/workflows/planned_testing_caller_20.yml'
66
schedule:
7-
# Run Mon, Wed, Fri at 7pm
8-
- cron: '0 19 * * 1,3,5'
7+
# Run Mon, Thu at 7pm
8+
- cron: '0 19 * * 1,4'
99

1010
permissions:
1111
packages: read
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
llvm_version: '20'
3131
llvm_branch: 'release/20.x'
32+
use_llvm_github_cache: true
3233
save_cache: ${{ github.event_name == 'schedule' }}
3334
# We can set ock, test_sycl_cts etc here optionally if this is used as a
3435
# pull request. Any parameters below this is intended for local testing
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: run planned tests for llvm 21
2+
on:
3+
pull_request:
4+
paths:
5+
- '.github/workflows/planned_testing_caller_21.yml'
6+
schedule:
7+
# Run Tue, Fri at 7pm
8+
- cron: '0 19 * * 2,5'
9+
10+
permissions:
11+
packages: read
12+
13+
# To add another llvm planned testing, simply copy this file and set the llvm_version and llvm_branch variables
14+
# llvm_version is only used for tagging purposes, although ideally would be a number or main
15+
# We may want to delete the lowest version for planned_testing_caller_*.yml at that time.
16+
# If it is known to be unchanging, then set the 'use_llvm_github_cache: true' as an input to planned_testing_caller.yml/
17+
18+
# Note this will not affect normal PR runs which will require run_pr_tests_caller.yml to be updated.
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
# This makes the diagram too big if we post much here so L21_ is used.
26+
L21_:
27+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
28+
uses: ./.github/workflows/planned_testing_caller.yml
29+
with:
30+
llvm_version: '21'
31+
llvm_branch: 'release/21.x'
32+
save_cache: ${{ github.event_name == 'schedule' }}
33+
# We can set ock, test_sycl_cts etc here optionally if this is used as a
34+
# pull request. Any parameters below this is intended for local testing
35+
# and should not be merged nor reviewed (other than checking it should not be merged).
36+
37+
# This cleans up any caches which may have been created when running external tests
38+
clean_caches:
39+
needs: [ L21_ ]
40+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && github.event_name == 'schedule' && always()
41+
runs-on: ubuntu-latest
42+
permissions:
43+
actions: write # for gh cache delete
44+
steps:
45+
- name: Checkout repo
46+
uses: actions/checkout@v4
47+
with:
48+
sparse-checkout: .github
49+
- name: Cache clean
50+
uses: ./.github/actions/clean_cache
51+
with:
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
cache_prefixes: "ccache-ccache-dpcpp-build-host_x86_64_linux ccache-ccache-dpcpp-build-host_aarch64_linux ccache-ccache-dpcpp-build-host_riscv64_linux"
Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: run planned tests for experimental llvm main
1+
name: run full planned tests for experimental llvm main
22
on:
33
pull_request:
44
paths:
55
- '.github/workflows/planned_testing_caller_main.yml'
66
schedule:
7-
# Run Mon-Fri at 6am
8-
- cron: '0 6 * * 1,2,3,4,5'
7+
# Run Sat at 7pm
8+
- cron: '0 19 * * 6'
99

1010
permissions:
1111
packages: read
@@ -15,25 +15,29 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
# This makes the diagram too big if we post much here so Lmainexp_ is used.
19-
Lmainexp_:
18+
# This makes the diagram too big if we post much here so Lmainfullexp_ is used.
19+
Lmainfullexp_:
2020
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
2121
uses: ./.github/workflows/planned_testing_caller.yml
2222
with:
2323
llvm_version: 'main'
2424
llvm_branch: 'main'
2525
save_cache: ${{ github.event_name == 'schedule' }}
26-
target_list: '[ "host_x86_64_linux", "refsi_riscv64_linux" ]'
27-
ock: true
28-
native_cpu: false
29-
test_tornado: false
30-
test_remote_hal: false
31-
test_sycl_cts: false
32-
test_sycl_e2e: false
33-
test_opencl_cts: false
34-
run_internal: true
35-
run_external: false
36-
build_llvm: true
3726

38-
# If this is extended to include dpc++ building, then copy clean_caches from one of the other
39-
# planned_testing files
27+
# This cleans up any caches which may have been created when running external tests
28+
clean_caches:
29+
needs: [ Lmainfullexp_ ]
30+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' && github.event_name == 'schedule' && always()
31+
runs-on: ubuntu-latest
32+
permissions:
33+
actions: write # for gh cache delete
34+
steps:
35+
- name: Checkout repo
36+
uses: actions/checkout@v4
37+
with:
38+
sparse-checkout: .github
39+
- name: Cache clean
40+
uses: ./.github/actions/clean_cache
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
cache_prefixes: "ccache-ccache-dpcpp-build-host_x86_64_linux ccache-ccache-dpcpp-build-host_aarch64_linux ccache-ccache-dpcpp-build-host_riscv64_linux"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: run limited planned tests for experimental llvm main
2+
on:
3+
pull_request:
4+
paths:
5+
- '.github/workflows/planned_testing_caller_mini_main.yml'
6+
schedule:
7+
# Run Mon-Fri at 6am
8+
- cron: '0 6 * * 1,2,3,4,5'
9+
10+
permissions:
11+
packages: read
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
# This makes the diagram too big if we post much here so Lmainexp_ is used.
19+
Lmainexp_:
20+
if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
21+
uses: ./.github/workflows/planned_testing_caller.yml
22+
with:
23+
llvm_version: 'main'
24+
llvm_branch: 'main'
25+
save_cache: ${{ github.event_name == 'schedule' }}
26+
target_list: '[ "host_x86_64_linux", "refsi_riscv64_linux" ]'
27+
ock: true
28+
native_cpu: false
29+
test_tornado: false
30+
test_remote_hal: false
31+
test_sycl_cts: false
32+
test_sycl_e2e: false
33+
test_opencl_cts: false
34+
run_internal: true
35+
run_external: false
36+
build_llvm: true
37+
38+
# If this is extended to include dpc++ building, then copy clean_caches from one of the other
39+
# planned_testing files

0 commit comments

Comments
 (0)