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
Update simgrid 3.19.1 -> 3.20 + parallel tests + enable darwin #42721
Conversation
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/simgrid/versions. These checks were done: - built on NixOS - /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpicc passed the binary check. - /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpicxx passed the binary check. - /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpirun passed the binary check. - Warning: no invocation of /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/tesh had a zero exit code or showed the expected version - /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/simgrid-colorizer passed the binary check. - Warning: no invocation of /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/simgrid_update_xml had a zero exit code or showed the expected version - /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/simgrid_convert_TI_traces passed the binary check. - Warning: no invocation of /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpimain had a zero exit code or showed the expected version - /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/graphicator passed the binary check. - 6 of 9 passed binary check by having a zero exit code. - 4 of 9 passed binary check by having the new version present in output. - found 3.20 with grep in /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20 - directory tree listing: https://gist.github.com/edefc2f1a2e81412484edc2e45986e03 - du listing: https://gist.github.com/a44f7d57537e93152a8e6c569f8ed1ae
- Fix dependencies to enable build on darwin - Add ctest flag to enable parallel testing
@GrahamcOfBorg build simgrid |
NB_CORES="$NIX_BUILD_CORES" | ||
fi | ||
fi | ||
ctest -j $NB_CORES --output-on-failure -E smpi-replay-multiple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't -j0 work here, like with make?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, nothing is specified for "0" value in the ctest documentation (https://cmake.org/cmake/help/v3.0/manual/ctest.1.html), so I did it this way.
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: simgrid Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: simgrid Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: simgrid Partial log (click to expand)
|
Darwin build has failed, but it seems from the CI logs that the osx version used by the CI is xnu-osx-10.11.6. With our internal CI that runs on 10.13 the tests are all green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid setting custom NB_CORES values. NIX_BUILD_CORES should just work everywhere (and if it doesn't we should handle that in CMake not here).
Thanks @matthewbauer for the review. I agree that it seems odd to set this here, but I'm trying to parallelize the tests (and not the build) with So, because the use of Also, it should not be switch on by the |
Yeah I think the ctest stuff is good just that it shouldn't need the if statement. Just like this is what we do in other places:
|
I desagree because
Also, If the By the way, this way of doing things is not coming from me, I get this implementation from here: nixpkgs/pkgs/build-support/vm/default.nix Lines 218 to 222 in caccc40
|
We handle this logic already on setup.sh: nixpkgs/pkgs/stdenv/generic/setup.sh Lines 624 to 631 in e46e7f4
|
because it is already done in nixpkgs/pkgs/stdenv/generic/setup.sh
Thanks for the explanation, I've simplify the ctest command as you suggests. And sorry for being so insistent, I'm sometimes a bit stubborn when I don't understand ;) |
Seems like your concerns were dealt with @matthewbauer ? |
@GrahamcOfBorg build simgrid |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: simgrid Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: simgrid Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: simgrid Partial log (click to expand)
|
Motivation for this change
Enable the build on Darwin.
Speed up testing
Things done
I use this update to remove
elfutils
from thenativeBuildInputs
because it was only needed for Model Checking. This should enables the build on Darwin without this option which is activated by default.Also I add a falg to Ctest command to enable parallel run of the tests
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)