@@ -596,15 +596,12 @@ jobs:
596
596
buildSteps :
597
597
- " run " :
598
598
name : " Unit Test"
599
- command : |
600
- source .circleci/lib.sh
601
-
602
- # Translate the nixpkgs selection into a flake reference we
603
- # can use to override the default nixpkgs input.
604
- NIXPKGS=$(nixpkgs_flake_reference <<parameters.nixpkgs>>)
605
-
599
+ environment :
600
+ # Once dependencies are built, we can allow some more concurrency for our own
601
+ # test suite.
602
+ UNITTEST_CORES : " 8"
603
+ command :
606
604
nix run \
607
- --override-input nixpkgs "$NIXPKGS" \
608
605
.#<<parameters.pythonVersion>>-unittest -- \
609
606
--jobs $UNITTEST_CORES \
610
607
allmydata
@@ -766,16 +763,6 @@ commands:
766
763
type : " steps"
767
764
768
765
steps :
769
- - " run " :
770
- name : " Install Basic Dependencies"
771
- command : |
772
- # Get some build environment dependencies and let them float on a
773
- # certain release branch. These aren't involved in the actual
774
- # package build (only in CI environment setup) so the fact that
775
- # they float shouldn't hurt reproducibility.
776
- NIXPKGS="nixpkgs/nixos-24.11"
777
- nix profile install $NIXPKGS#bash $NIXPKGS#jp
778
-
779
766
- " checkout"
780
767
781
768
- " run " :
@@ -788,14 +775,17 @@ commands:
788
775
789
776
- " run " :
790
777
name : " Build Package"
778
+ environment :
779
+ # CircleCI build environment looks like it has a zillion and a half cores.
780
+ # Don't let Nix autodetect this high core count because it blows up memory
781
+ # usage and fails the test run. Pick a number of cores that suits the build
782
+ # environment we're paying for (the free one!).
783
+ DEPENDENCY_CORES : " 3"
791
784
command : |
792
- source .circleci/lib.sh
793
- NIXPKGS=$(nixpkgs_flake_reference <<parameters.nixpkgs>>)
794
785
nix build \
795
786
--verbose \
796
787
--print-build-logs \
797
788
--cores "$DEPENDENCY_CORES" \
798
- --override-input nixpkgs "$NIXPKGS" \
799
789
.#<<parameters.pythonVersion>>-tahoe-lafs
800
790
801
791
- steps : " <<parameters.buildSteps>>"
0 commit comments