Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented

update bogus instructions and gh action

+16 -4
+4 -1
templates/bogus/.github/workflows/test.yml
··· 9 9 strategy: 10 10 fail-fast: false 11 11 matrix: 12 - os: [ubuntu-latest] 12 + os: [ubuntu-latest, macos-latest] 13 13 # add more releases or commits to test 14 14 # rev: [ "main", "v0.8.0", "caa328d" ] 15 15 rev: ["main"] ··· 22 22 - uses: DeterminateSystems/magic-nix-cache-action@v13 23 23 - uses: actions/checkout@v5 24 24 - run: sed -i 's#vic/den/main#vic/den/${{matrix.rev}}#' flake.nix 25 + if: matrix.os == 'ubuntu-latest' 26 + - run: sed -i '' 's#vic/den/main#vic/den/${{matrix.rev}}#' flake.nix 27 + if: matrix.os == 'macos-latest' 25 28 - run: nix flake update den 26 29 - run: nix flake metadata 27 30 - run: nix flake check
+12 -3
templates/bogus/README.md
··· 1 1 # Bug Reproduction den 2 2 3 + READ: https://den.oeiuwq.com/tutorials/ci/ 4 + 3 5 Use this small template to reproduce bugs in den. 4 6 5 7 Edit the `rev` list being tested at [`test.yml`](.github/workflows/test.yml), include `"main"` and any other release tag or commit sha you might want to test. This is useful for showing regressions. 6 8 7 9 Create a **minimal** bug reproduction at [`modules/bug.nix`](modules/bug.nix) 8 10 9 - See also [Den debugging tips](https://den.oeiuwq.com/debugging.html) 11 + Each `denTest` is isolated from others so you can create as many 12 + as you want with same hosts and users. 10 13 11 14 Then run tests: 12 15 ··· 14 17 nix flake check 15 18 ``` 16 19 20 + Running a single test with `nixpkgs#nix-unit` on PATH: 21 + 22 + ```shell 23 + # append any attrName to run just particular tests 24 + nix-unit --flake .#.tests.systems.x86_64-linux.system-agnostic 25 + ``` 26 + 17 27 Please share a link to your reproduction repo, showing the CI step and the error at CI build. 18 28 19 29 ## Fixing Den ··· 22 32 use your local den checkout. 23 33 24 34 ```shell 25 - cd <den-working-copy> 26 - nix flake check --override-input den . ./templates/bogus 35 + nix-unit --override-input den <den-working-copy> --flake <your-bogus-repo>#.tests.systems.x86_64-linux.system-agnostic 27 36 ```