Skip to content
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

use rapids-build-backend #736

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

jameslamb
Copy link
Member

Contributes to rapidsai/build-planning#31
Contributes to rapidsai/dependency-file-generator#89

Proposes introducing rapids-build-backend as this project's build backend, to reduce the complexity of various CI/build scripts.

@jameslamb jameslamb added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jun 4, 2024
@jameslamb jameslamb changed the title WIP: use rapids-build-backend use rapids-build-backend Jun 5, 2024
@jameslamb jameslamb marked this pull request as ready for review June 5, 2024 13:54
@jameslamb jameslamb requested review from a team as code owners June 5, 2024 13:54
Copy link
Contributor

@grlee77 grlee77 left a comment

Choose a reason for hiding this comment

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

Thanks, the Python code changes look good to me

Comment on lines +290 to +293
- &cupy_cu11 cupy-cuda11x>=12.0.0
- matrix:
packages:
- *cupy_cu11
Copy link
Contributor

Choose a reason for hiding this comment

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

unfamiliar with the notation, curious what the & and * in the package names do here?

Copy link
Contributor

Choose a reason for hiding this comment

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

These are YAML anchors. We defined an anchor with & and reused its value with *.

Copy link
Member Author

Choose a reason for hiding this comment

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

oh sure, happy to explain! This is a YAML "alias", pointing to a YAML "anchor". When this document is loaded, *cupy_cu11 will be replaced with whatever value is tagged with &cupy_cu11. It's a way to reduce a bit of duplication, to keep things that should be consistent consistent.

For example, this:

limits:
  cpu: 1.0
requests:
  cpu: 1.0

Is identical to this:

limits:
  cpu: &cpu_val 1.0
requests:
  cpu: *cpu_val

For reference, see:

@jameslamb jameslamb requested review from a team as code owners June 7, 2024 20:31
@jameslamb jameslamb requested a review from AyodeAwe June 7, 2024 20:31
@jameslamb
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit a6c4f59 into rapidsai:branch-24.08 Jun 10, 2024
45 checks passed
@jameslamb jameslamb deleted the rapids-build-backend branch June 10, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants