Skip to content

[CI] Update GPU driver uplift process #6581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/sycl_precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.github/CODEOWNERS'
- '.github/workflows/sycl_update_gpu_driver.yml'
- 'devops/containers/**'
- 'devops/scripts/install_drivers.sh'
- 'devops/scripts/install_build_tools.sh'
Expand Down
36 changes: 4 additions & 32 deletions .github/workflows/sycl_update_gpu_driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,13 @@ jobs:
- name: Create Pull Request
env:
BRANCH: ci/update_gpu_driver-linux-${{ env.NEW_DRIVER_VERSION }}
LLVMBOT_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }}
run: |
cd $GITHUB_WORKSPACE
# Set fake identity to fulfil git requirements
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git checkout -B $BRANCH
git add -u
git commit -m "[GHA] Uplift GPU RT version for Linux CI" || exit 0 # exit if commit is empty
git push https://[email protected]/${{ github.repository }} ${BRANCH}
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"

update_driver_linux_staging:
runs-on: ubuntu-latest
if: github.repository == 'intel/llvm'
steps:
- uses: actions/checkout@v2
- name: Update dependencies file
run: |
version="$(python3 devops/scripts/update_drivers.py linux_staging)"
echo 'NEW_DRIVER_VERSION='$version >> $GITHUB_ENV
- name: Update sycl Branch
env:
BRANCH: ci/update_gpu_driver-linux_staging-${{ env.NEW_DRIVER_VERSION }}
LLVMBOT_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd $GITHUB_WORKSPACE
# Set fake identity to fulfil git requirements
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git checkout -B $BRANCH
git add -u
git commit -m "[GHA] Uplift GPU RT version for Nightly Builds" || exit 0 # exit if commit is empty
git push https://[email protected]/${{ github.repository }} ${BRANCH}
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"

git commit -m "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty
git push https://[email protected]/${{ github.repository }} ${BRANCH}
gh pr create --head $BRANCH --title "[GHA] Uplift Linux GPU RT version to $NEW_DRIVER_VERSION" --body "Scheduled drivers uplift"