Skip to content

Commit 635e246

Browse files
author
Pavel Chupin
authored
[CI] Update GPU driver uplift process (#6581)
* Ignore sycl_update_gpu_driver job change in sycl_precommit. Full pre-commit is expected to be done in PRs generated by sycl_update_gpu_driver, not the change in sycl_update_gpu_driver. * Add driver version to commit title. * Remove linux_staging drivers update. linux_staging versions are used to produce "unstable" containers in SYCL nightly workflow, but in fact "unstable" matching "latest" currently and there are no testing processes in the CI currently which use "unstable" containers. Not sure what the original intention was, but until we have any separate testing processes for "unstable" containers it doesn't make sense to update the versions. * Use personal access token to kick off pre-commit testing automatically in PR created by this job.
1 parent ad923c9 commit 635e246

File tree

2 files changed

+5
-32
lines changed

2 files changed

+5
-32
lines changed

.github/workflows/sycl_precommit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths-ignore:
99
- '.github/ISSUE_TEMPLATE/**'
1010
- '.github/CODEOWNERS'
11+
- '.github/workflows/sycl_update_gpu_driver.yml'
1112
- 'devops/containers/**'
1213
- 'devops/scripts/install_drivers.sh'
1314
- 'devops/scripts/install_build_tools.sh'

.github/workflows/sycl_update_gpu_driver.yml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,13 @@ jobs:
1818
- name: Create Pull Request
1919
env:
2020
BRANCH: ci/update_gpu_driver-linux-${{ env.NEW_DRIVER_VERSION }}
21-
LLVMBOT_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }}
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }}
2322
run: |
2423
cd $GITHUB_WORKSPACE
25-
# Set fake identity to fulfil git requirements
2624
git config --global user.name "GitHub Actions"
2725
git config --global user.email "[email protected]"
2826
git checkout -B $BRANCH
2927
git add -u
30-
git commit -m "[GHA] Uplift GPU RT version for Linux CI" || exit 0 # exit if commit is empty
31-
git push https://[email protected]/${{ github.repository }} ${BRANCH}
32-
gh pr create --head $BRANCH --title "[GHA] Uplift GPU RT version for Linux CI" --body "Uplift GPU RT version for Linux to $NEW_DRIVER_VERSION"
33-
34-
update_driver_linux_staging:
35-
runs-on: ubuntu-latest
36-
if: github.repository == 'intel/llvm'
37-
steps:
38-
- uses: actions/checkout@v2
39-
- name: Update dependencies file
40-
run: |
41-
version="$(python3 devops/scripts/update_drivers.py linux_staging)"
42-
echo 'NEW_DRIVER_VERSION='$version >> $GITHUB_ENV
43-
- name: Update sycl Branch
44-
env:
45-
BRANCH: ci/update_gpu_driver-linux_staging-${{ env.NEW_DRIVER_VERSION }}
46-
LLVMBOT_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }}
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
run: |
49-
cd $GITHUB_WORKSPACE
50-
# Set fake identity to fulfil git requirements
51-
git config --global user.name "GitHub Actions"
52-
git config --global user.email "[email protected]"
53-
git checkout -B $BRANCH
54-
git add -u
55-
git commit -m "[GHA] Uplift GPU RT version for Nightly Builds" || exit 0 # exit if commit is empty
56-
git push https://[email protected]/${{ github.repository }} ${BRANCH}
57-
gh pr create --head $BRANCH --title "[GHA] Uplift GPU RT version for Nightly Builds" --body "Uplift GPU RT version for Linux to $NEW_DRIVER_VERSION"
58-
28+
git commit -m "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty
29+
git push https://[email protected]/${{ github.repository }} ${BRANCH}
30+
gh pr create --head $BRANCH --title "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" --body "Scheduled drivers uplift"

0 commit comments

Comments
 (0)