Skip to content

ci/nixpkgs-vet: fix random errors#413239

Merged
philiptaron merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-fix-nixpkgs-vet
Jun 2, 2025
Merged

ci/nixpkgs-vet: fix random errors#413239
philiptaron merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-fix-nixpkgs-vet

Conversation

@wolfgangwalther
Copy link
Contributor

Every now and then, the nixpkgs-vet CI job currently fails with one of:

error: creating symlink '/build/.local/share/nix/root/nix/var/nix/gcroots/profiles' -> '/build/.local/share/nix/root/nix/var/nix/profiles': File exists

or

error: SQLite database '/build/.local/share/nix/root/nix/var/nix/db/db.sqlite' is busy

It's hard to reproduce for me, so just taking a guess with the required changes.

I bet somebody else seen those already and can tell whether my change here is likely to fix them.

Things done


Add a 👍 reaction to pull requests you find important.

Every now and then, the nixpkgs-vet CI job currently fails with one of:

  error: creating symlink
'/build/.local/share/nix/root/nix/var/nix/gcroots/profiles' ->
'/build/.local/share/nix/root/nix/var/nix/profiles': File exists

  error: SQLite database
'/build/.local/share/nix/root/nix/var/nix/db/db.sqlite' is busy

It's hard to reproduce for me, so just taking a guess with the required
changes.
@github-actions github-actions bot added 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions backport release-25.05 labels Jun 2, 2025
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 2, 2025
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm willing to be speculative here.

@philiptaron philiptaron merged commit a692301 into NixOS:master Jun 2, 2025
15 of 18 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 2, 2025

Successfully created backport PR for release-25.05:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 2, 2025
@wolfgangwalther wolfgangwalther deleted the ci-fix-nixpkgs-vet branch June 2, 2025 20:06
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 2, 2025

Successfully created backport PR for release-24.11:

@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jun 2, 2025

Backport failed for release-25.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-25.05
git worktree add -d .worktree/backport-413239-to-release-25.05 origin/release-25.05
cd .worktree/backport-413239-to-release-25.05
git switch --create backport-413239-to-release-25.05
git cherry-pick -x 3dd14d8a5176e7a790e6eeeab7bfebd49c4b8eab

@LunNova LunNova mentioned this pull request Jun 8, 2025
12 tasks
@wolfgangwalther
Copy link
Contributor Author

This seems to have happened after the fix, too: https://github.com/NixOS/nixpkgs/actions/runs/15426171510/job/43413501065

This was after merging this PR and shows the temp path used here. It seems like it happened less frequently, though, I had to go back quite a few failed workflows to find this.

@philiptaron
Copy link
Contributor

Unfortunate. I wonder if the shenanigans we use to invoke Nix as a tool vs. as a builder are the ones that trigger this unfortunate behavior. Because it's so inconsistent, it has to be a race somewhere with something, I would think.

@wolfgangwalther
Copy link
Contributor Author

Here's the upstream Nix issue that causes this: NixOS/nix#2706

@wolfgangwalther
Copy link
Contributor Author

Proposed a fix in NixOS/nix#13368.

@philiptaron
Copy link
Contributor

... and merged already! Thank you @edolstra!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants