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

hobbes: init at latest #79699

Merged
merged 3 commits into from Mar 12, 2020
Merged

hobbes: init at latest #79699

merged 3 commits into from Mar 12, 2020

Conversation

@thmzlt
Copy link

@thmzlt thmzlt commented Feb 10, 2020

Motivation for this change

Introducing the hobbes programming and execution environment build and maintained at Morgan Stanley.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
@thmzlt
Copy link
Author

@thmzlt thmzlt commented Feb 10, 2020

Looking into the build timeout. It passes on Travis CI.

pkgs/development/tools/hobbes/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/hobbes/default.nix Outdated Show resolved Hide resolved
@thmzlt thmzlt requested a review from doronbehar Feb 27, 2020
Copy link
Contributor

@doronbehar doronbehar left a comment

Besides that all LGTM.

pkgs/development/tools/hobbes/default.nix Outdated Show resolved Hide resolved
@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 1, 2020

What else can I do to help with this PR? Do I need to tick all the boxes on the template list?

@doronbehar
Copy link
Contributor

@doronbehar doronbehar commented Mar 1, 2020

You can try and write at https://discourse.nixos.org/t/prs-already-reviewed/2617 . I don't have merge permissions so I've done as best as I could. Since I can see this is your first contribution, 1st of all welcome aboard :) And 2ndly, get used to it - PRs can take a longgg of time.

@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 1, 2020

Thanks @doronbehar!

@nixos-discourse
Copy link

@nixos-discourse nixos-discourse commented Mar 2, 2020

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/106

@aanderse
Copy link
Contributor

@aanderse aanderse commented Mar 9, 2020

@thmzlt after reading the upstream guide to building it seems like more recent gcc and llvm should work... did you try?
I believe @danieldk has a comment about python and checkInputs which hasn't been addressed yet.

@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 9, 2020

@thmzlt after reading the upstream guide to building it seems like more recent gcc and llvm should work... did you try?

Building with latest GCC and LLVM fails. There are open issues on upstream for that.

I believe @danieldk has a comment about python and checkInputs which hasn't been addressed yet.

I'll fix it later today when I have a chance and let you know. Thank you all for guiding me on this PR.

@aanderse
Copy link
Contributor

@aanderse aanderse commented Mar 9, 2020

@thmzlt awesome! Links to upstream issues always appreciated so future updates can easily check if these issues are resolved or not.

@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 10, 2020

Pushed changes to set Python as a check phase input. Should be good to go.

Regarding the issues related to LLVM/GCC versions, they are:

Both issues are expected to be fixed.

@danieldk
Copy link
Member

@danieldk danieldk commented Mar 10, 2020

Pushed changes to set Python as a check phase input. Should be good to go.

Cool, thanks!

Regarding the issues related to LLVM/GCC versions, they are:

Maybe it's worthwhile adding a short comment to the derivation above the respective dependencies with the links? Avoid that somebody has to hunt for PRs in the future to find these links ;).

Copy link
Contributor

@aanderse aanderse left a comment

I notice there are a few unresolved comments from other reviewers.

pkgs/development/tools/hobbes/default.nix Outdated Show resolved Hide resolved
pkgs/top-level/all-packages.nix Outdated Show resolved Hide resolved
pkgs/development/tools/hobbes/default.nix Outdated Show resolved Hide resolved
@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 11, 2020

@aanderse, just pushed a new version of the derivation with your feedback. Let me know if there's anything else.

@thmzlt thmzlt requested a review from aanderse Mar 11, 2020
Copy link
Contributor

@aanderse aanderse left a comment

This is looking really good! Very close, a few more changes, a quick test, and I'm more than happy to merge. Thanks for your patience up to this point.

pkgs/development/tools/hobbes/default.nix Outdated Show resolved Hide resolved
maintainers/maintainer-list.nix Outdated Show resolved Hide resolved
Thomaz Leite added 2 commits Mar 11, 2020
@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 11, 2020

@aanderse, I have fixed the version name, and separated the changes in two commits. I have also changed the maintiner from the upstream's maintainer to myself since I'm the one working on the derivation. Finally, I have added a comment pointing to the upstream issue on why doCheck is currently set to false, and removed the python37 input.

@thmzlt thmzlt requested a review from aanderse Mar 11, 2020
Copy link
Contributor

@aanderse aanderse left a comment

@thmzlt what a fantastic job you've done here. Welcome to the maintainers team, we're so glad to have you! 🎉

@aanderse
Copy link
Contributor

@aanderse aanderse commented Mar 12, 2020

@GrahamcOfBorg build hobbes

@aanderse
Copy link
Contributor

@aanderse aanderse commented Mar 12, 2020

Oh no! 😱 x86_64-darwin failure!

@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 12, 2020

I can't test it on Darwin at the moment (I don't have a supported computer). Is it possible to mark this as Linux-only while I figure out how to build on a Mac?

@doronbehar
Copy link
Contributor

@doronbehar doronbehar commented Mar 12, 2020

Yes. If upstream intended this to build on darwin, then we mark this as broken there. I.e use meta.broken = stdenv.isDarwin;.

If upstream intended this to work only on Linux, you can use the platforms meta attribute.

Thomaz Leite
@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 12, 2020

@GrahamcOfBorg build hobbes

@thmzlt
Copy link
Author

@thmzlt thmzlt commented Mar 12, 2020

Looks like we are good. Thank you all for the help.

@aanderse aanderse merged commit 76b292d into NixOS:master Mar 12, 2020
15 checks passed
15 checks passed
hobbes on aarch64-linux No attempt
Details
Evaluation Performance Report Evaluator Performance Report
Details
grahamcofborg-eval ^.^!
Details
grahamcofborg-eval-check-maintainers matching changed paths to changed attrs...
Details
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
grahamcofborg-eval-darwin nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./pkgs/top-level/release.nix -A darwin-tested
Details
grahamcofborg-eval-nixos nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./nixos/release-combined.nix -A tested
Details
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./nixos/release.nix -A manual
Details
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./nixos/release.nix -A options
Details
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./pkgs/top-level/release.nix -A manual
Details
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./pkgs/top-level/release.nix -A tarball
Details
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./pkgs/top-level/release.nix -A unstable
Details
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
hobbes on x86_64-linux Success
Details
@thmzlt thmzlt deleted the thmzlt:hobbes branch Mar 12, 2020
dtzWill added a commit to dtzWill/nixpkgs that referenced this pull request Mar 12, 2020
hobbes: init at latest
(cherry picked from commit 76b292d)
@bhipple bhipple mentioned this pull request Apr 1, 2020
0 of 10 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.