Nixpkgs Architecture Team Meeting #24
- Past meeting notes
- Recording
- Matrix announcement
- Recorded by: @infinisil
- Lead by: @infinisil
- Meeting notes by: @growpotkin
- Present members: @infinisil @roberth @tomberek @growpotkin @Ericson2314
Notes
Should PRs follow new convention?
-
For some period accept both old and new convention.
-
Should reviewers require the new convention?
-
@Ericson2314: This sounds like an edge case, possibly overcomitting.
-
@growpotkin and @Ericson2314:
- New PRs of new code should follow the new convention.
- Old PRs predating the convention (that should have gotten review earlier) should not be penalized.
-
Infinisil: Well the automated tool can handle the new code so maybe it’s not so bad?
- @growpotkin & @Ericson2314: Well then the tool is committing itself to handle arbitrary simple PRs going forward rather than just the old stuff that already exists.
- @infinisil:
- @Ericson2314: The PR auther can also use the tools to migrate their own PR / be responsible for fixing anything that doens’t match it.
- @infinisil: Do we need any changes then?
-
Newly added packages ought to follow new conventions, existing packages can be
updated without migration.- Use common sense, etc.
-
Non-gating PR checks to report whether a package can be auto-migrated.
- Gray check indicates failure, but won’t block a PR.
-
Make it less restrictive by removing check #2, let people migrate all the packages they want
builtins.unsafeGetAttrPos
breakage with unit/
- Moving packages causes breakage to
builtins.unsafeGetAttrPos
. - @growpotkin: Not a serious issue. It’s “unsafe” - you were told.
- @roberth: Seems like they misunderstood the routine. Non-issue.
- @Ericson2314: Non-issue.
- Finding packages should be a non-issue because they can be located
in theirunit/
directory “by name”.
Action items
-
everbody: Go through the entire RFC draft in GitHub - nixpkgs-architecture/simple-package-paths: Nix RFC draft for auto-calling packages in nixpkgs and make a PR for anything that needs changing
-
@growpotkin to test Test `all-packages.nix`-like performance to `builtins.readDir` with and without sharding · Issue #23 · nixpkgs-architecture/simple-package-paths · GitHub
- Create flat and sharded directories (with counts 10000, 100000, 1000000)
- Turn the directories to a single attribute set
hyperfine nix-instantiate --eval -E 'builtins.seq { < the set > } null'
-
@infinisil will continue writing the tooling in Add a simple tool to print Nix path references by infinisil · Pull Request #22 · nixpkgs-architecture/simple-package-paths · GitHub
-
@Ericson2314 will talk to the Cargo people on Zulip about sharding. @infinisil will have an account so @Ericson2314 can ping and not be single point of failure.
- Ask git too, maybe. They do for
.git/objects
.-
@growpotkin: I’d be shocked if GitHub knew implementation details of
git
objects.
-
@growpotkin: I’d be shocked if GitHub knew implementation details of
- Ask git too, maybe. They do for