Skip to content

Enable Cython tests for cuda.bindings - #323

Merged
leofang merged 11 commits into
NVIDIA:mainfrom
leofang:enable_cython_test
Jan 6, 2025
Merged

Enable Cython tests for cuda.bindings#323
leofang merged 11 commits into
NVIDIA:mainfrom
leofang:enable_cython_test

Conversation

@leofang

Copy link
Copy Markdown
Member

No description provided.

@leofangleofang added P1 Medium priority - Should do CI/CD CI/CD infrastructure cuda.bindings Everything related to the cuda.bindings module labels Dec 26, 2024
@leofangleofang self-assigned this Dec 26, 2024
@copy-pr-bot

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

Comment on lines +275 to +277
env:
# we use self-hosted runners on which setup-python behaves weirdly...
AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache"

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

host-platform: ${{ matrix.host-platform }}
cuda-version: ${{ matrix.cuda-version }}

- name: Install dependencies

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I don't want to install any build tools in the test pipeline, but it seems to be the easiest path...

@leofang
leofang marked this pull request as ready for review December 30, 2024 04:54
@copy-pr-bot

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@copy-pr-bot

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofangleofang added the to-be-backported Trigger the bot to raise a backport PR upon merge label Jan 4, 2025
@leofang

Copy link
Copy Markdown
MemberAuthor

This is ready.

@leofang
leofang merged commit 7ffb964 into NVIDIA:mainJan 6, 2025
@leofang
leofang deleted the enable_cython_test branch January 6, 2025 17:26
@github-actions

Copy link
Copy Markdown

Git push to origin failed for 11.8.x with exitcode 1

@leofang

Copy link
Copy Markdown
MemberAuthor

Git push to origin failed for 11.8.x with exitcode 1

The bot hit an error because this PR touches the workflow files in .github:

git push --set-upstream origin backport-323-to-11.8.x
To https://github.com/NVIDIA/cuda-python
! [remote rejected] backport-323-to-11.8.x -> backport-323-to-11.8.x (refusing to allow a GitHub App to create or update workflow `.github/workflows/build-and-test.yml` without `workflows` permission)
error: failed to push some refs to 'https://github.com/NVIDIA/cuda-python'

It turns out that the default GITHUB_TOKEN does not have permission for this... so any PRs that touch the workflow files will need to be manually backported (we could instead use a scoped PAT but I am hasitant to do this) 🙁

leofang added a commit to leofang/cuda-python that referenced this pull request Jan 6, 2025
* enable Cython tests for cuda.bindings
* build Cython test modules
* Update gh-build-and-test.yml
* Install system gcc
* No sudo
* also set CUDA_HOME
* Try to find Python include
* nit: add a skip condition and comments
* simplify
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CDCI/CD infrastructurecuda.bindingsEverything related to the cuda.bindings moduleP1Medium priority - Should doto-be-backportedTrigger the bot to raise a backport PR upon merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@leofang@keenan-simpson