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

slurm: 17.11.5 -> 17.11.7, pyslurm: 20180427 -> 20180604 #42536

Merged
merged 3 commits into from Jun 25, 2018

Conversation

bhipple
Copy link
Contributor

@bhipple bhipple commented Jun 24, 2018

This commit also swaps to use the official repository's github release tags
instead of their download site, which only keeps the most recent version with no
historical archives.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Fits CONTRIBUTING.md.

This commit also swaps to use the official repository's github release tags
instead of their download site, which only keeps the most recent version with no
historical archives.
@bhipple bhipple requested a review from FRidh as a code owner June 24, 2018 20:52
@bhipple
Copy link
Contributor Author

bhipple commented Jun 24, 2018

@GrahamcOfBorg build slurm pythonPackages.pyslurm

@bhipple
Copy link
Contributor Author

bhipple commented Jun 24, 2018

CC maintainers @veprbl @jagajaga @markuskowa

@bhipple
Copy link
Contributor Author

bhipple commented Jun 24, 2018

BTW it looks like pyslurm isn't running its test cases in the nix build with setup.py. It looks like upstream ships a ./pyslurm/scripts/run_tests.sh that we could maybe invoke instead of the standard test run?

EDIT: Give me a minute, I'll see if I can get it running with a custom checkPhase.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slurm, pythonPackages.pyslurm

Partial log (click to expand)

   slurmdb_tres_rec_t __pyx_v_acct_tres_rec;
                      ^~~~~~~~~~~~~~~~~~~~~
gcc -pthread -shared -lgcc_s build/temp.linux-x86_64-2.7/pyslurm/pyslurm.o -L -L/slurm -L/nix/store/d3aa78jf7pm9lk6ad67x4f21a068dxn6-python-2.7.15/lib -Wl,-R/ -Wl,-R/slurm -lslurmdb -lslurm -lpython2.7 -o /build/source/pyslurm/pyslurm.so

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7
/nix/store/3nhzkx90vyi2jvc5v3anag04p8vlg44b-python2.7-pyslurm-20180604

@@ -8,11 +8,16 @@

stdenv.mkDerivation rec {
name = "slurm-${version}";
version = "17.11.5";
version = "17.11.7";

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current slurm build doesn't work if you try to rebuild from source, since the upstream tarball has disappeared after schedmd swapped it to the latest release.

checkInputs = [ nose ];
checkPhase = ''
nosetests -v
'';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we're not running tests, do we prefer to leave the config showing how you would run tests if you had a system with all the pre-requisites setup, or do we prefer to delete it all to keep the default.nix lean?

Copy link
Member

Choose a reason for hiding this comment

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

Delete of course. Nobody is going to maintain that.

Copy link
Member

Choose a reason for hiding this comment

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

You could run such a test, for example, in nixos/tests/slurm (assuming that the test suite is included in the pyslurm installation).

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slurm

Partial log (click to expand)

/nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: slurm

Partial log (click to expand)

/nix/store/bj6xwprq26l0b4mwyx96yam0i9xl1af0-slurm-17.11.7

@xeji xeji mentioned this pull request Jun 24, 2018
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: slurm

Partial log (click to expand)

/nix/store/bj6xwprq26l0b4mwyx96yam0i9xl1af0-slurm-17.11.7

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slurm

Partial log (click to expand)

/nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: slurm, pythonPackages.pyslurm

Partial log (click to expand)

In file included from /nix/store/cxp5iq3352qr87353d134yiaccfq7a35-python2.7-numpy-1.14.5/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
                 from /nix/store/cxp5iq3352qr87353d134yiaccfq7a35-python2.7-numpy-1.14.5/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /nix/store/cxp5iq3352qr87353d134yiaccfq7a35-python2.7-numpy-1.14.5/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from memoryviewattrs.cpp:581:
/nix/store/cxp5iq3352qr87353d134yiaccfq7a35-python2.7-numpy-1.14.5/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
building of '/nix/store/q33v4a671f67g92k5dd8yfc721a9mxxc-python2.7-Cython-0.28.3.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/7qci1ja5livz2ddzv9026byb97p1gkr3-python2.7-pyslurm-20180604.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7qci1ja5livz2ddzv9026byb97p1gkr3-python2.7-pyslurm-20180604.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: slurm

Partial log (click to expand)

/nix/store/bj6xwprq26l0b4mwyx96yam0i9xl1af0-slurm-17.11.7

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: slurm

Partial log (click to expand)

gzipping man pages under /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7/share/man/
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7/lib  /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7/bin  /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7/sbin
patching script interpreter paths in /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7
checking for references to /build in /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7...
moving /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7/sbin/* to /nix/store/mh9pkscw7lpxhw0wxjj8ncxln11grra3-slurm-17.11.7/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/g2pgqw6prnrvdhyamjqlppx2h9sl2277-slurm-17.11.7-dev
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/g2pgqw6prnrvdhyamjqlppx2h9sl2277-slurm-17.11.7-dev
checking for references to /build in /nix/store/g2pgqw6prnrvdhyamjqlppx2h9sl2277-slurm-17.11.7-dev...

@xeji
Copy link
Contributor

xeji commented Jun 25, 2018

@GrahamcOfBorg test slurm

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: tests.slurm

Partial log (click to expand)

cleaning up
killing submit (pid 593)
killing node3 (pid 605)
killing control (pid 617)
killing node1 (pid 629)
killing node2 (pid 641)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
builder for '/nix/store/yvs0hvx1hn8s8h3j9vhyw681hgvyb1jg-vm-test-run-slurm.drv' failed with exit code 255
error: build of '/nix/store/yvs0hvx1hn8s8h3j9vhyw681hgvyb1jg-vm-test-run-slurm.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: tests.slurm

Partial log (click to expand)

test script finished in 28.41s
cleaning up
killing control (pid 627)
killing node2 (pid 640)
killing submit (pid 653)
killing node3 (pid 666)
killing node1 (pid 679)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
/nix/store/grpcl1kl3fm09pn02nsh7133xid2gf1s-vm-test-run-slurm

@xeji
Copy link
Contributor

xeji commented Jun 25, 2018

Test failure on x86_64-linux was a sporadic error unrelated to this PR. Test succeeds locally.

@xeji xeji merged commit 39f357a into NixOS:master Jun 25, 2018
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

5 participants