Skip to content

Commit df51005

Browse files
CI planned_testing with dpcpp repo PR ref (#944)
1 parent a730bef commit df51005

File tree

6 files changed

+46
-0
lines changed

6 files changed

+46
-0
lines changed

.github/actions/do_build_dpcpp/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ inputs:
1212
description: 'save cache for build'
1313
type: boolean
1414
default: false
15+
dpcpp_repo_pr_no:
16+
description: 'dpc++ repo ref: enter PR number (else default branch is used)'
17+
type: string
18+
default: ""
1519

1620
runs:
1721
using: "composite"
@@ -32,6 +36,17 @@ runs:
3236
repository: intel/llvm
3337
path: llvm
3438

39+
- name: merge PR ref (via temporary branch 'pr_branch') into default branch (sycl)
40+
if: inputs.dpcpp_repo_pr_no != ''
41+
shell: bash
42+
run: |
43+
cd llvm
44+
git config user.email "[email protected]"
45+
git config user.name "me"
46+
git fetch origin --depth=2147483647 # deepen shallow repo clone
47+
git fetch origin pull/${{ inputs.dpcpp_repo_pr_no }}/head:pr_branch
48+
git merge pr_branch sycl
49+
3550
- name: Setup ccache
3651
uses: hendrikmuhs/ccache-action@63069e3931dedbf3b63792097479563182fe70d1 # v1.2.18
3752
with:

.github/workflows/planned_testing_caller.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ on:
7676
save_cache:
7777
type: boolean
7878
default: false
79+
dpcpp_repo_pr_no:
80+
description: 'dpc++ repo ref: enter PR number (else default branch is used)'
81+
type: string
82+
default: ""
7983
permissions:
8084
packages: read
8185

@@ -109,6 +113,7 @@ jobs:
109113
native_cpu: ${{ inputs.native_cpu }}
110114
llvm_branch: ${{ inputs.llvm_branch }}
111115
save_cache: ${{ inputs.save_cache }}
116+
dpcpp_repo_pr_no: ${{ inputs.dpcpp_repo_pr_no }}
112117

113118
# The following can be used to download from a previous workflow run (change id)
114119
download_ock_artefact: ${{ inputs.download_ock_artefact }}

.github/workflows/planned_testing_caller_19.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
# Run Sun, Wed at 7pm
88
- cron: '0 19 * * 0,3'
99
workflow_dispatch:
10+
inputs:
11+
dpcpp_repo_pr_no:
12+
description: 'dpc++ repo ref: enter PR number (else default branch is used)'
13+
type: string
14+
default: ""
1015

1116
permissions:
1217
packages: read
@@ -24,6 +29,7 @@ jobs:
2429
llvm_branch: 'release/19.x'
2530
use_llvm_github_cache: true
2631
save_cache: ${{ github.event_name == 'schedule' }}
32+
dpcpp_repo_pr_no: ${{ inputs.dpcpp_repo_pr_no }}
2733
# We can set ock, test_sycl_cts etc here optionally if this is used as a pull request.
2834
# Any with parameters below this is intended for local testing and should not be merged.
2935
# target_list: '[ "host_x86_64_linux" ]'

.github/workflows/planned_testing_caller_20.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
# Run Mon, Thu at 7pm
88
- cron: '0 19 * * 1,4'
99
workflow_dispatch:
10+
inputs:
11+
dpcpp_repo_pr_no:
12+
description: 'dpc++ repo ref: enter PR number (else default branch is used)'
13+
type: string
14+
default: ""
1015

1116
permissions:
1217
packages: read
@@ -32,6 +37,7 @@ jobs:
3237
llvm_branch: 'release/20.x'
3338
use_llvm_github_cache: true
3439
save_cache: ${{ github.event_name == 'schedule' }}
40+
dpcpp_repo_pr_no: ${{ inputs.dpcpp_repo_pr_no }}
3541
# We can set ock, test_sycl_cts etc here optionally if this is used as a
3642
# pull request. Any parameters below this is intended for local testing
3743
# and should not be merged nor reviewed (other than checking it should not be merged).

.github/workflows/planned_testing_caller_21.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
# Run Tue, Fri at 7pm
88
- cron: '0 19 * * 2,5'
99
workflow_dispatch:
10+
inputs:
11+
dpcpp_repo_pr_no:
12+
description: 'dpc++ repo ref: enter PR number (else default branch is used)'
13+
type: string
14+
default: ""
1015

1116
permissions:
1217
packages: read
@@ -31,6 +36,7 @@ jobs:
3136
llvm_version: '21'
3237
llvm_branch: 'release/21.x'
3338
save_cache: ${{ github.event_name == 'schedule' }}
39+
dpcpp_repo_pr_no: ${{ inputs.dpcpp_repo_pr_no }}
3440
# We can set ock, test_sycl_cts etc here optionally if this is used as a
3541
# pull request. Any parameters below this is intended for local testing
3642
# and should not be merged nor reviewed (other than checking it should not be merged).

.github/workflows/run_ock_external_tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ on:
8282
type: boolean
8383
description: 'save any caches required during building of any artefacts (usually on main only)'
8484
default: false
85+
dpcpp_repo_pr_no:
86+
required: false
87+
type: string
88+
description: 'dpc++ repo ref: enter PR number (else default branch is used)'
89+
default: ""
8590

8691
permissions:
8792
packages: read
@@ -421,6 +426,7 @@ jobs:
421426
target: host_x86_64_linux
422427
download_dpcpp_artefact: ${{ inputs.download_dpcpp_artefact }}
423428
save_cache: ${{ inputs.save_cache }}
429+
dpcpp_repo_pr_no: ${{ inputs.dpcpp_repo_pr_no }}
424430

425431
build_dpcpp_native_aarch64:
426432
needs: [workflow_vars]
@@ -445,6 +451,7 @@ jobs:
445451
target: host_aarch64_linux
446452
download_dpcpp_artefact: ${{ inputs.download_dpcpp_artefact }}
447453
save_cache: ${{ inputs.save_cache }}
454+
dpcpp_repo_pr_no: ${{ inputs.dpcpp_repo_pr_no }}
448455

449456
build_dpcpp_riscv64:
450457
needs: [workflow_vars, build_dpcpp_native_x86_64] # cross builds need pre-built native artefact
@@ -475,6 +482,7 @@ jobs:
475482
target: ${{ matrix.target }}
476483
download_dpcpp_artefact: ${{ inputs.download_dpcpp_artefact }}
477484
save_cache: ${{ inputs.save_cache }}
485+
dpcpp_repo_pr_no: ${{ inputs.dpcpp_repo_pr_no }}
478486

479487
build_sycl_cts_x86_64_opencl:
480488
needs: [workflow_vars, build_icd, build_dpcpp_native_x86_64]

0 commit comments

Comments
 (0)