ci/eval: rewrite script to use nix-eval-jobs --select#1658
ci/eval: rewrite script to use nix-eval-jobs --select#1658brianmcgillion merged 2 commits intomainfrom
Conversation
5205a64 to
01447eb
Compare
01447eb to
cc6f62f
Compare
cc6f62f to
6657176
Compare
9f5461d to
15b06ca
Compare
15b06ca to
8f79a83
Compare
f4eaf3d to
4aa546b
Compare
69d1329 to
c89079e
Compare
c89079e to
e7a83c7
Compare
e7a83c7 to
5157593
Compare
5157593 to
43a9206
Compare
|
Accidentally, the sharding is now also better? It now takes consistently ~4min instead of 10m: https://github.com/tiiuae/ghaf/actions/runs/20164147792/job/57883359067?pr=1634 |
This way we make no longer need impure evaluation.
Also improved the error output so it looks like this:
[ 24.3s] ✓ packages.aarch64-linux.hardware-scan
[ 32.9s] ✓ packages.aarch64-linux.nvidia-jetson-orin-agx-release-nodemoapps
[ 36.2s] ✓ packages.aarch64-linux.nxp-imx8mp-evk-release
[ 37.7s] ✓ packages.x86_64-linux.audit-rules
[ 37.9s] ✗ packages.x86_64-linux.demo-tower-mk1-debug-installer
[ 38.0s] ✓ packages.x86_64-linux.ghaf-vms
[ 38.2s] ✗ packages.x86_64-linux.lenovo-t14-amd-gen5-release-installer
[ 38.4s] ✗ packages.x86_64-linux.lenovo-x1-carbon-gen11-release-installer
[ 38.6s] ✗ packages.x86_64-linux.lenovo-x1-extras-debug-installer
[ 40.6s] ✓ packages.x86_64-linux.nvidia-jetson-orin-agx-debug-from-x86_64-flash-qspi
[ 48.8s] ✓ packages.x86_64-linux.nvidia-jetson-orin-agx-industrial-debug-nodemoapps-from-x86_64-flash-script
[ 58.5s] ✓ packages.x86_64-linux.nvidia-jetson-orin-agx-release-nodemoapps-from-x86_64
[ 60.5s] ✓ packages.x86_64-linux.nvidia-jetson-orin-agx64-release-from-x86_64-flash-qspi
[ 68.7s] ✓ packages.x86_64-linux.nvidia-jetson-orin-nx-debug-nodemoapps-from-x86_64-flash-script
[ 69.7s] ✓ packages.x86_64-linux.rtl8126
[ 79.1s] ✓ packages.x86_64-linux.vm-debug
============================================================
Evaluated 16 attributes in 79.2s
✓ 12 succeeded
✗ 4 failed
============================================================
Errors:
packages.x86_64-linux.demo-tower-mk1-debug-installer:
error:
… from call site
at «github:tiiuae/nixpkgs/f5588cc02080b7fcc2c47b5d7daf44fb3c5dd476?narHash=sha256-oOmNB5vpk3y%2B7DbGzYPwFwuDORqtJq5NW2BBBZi0Vcg%3D»/lib/attrsets.nix:1344:61:
1343| */
1344| genAttrs = names: f: genAttrs' names (n: nameValuePair n (f n));
| ^
1345|
The script is now overall a bit simpler what we had before
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
43a9206 to
96f3c13
Compare
There was a problem hiding this comment.
Thanks @Mic92, this looks really good!
Just one question/comment:
I also believe that explains most of the execution time improvement. Before this change, some eval workers got assigned many of the ghaf outputs that take longer time to evaluate. Therefore, some eval workers ran in ~3 minutes, while others took more than 10 minutes. Also, you are now running with As you wrote above, perhaps the arm runners are also somewhat faster for the eval execution. |
Description of Changes
This way we do no longer need impure evaluation (side-effect of --expr)
Also improved the error output so it looks like this:
This way we make no longer need impure evaluation.
Type of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify: