Comments (6)
I apologize; this is not an ofborg bug, it is a concurrency bug in the Nix test apparatus. I had it happen to me locally during a build of the TVL monorepo and it failed in a way which strongly implicates enableParallelChecking=true
:
@SuperSandro2000 thanks for nudging me to look closer here. I was wrong about this.
from ofborg.
Please always post more than the last 10 lines mentioned by ofborg. This makes debugging things harder than it needs to be.
I think the log format provided by ofborg is just not great, since it combines everything which can make it hard to find the one derivation that failed. It could also certainly be that the test itself is flaky.
from ofborg.
By searching for fail]
in https://gist.githubusercontent.com/GrahamcOfBorg/e550c0c6974dc65290e52db4934143e7/raw/1594d4c46950d777be85a7770155df2c69ce39e7/ofborg-eval-lib-tests I found the failing test:
ran test tests/filter-source.sh... [PASS]
ran test tests/misc.sh... [PASS]
ran test tests/add.sh... [FAIL]
++ nix-store --add ./dummy
+ path1=/build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
+ echo /build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
/build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
++ nix-store --add-fixed sha256 --recursive ./dummy
+ path2=/build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
+ echo /build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
/build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
+ test /build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy '!=' /build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
++ nix-store --add-fixed sha256 ./dummy
+ path3=/build/nix-test/add/store/1b0chpd74drqysiwsskw53zwlg18rcjl-dummy
+ echo /build/nix-test/add/store/1b0chpd74drqysiwsskw53zwlg18rcjl-dummy
/build/nix-test/add/store/1b0chpd74drqysiwsskw53zwlg18rcjl-dummy
+ test /build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy '!=' /build/nix-test/add/store/1b0chpd74drqysiwsskw53zwlg18rcjl-dummy
++ nix-store --add-fixed sha1 --recursive ./dummy
+ path4=/build/nix-test/add/store/dcjypnx18bpzy81n499bfgq7fl548swl-dummy
+ echo /build/nix-test/add/store/dcjypnx18bpzy81n499bfgq7fl548swl-dummy
/build/nix-test/add/store/dcjypnx18bpzy81n499bfgq7fl548swl-dummy
+ test /build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy '!=' /build/nix-test/add/store/dcjypnx18bpzy81n499bfgq7fl548swl-dummy
++ nix-store -q --hash /build/nix-test/add/store/g1qxg63zbanhv79ibby90311521d4237-dummy
+ hash1=sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p
+ echo sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p
sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p
++ nix-hash --type sha256 --base32 ./dummy
+ hash2=0lc8c8k1yc8m563wxg9ikalz4q9f56gc667qnnsjiwgiv7ya8xbw
+ echo 0lc8c8k1yc8m563wxg9ikalz4q9f56gc667qnnsjiwgiv7ya8xbw
0lc8c8k1yc8m563wxg9ikalz4q9f56gc667qnnsjiwgiv7ya8xbw
+ test sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p = sha256:0lc8c8k1yc8m563wxg9ikalz4q9f56gc667qnnsjiwgiv7ya8xbw
make: *** [mk/lib.mk:128: tests/add.sh.test] Error 1
make: *** Waiting for unfinished jobs....
ran test tests/pass-as-file.sh... [PASS]
from ofborg.
Yet the same derivation builds for me.
Were you able to reproduce this failure?
from ofborg.
I didn't try reproducing it but I assume it has probably something to with it's setup. Maybe ZFS is to blame?
from ofborg.
Maybe ZFS is to blame?
We can definitely rule that out; the machine where it happened to me uses BTRFS for /
and /nix/store
and tmpfs
for $NIX_BUILD_TOP
.
from ofborg.
Related Issues (20)
- Update `hyper` rust dependency
- `@ofborg test foo` in PR description does nothing HOT 1
- Updating to nix >=2.16 fails during tests
- Matrix notifications HOT 1
- Build `tests.*` listed as changed paths HOT 2
- Detect what to build based on touched file paths
- Builders sometimes don't have enough space in the build dir for kernel builds
- ofborg does not use `$attr.meta.maintainers` when `$attr` is in the commit message HOT 1
- Update nixpks used in flakes to a current version HOT 4
- How to reproduce jobs locally? -> improve logs HOT 3
- Ping maintainers when they get removed
- generic error: found empty hash, assuming sha256-aaa...
- ofborg doesn't apply changes from PR before kicking off builds on aarch64-darwin sometimes. HOT 3
- error: a 'x86_64-linux' … is required … but I am a 'aarch64-darwin' HOT 3
- Granular requiredSystemFeatures: build individual attributes in passthru.tests HOT 1
- `@ofborg test foo` in a "review comment" does nothing
- labeling for "11.by package-maintainter" didn't detect me as maintainer in nixpkgs
- Don't request maintainer review of closed PR
- Allow unfree redistributable builds?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofborg.