Skip to content

Commit 9da4aad

Browse files
[SYCL][CI] Update workflow files to match sycl branch (intel#17612)
This is an attempt to fix pre-commit on `sycl-rel-6_1_0` branch by copying contents of CI scripts from `sycl` branch. This PR specifically ignores changes to upstream workflows, because we do not have them enabled at intel/llvm.
1 parent c365383 commit 9da4aad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2348
-482
lines changed

.github/workflows/coverity.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Coverity
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
7+
permissions: read-all
8+
9+
jobs:
10+
coverity:
11+
if: github.repository == 'intel/llvm'
12+
name: Coverity
13+
runs-on: [Linux, build]
14+
container:
15+
image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps
16+
options: -u 1001:1001
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
sparse-checkout: |
22+
devops/actions
23+
24+
- name: Register cleanup after job is finished
25+
uses: ./devops/actions/cleanup
26+
27+
- uses: ./devops/actions/cached_checkout
28+
with:
29+
path: src
30+
ref: ${{ github.sha }}
31+
cache_path: "/__w/repo_cache/"
32+
33+
- name: Get coverity tool
34+
run: |
35+
wget https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=intel%2Fllvm" -O coverity_tool.tgz
36+
tar -xf coverity_tool.tgz
37+
38+
- name: Configure
39+
env:
40+
CC: gcc
41+
CXX: g++
42+
CUDA_LIB_PATH: "/usr/local/cuda/lib64/stubs"
43+
run: |
44+
mkdir -p $GITHUB_WORKSPACE/build
45+
cd $GITHUB_WORKSPACE/build
46+
python3 $GITHUB_WORKSPACE/src/buildbot/configure.py -w $GITHUB_WORKSPACE \
47+
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release \
48+
--ci-defaults --hip --cuda \
49+
-DNATIVECPU_USE_OCK=Off \
50+
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
51+
52+
- name: Build with coverity
53+
run: $GITHUB_WORKSPACE/cov-analysis-linux64-*/bin/cov-build --dir cov-int cmake --build $GITHUB_WORKSPACE/build --target sycl-toolchain
54+
55+
- name: Compress results
56+
run: tar -I pigz -cf intel_llvm.tgz cov-int
57+
58+
- name: Submit build
59+
run: |
60+
# Initialize a build. Fetch a cloud upload url.
61+
curl -X POST \
62+
-d version="sycl: ${{ github.sha }}" \
63+
-d description="Regular build" \
64+
-d email=${{ secrets.COVERITY_EMAIL }} \
65+
-d token=${{ secrets.COVERITY_TOKEN }} \
66+
-d file_name="intel_llvm.tgz" \
67+
https://scan.coverity.com/projects/31090/builds/init \
68+
| tee response
69+
70+
# Store response data to use in later stages.
71+
upload_url=$(jq -r '.url' response)
72+
build_id=$(jq -r '.build_id' response)
73+
74+
# Upload the tarball to the Cloud.
75+
curl -X PUT \
76+
--header 'Content-Type: application/json' \
77+
--upload-file $PWD/intel_llvm.tgz \
78+
$upload_url
79+
80+
# Trigger the build on Scan.
81+
curl -X PUT \
82+
-d token=${{ secrets.COVERITY_TOKEN }} \
83+
https://scan.coverity.com/projects/31090/builds/$build_id/enqueue

.github/workflows/email-check.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: "Check for private emails used in PRs"
22

33
on:
44
pull_request:
5-
types:
6-
- opened
5+
branches:
6+
- sycl
7+
- sycl-rel-**
78

89
permissions:
910
contents: read

.github/workflows/pr-code-format.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
branches:
99
- main
1010
- sycl
11-
- sycl-devops-pr/**
1211
- sycl-rel-**
1312
- 'users/**'
1413

@@ -35,7 +34,7 @@ jobs:
3534

3635
- name: Get changed files
3736
id: changed-files
38-
uses: tj-actions/changed-files@v45
37+
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1 # v45.0.1
3938
with:
4039
separator: ","
4140
skip_initial_fetch: true
@@ -63,10 +62,10 @@ jobs:
6362
- name: Install clang-format
6463
uses: aminya/setup-cpp@v1
6564
with:
66-
clangformat: 18.1.7
65+
clangformat: 19.1.6
6766

6867
- name: Setup Python env
69-
uses: actions/setup-python@v5
68+
uses: actions/setup-python@v5.4.0
7069
with:
7170
python-version: '3.11'
7271
cache: 'pip'

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
persist-credentials: false
3737

3838
- name: "Run analysis"
39-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
39+
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
4040
with:
4141
results_file: results.sarif
4242
results_format: sarif
@@ -57,6 +57,6 @@ jobs:
5757

5858
# Upload the results to GitHub's code scanning dashboard.
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
60+
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
6161
with:
6262
sarif_file: results.sarif

.github/workflows/sycl-aws.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ on:
1515
description: "JSON string with array of objects with aws-type, runs-on, aws-ami, aws-spot, aws-disk, aws-timebomb, one-job properties"
1616
type: string
1717
default: '[{"runs-on":"aws_cuda-${{ github.run_id }}-${{ github.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
18+
ref:
19+
type: string
20+
required: false
1821

1922
jobs:
2023
aws:
21-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-latest
2225
environment: aws
2326
steps:
2427
- uses: actions/checkout@v4
2528
with:
2629
sparse-checkout: devops/actions/aws-ec2
30+
ref: ${{ inputs.ref || github.sha }}
2731
- run: npm install ./devops/actions/aws-ec2
2832
- uses: ./devops/actions/aws-ec2
2933
with:

.github/workflows/sycl-containers-igc-dev.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
- sycl
77
paths:
88
- 'devops/actions/build_container/**'
9+
- 'devops/scripts/**'
910
- 'devops/dependencies-igc-dev.json'
1011
- '.github/workflows/sycl-containers-igc-dev.yaml'
1112
pull_request:
1213
paths:
1314
- 'devops/actions/build_container/**'
15+
- 'devops/scripts/**'
1416
- 'devops/dependencies-igc-dev.json'
1517
- '.github/workflows/sycl-containers-igc-dev.yaml'
1618

@@ -20,18 +22,18 @@ jobs:
2022
build_and_push_images:
2123
if: github.repository == 'intel/llvm'
2224
name: Build and Push IGC Dev Docker Images
23-
runs-on: ubuntu-22.04
25+
runs-on: ubuntu-latest
2426
permissions:
2527
packages: write
2628
strategy:
2729
matrix:
2830
include:
29-
- name: Intel Drivers Ubuntu 22.04 Docker image with dev IGC
30-
dockerfile: ubuntu2204_intel_drivers_igc_dev
31-
imagefile: ubuntu2204_intel_drivers
31+
- name: Intel Drivers Ubuntu 24.04 Docker image with dev IGC
32+
dockerfile: ubuntu2404_intel_drivers_igc_dev
33+
imagefile: ubuntu2404_intel_drivers
3234
tag: devigc
3335
build_args: |
34-
"use_latest=false"
36+
"use_unstable_driver=false"
3537
"use_igc_dev=true"
3638
steps:
3739
- name: Checkout

.github/workflows/sycl-containers.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
build_and_push_images:
3030
if: github.repository == 'intel/llvm'
3131
name: Build and Push Docker Images
32-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-latest
3333
permissions:
3434
packages: write
3535
strategy:
@@ -39,25 +39,44 @@ jobs:
3939
file: ubuntu2204_base
4040
tag: latest
4141
build_args: ""
42-
- name: Build Ubuntu Docker image
42+
- name: Base Ubuntu 24.04 Docker image
43+
file: ubuntu2404_base
44+
tag: latest
45+
build_args: ""
46+
- name: Build Ubuntu 22.04 Docker image
4347
file: ubuntu2204_build
4448
tag: latest
4549
build_args: ""
50+
- name: Build Ubuntu 24.04 Docker image
51+
file: ubuntu2404_build
52+
tag: latest
53+
build_args: ""
4654
- name: Intel Drivers Ubuntu 22.04 Docker image
4755
file: ubuntu2204_intel_drivers
4856
tag: latest
49-
build_args: "use_latest=false"
50-
- name: Intel Drivers (unstable) Ubuntu 22.04 Docker image
51-
file: ubuntu2204_intel_drivers
57+
build_args: "use_unstable_driver=false"
58+
- name: Intel Drivers Ubuntu 24.04 Docker image
59+
file: ubuntu2404_intel_drivers
60+
tag: latest
61+
build_args: "use_unstable_driver=false"
62+
- name: Intel Drivers (unstable) Ubuntu 24.04 Docker image
63+
file: ubuntu2404_intel_drivers
5264
tag: unstable
53-
build_args: "use_latest=true"
65+
build_args: "use_unstable_driver=true"
5466
- name: Build + Intel Drivers Ubuntu 22.04 Docker image
5567
file: ubuntu2204_intel_drivers
5668
tag: alldeps
5769
build_args: |
5870
base_image=ghcr.io/intel/llvm/ubuntu2204_build
5971
base_tag=latest
60-
use_latest=false
72+
use_unstable_driver=false
73+
- name: Build + Intel Drivers Ubuntu 24.04 Docker image
74+
file: ubuntu2404_intel_drivers
75+
tag: alldeps
76+
build_args: |
77+
base_image=ghcr.io/intel/llvm/ubuntu2404_build
78+
base_tag=latest
79+
use_unstable_driver=false
6180
steps:
6281
- name: Checkout
6382
uses: actions/checkout@v4

.github/workflows/sycl-detect-changes.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ jobs:
7272
- 'sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp'
7373
- 'sycl/include/sycl/ext/oneapi/experimental/detail/invoke_simd_types.hpp'
7474
- 'sycl/test-e2e/(ESIMD|InvokeSimd)/**'
75+
ur:
76+
- 'unified-runtime/**'
77+
- .github/workflows/ur-*
7578
7679
- name: Set output
7780
id: result
@@ -84,7 +87,7 @@ jobs:
8487
return '${{ steps.changes.outputs.changes }}';
8588
}
8689
// Treat everything as changed for huge PRs.
87-
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd"];
90+
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd", "ur"];
8891
8992
- run: echo '${{ steps.result.outputs.result }}'
9093

.github/workflows/sycl-issues-ping-assignee.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run:
2121
permissions:
2222
issues: write
23-
runs-on: ubuntu-20.04
23+
runs-on: ubuntu-latest
2424
env:
2525
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
REPO: ${{ github.repository }}
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Filter issues and ping
4141
run: |
42-
days_to_stale=60
42+
days_to_stale=90
4343
current_time=$(date +%s)
4444
4545
cat issues.json | jq -c '.[]' | while read -r issue; do

0 commit comments

Comments
 (0)