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

charliecloud: 0.12 -> 0.18 #95888

Merged
merged 3 commits into from Aug 28, 2020
Merged

charliecloud: 0.12 -> 0.18 #95888

merged 3 commits into from Aug 28, 2020

Conversation

bzizou
Copy link
Contributor

@bzizou bzizou commented Aug 21, 2020

Motivation for this change

An important bug has been fixed https://github.com/hpc/charliecloud/pull/826/files

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.

@reidpr
Copy link

reidpr commented Aug 21, 2020

Thank you! Greatly appreciate our packagers. :)

Co-authored-by: Daniël de Kok <me@github.danieldk.eu>
@bzizou bzizou force-pushed the charliecloud18 branch 2 times, most recently from bf602e4 to 0779ea1 Compare August 27, 2020 09:03
Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

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

Thanks for all the work you have put in! I think the derivation has become much more robust as a result.Two final requested changes:

  • Add sudo to the wrapper.
  • Remove the test from this PR, with a suggestion of you the test could be structured to automatically run by Hydra/ofborg.

Then it should be ready for merging.

pkgs/applications/virtualization/charliecloud/default.nix Outdated Show resolved Hide resolved
@@ -0,0 +1,42 @@
#/bin/env bash
Copy link
Contributor

@danieldk danieldk Aug 27, 2020

Choose a reason for hiding this comment

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

Having a test is nice, but it is probably not so useful when they are not run automatically. Such tests tend to get stale over time.

What you could do in another PR when this one is merged, if you are interested in putting in the time, is write a NixOS test. If you are not familiar with NixOS tests, they run in a VM and therefore provide the opportunity to set up a real testing environment. E.g., you could automatically set up a Docker registry in the test (there is already a NixOS test that does this, that can be used for inspiration, nixos/tests/docker-registry.nix) and then test charliecloud against that registry.

Then that test could be added to passthru.tests in this derivation and it would be run automatically by ofborg and Hydra.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay! I wrote the test. I used dockerTools.examples.nix as a base image. Hope this is fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great! I amended the commit, seems that you forgot to commit the change to alltests.nix. So, should be good now.

Let's see if ofborg is also happy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yes sorry. Ofborg has passed the passthru.tests.charliecloud test anyway, I checked that

Copy link
Contributor

Choose a reason for hiding this comment

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

It didn't, it just skips that step if passthru.tests cannot be properly be evaluated.

@danieldk
Copy link
Contributor

@ofborg build charliecloud

@danieldk
Copy link
Contributor

@ofborg eval

@danieldk danieldk merged commit 192ed0a into NixOS:master Aug 28, 2020
@bzizou
Copy link
Contributor Author

bzizou commented Aug 31, 2020

Many thanks for your help @danieldk !

@reidpr
Copy link

reidpr commented Aug 31, 2020

Thanks for packaging Charliecloud!! Very much appreciate your efforts. And please do let us know if upstream can do anything to make you work easier.

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

Successfully merging this pull request may close these issues.

None yet

3 participants