Stream: nix

Topic: ANN: nixci


view this post on Zulip Srid (Apr 19 2024 at 02:03):

0.4.0 released!

@Shivaraj B H ^ another candidate for upstreaming to nixpkgs, if you would like to contribute a PR.

view this post on Zulip Shivaraj B H (Apr 19 2024 at 03:51):

https://github.com/NixOS/nixpkgs/pull/305222

view this post on Zulip GuangTao Zhang (Apr 24 2024 at 06:40):

Did you test the latest version with the command as follows?

nixci build github:hercules-ci/hercules-ci-agent                                                                      β”‚
β”‚πŸ github:hercules-ci/hercules-ci-agent                                                                                 β”‚
β”‚πŸš nix --extra-experimental-features 'nix-command flakes' show-config --json                                            β”‚
β”‚πŸš nix eval 'github:hercules-ci/hercules-ci-agent#nixci.default' --json                                                 β”‚
β”‚πŸš nix eval --impure --json --expr 'builtins.getFlake "github:nix-systems/empty"'                                       β”‚
β”‚πŸš nix eval --impure --json --expr 'import /nix/store/j0r8d7rdn4vrisl78v8ckl4hny4q9ipi-source'                          β”‚
β”‚πŸš nix show-config --json                                                                                               β”‚
β”‚πŸŽ default.<root>                                                                                                       β”‚
β”‚πŸš nix flake lock --no-update-lock-file github:hercules-ci/hercules-ci-agent                                            β”‚
β”‚πŸš nix build '/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source#default' -L --no-link --print-out-paths --override-inpuβ”‚
β”‚t flake github:hercules-ci/hercules-ci-agent --override-input systems github:nix-systems/empty --refresh -j auto        β”‚
β”‚β€’ Updated input 'systems':                                                                                              β”‚
β”‚    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLUβ”‚
β”‚309k9mBC768%3D' (2023-04-09)                                                                                            β”‚
β”‚  β†’ 'github:nix-systems/empty/23d743284b73ae69caf0cb7874edf05c0c631a1f?narHash=sha256-JeMK8G1oabQTSpqXhYaYtPRak4m6z1xxyRβ”‚
β”‚Kf8CvHy14%3D' (2024-02-23)                                                                                              β”‚
β”‚error: flake 'path:/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source' does not provide attribute 'packages.aarch64-darwβ”‚
β”‚in.default', 'legacyPackages.aarch64-darwin.default' or 'default'                                                       β”‚
β”‚Error: devour-flake failed to run (exited: 1)

view this post on Zulip Srid (Apr 24 2024 at 07:51):

@GuangTao Zhang How did you install nixci?

view this post on Zulip Srid (Apr 24 2024 at 08:13):

I'm unable to reproduce your error using nix run github:srid/nixci build github:hercules-ci/hercules-ci-agent on NixOS.

view this post on Zulip Srid (Apr 24 2024 at 08:14):

Ah, maybe the nixpkgs one is broken. Let me try ...

view this post on Zulip Srid (Apr 24 2024 at 08:40):

Nope, still can't reproduce it.

view this post on Zulip Srid (Apr 24 2024 at 08:41):

But, @Shivaraj B H, you want to update nixpkgs to use the same devour-flake rev, since it contains some fixes (like for building nixosConfigurations).

https://github.com/srid/nixci/blob/b247e765843762f708861ec2309ae8ca75c1de25/flake.lock#L40-L49

view this post on Zulip Srid (Apr 24 2024 at 08:42):

May as well use this opportunity to add a comment next to the version field reminding contributors to update devour-flake when upgrading nixci.

view this post on Zulip GuangTao Zhang (Apr 24 2024 at 20:14):

Srid said:

I'm unable to reproduce your error using nix run github:srid/nixci build github:hercules-ci/hercules-ci-agent on NixOS.

From the latest nixpkgs-unstable.Yeah, I can't reproduce the issue with the command you provided as well. It seems the problem appeared in the the upstream of nixpkgs (version 0.4.0)

view this post on Zulip Srid (Apr 24 2024 at 22:43):

@Shivaraj B H Another idea: add some regression tests for nixci in nixpkgs itself. Not sure what that looks like, but I'm sure some packages must have tests. We only need to run nixci build on some known repos. But this can happen on separate PR.


Last updated: Nov 15 2024 at 13:04 UTC