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

Package Ray #11160

Merged
merged 79 commits into from
Dec 10, 2020
Merged

Package Ray #11160

merged 79 commits into from
Dec 10, 2020

Conversation

h-vetinari
Copy link
Member

@h-vetinari h-vetinari commented Mar 29, 2020

Checklist

  • Title of this PR is meaningful: e.g. "Adding my_nifty_package", not "updated meta.yaml"
  • License file is packaged (see here for an example)
  • Source is from official source
  • Package does not vendor other packages. (If a package uses the source of another package, they should be separate packages or the licenses of all packages need to be packaged)
  • If static libraries are linked in, the license of the static library is packaged.
  • Build number is 0
  • A tarball (url) rather than a repo (e.g. git_url) is used in your recipe (see here for more details)
  • GitHub users listed in the maintainer section have posted a comment confirming they are willing to be listed there

This tries to pick up where #10637 of @dHannasch left off. I've added him to the recipe maintainers due to his PR, but can remove him if he wants to.

I've tried to work independently up until this point, but I've hit a pretty big road block where I please need guidance @conda-forge/core:

The upstream build script is a ~1000 line bazel build. It seemed too daunting a task to rewrite this in a build.sh, and so I wanted to use the script itself.

Not knowing much of bazel until today, I found out the hard way that it pulls in a lot of different things, which we would therefore also have to package (and link) correctly. I'm not sure how to go about this - the most elegant way I could think of would be to be able to specify conda-packages in the bazel script, but that doesn't seem to be possible currently: bazelbuild/rules_python#73.

Some notes:

Closes #10637 ray-project/ray#585

dHannasch and others added 27 commits January 19, 2020 08:39
…lacehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/bin/bazel: /usr/lib64/libstdc++.so.6: version GLIBCXX_3.4.21 not found (required by /home/conda/staged-recipes/build_artifacts/ray_1579455767395/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/bin/bazel)
@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/ray) and found it was in an excellent condition.

I do have some suggestions for making it better though...

For recipes/ray:

  • It looks like the 'ray-base' output doesn't have any tests.
  • It looks like the 'ray-debug' output doesn't have any tests.
  • Recipe with the same name exists in bioconda: please discuss with @conda-forge/bioconda-recipes.

@vnlitvinov
Copy link
Contributor

Are the licenses for redis included?

I did the grep-ing over Bazel configuration files and included licenses for anything that was potentially included in the resulting bits (omitting several repos with Bazel rules only). Should be fine now.

Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
@vnlitvinov
Copy link
Contributor

Okay, licenses added (and I've reworked the patch that removes intallation requirements - those are handled by meta.yaml - to make sure we do not miss changes there, or at least get warnings).
Should be ready for review again.

cc @beckermr @conda-forge/core

Copy link
Member Author

@h-vetinari h-vetinari left a comment

Choose a reason for hiding this comment

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

Overall: great work! 🙃

recipes/ray-packages/meta.yaml Outdated Show resolved Hide resolved
recipes/ray-packages/meta.yaml Outdated Show resolved Hide resolved
recipes/ray-packages/meta.yaml Outdated Show resolved Hide resolved
recipes/ray-packages/meta.yaml Show resolved Hide resolved
recipes/ray-packages/meta.yaml Outdated Show resolved Hide resolved
@h-vetinari
Copy link
Member Author

PS. With all the work you've put into this, I consider you the "owner" of this PR - I'll refrain from directly committing unless you ask for support (in which case I'll try, but cannot promise anything in terms of turn-around times).

Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
Also add slightly better testing for rllib

Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
@vnlitvinov
Copy link
Contributor

vnlitvinov commented Dec 7, 2020

@beckermr @conda-forge/core @h-vetinari it should be again ready for review, this time with working ray-rllib package (and with more sturdy patching for requirements - if upstream changes them we'll get a patch conflict instead of runtime error).

Or I rather hope it would be ready, as it's still about 4-4.5 hours until Windows part of CI is done (if all goes well). CI is green again, yay!

Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
Copy link
Member Author

@h-vetinari h-vetinari left a comment

Choose a reason for hiding this comment

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

Very cool! 👍

(cannot approve my "own" PR in GH, but: LGTM)

@beckermr
Copy link
Member

@kkraus14 Did your contact have any comments here or should we go ahead?

@kkraus14
Copy link
Contributor

@kkraus14 Did your contact have any comments here or should we go ahead?

I never got a response, so full steam ahead.

@beckermr beckermr merged commit 554e2de into conda-forge:master Dec 10, 2020
@beckermr
Copy link
Member

Thanks @kkraus14!

@h-vetinari
Copy link
Member Author

Amazing! Been quite a journey since @dHannasch started this effort almost a year ago...

Thanks everyone for the help, and especially to @vnlitvinov for the herculean effort to get this over the finish line! 🥳

@h-vetinari h-vetinari deleted the ray branch December 10, 2020 15:30
@bollwyvl
Copy link
Contributor

bollwyvl commented Dec 10, 2020 via email

@dHannasch
Copy link
Contributor

This is fantastic! Sorry I disappeared. This is amazing work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.