Repository navigation
fix: Fix another flaky test - #319
Conversation
|
I've executed |
|
I'll merge for now, let me know if you get failures as you're working on the nixos module. Thanks! |
|
Where can we discuss this? Here? I've just tried building a derivation from a big project with many derivations cached in private cachix cache (which is now served through ncps) and it seems to have worked. I would like to share ncps logs here but I fear they may contain private stuff, if you want I can share them privately (are you on matrix by the way?). The only messages I see are those: Details |
Yes, I'm
I see these sometimes as well on my instance (I pull from nix-community) I think they are harmless but I haven't spent time trying to fully assess that. There's also #298. |
* origin/main: chore: Update nixpkgs and Go dependencies (#320) fix: Fix another flaky test (#319) feat(auth): Add netrc support for upstream authentication (#310) fix(CI): Do not run the docker-manifest if push is disabled (#318) fix(pkg/cache): Increase the wait time around asynchronous logic (#315) fix(CI): Do not attempt to access secrets for PRs from forks (#316) feat(Docker): Add /storage as Volume in the Docker image (#313) fix(Docker): Create /tmp in the Docker image (#312) feat(run): Accept extra arguments to ncps serve (#311) fix(GitHub): The Docker build on aarch64-linux (#308) chore(deps): update determinatesystems/nix-installer-action action to v20 (#306) fix(deps): update module golang.org/x/term to v0.35.0 (#304) fix(deps): update module github.com/xsam/otelsql to v0.40.0 (#303) fix(deps): update module golang.org/x/sync to v0.17.0 (#302) fix(deps): update module github.com/prometheus/client_golang to v1.23.2 (#300)
This test is flaky because it assumes the GetNar will return after it has downloaded from upstream (given the server is serving from in-memory) but in reality it can actually take two calls which means the last_accessed_at is no longer the same as created_at but is ahead by a second or so; I fixed it by first waiting for the NAR to be in the store which will guarantee the database is in way we expect it to be.
closes #317