summaryrefslogtreecommitdiff
path: root/ci/parse.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* ci/parse: fix potential race condition•••The parse check runs multiple `nix-instantiate` processes in parallel - and they can error out with "SQLite database '...' is busy" while setting up the state directories. This was observed once locally. Initialising the store should fix this. Wolfgang Walther2025-10-181-0/+1
* ci/parse: only show first error•••There is no point in running the much slower `parse-each` part for each interpreter/version. The CI job is not meant as a development tool that should report all parse errors at once, but as a confirmation that no parse errors are present on *different interpreter versions*. Once this test fails, Eval, nixpkgs-vet and treefmt will most likely fail as well - with more information for multiple parse errors. Wolfgang Walther2025-10-181-15/+5
* ci/parse: init•••The nix-parse workflow can now be run locally the same way as in CI. To do this, the CI's workflow was slightly adjusted. Instead of testing only the changed files, we're now testing all files in the repository. This is possible in two ways: 1. By calling nix-instantiate once with all files as arguments. This will be rather fast, but only the first error is shown before it errors out. 2. By calling nix-instantiate once for each file. This will be much slower, but has the advantage that we see all errors at once. To avoid running the long variant every time, we first do a quick check with the fast version. If that fails, we run the slower one to report the errors. This gives us the best of both. Wolfgang Walther2025-05-111-0/+43