Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 321
MNT: Consolidate BACKPORT_BRANCH into ci/versions.yml#1311
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
4033cfd351539f301772e07724261a545d4aa9a34fca9a06f9fdfa6cf1af6cba26bfc5e5fac2b4011bb80f8afb0609f8a2File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -75,6 +75,23 @@ jobs: | ||
| if: ${{ startsWith(inputs.host-platform, 'win') }} | ||
| uses: ilammy/msvc-dev-cmd@v1 # TODO: ask admin to allow pinning commits | ||
| - name: Set up yq | ||
| # GitHub made an unprofessional decision to not provide it in their Windows VMs, | ||
| # see https://github.com/actions/runner-images/issues/7443. | ||
| if: ${{ startsWith(inputs.host-platform, 'win') }} | ||
| env: | ||
| # doesn't seem there's an easy way to avoid hard-coding it? | ||
| YQ_URL: https://github.com/mikefarah/yq/releases/latest/download/yq_windows_amd64.exe | ||
| YQ_DIR: yq_latest | ||
| shell: pwsh -command ". '{0}'" | ||
| run: | | ||
| mkdir -Force -ErrorAction SilentlyContinue "${env:YQ_DIR}" | Out-Null | ||
| Invoke-WebRequest -UseBasicParsing -OutFile "${env:YQ_DIR}/yq.exe" -Uri "$env:YQ_URL" | ||
| ls -l $env:YQ_DIR | ||
| echo "$((Get-Location).Path)\\$env:YQ_DIR" >> $env:GITHUB_PATH | ||
| $env:Path += ";$((Get-Location).Path)\\$env:YQ_DIR" | ||
| yq --version | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-blocking: can we use MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be a good idea for this workflow since I avoided using it in most places because it did not work in one of the cases (can't recall which), and we had to cover workflows running on both self-hosted and GH-hosted runners, and the asymmetry is large enough that a custom script like the one I removed for ztsd makes the portability story much better. | ||
| - name: Set environment variables | ||
| env: | ||
| CUDA_VER: ${{ inputs.cuda-version }} | ||
| @@ -275,8 +292,7 @@ jobs: | ||
| id: setup-python2 | ||
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | ||
| with: | ||
| # workaround for actions/runner-images#12377 (the cached 3.13.4 is buggy on Windows) | ||
| python-version: ${{ matrix.python-version == '3.13' && '3.13.5' || matrix.python-version }} | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: verify free-threaded build | ||
| if: endsWith(matrix.python-version, 't') | ||
| @@ -334,7 +350,6 @@ jobs: | ||
| cuda-path: "./cuda_toolkit_prev" | ||
| - name: Download cuda.bindings build artifacts from the prior branch | ||
| if: startsWith(matrix.python-version, '3.14') | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| @@ -350,7 +365,7 @@ jobs: | ||
| && apt install gh -y | ||
| fi | ||
| OLD_BRANCH=$(cat .github/BACKPORT_BRANCH) | ||
| OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml) | ||
| OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*" | ||
| LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId') | ||
| if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -5,7 +5,6 @@ LICENSE | ||
| *.png | ||
| .gitattributes | ||
| .gitignore | ||
| .github/BACKPORT_BRANCH | ||
| requirements*.txt | ||
| cuda_bindings/examples/* | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.