You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a weird issue and I'm not entirely sure how to trigger it. Over time, tests begin to fail building more frequently. Here's an example on a brand new project:
// a.zig, b.zig, c.zig all contain the followingtest {}
I'm not sure if this problem also exists on stage1 because self-hosted recompiles things every zig build test, but stage1 just runs the cached test binaries.
Expected Behavior
There shouldn't be any build failures.
Actual Behavior
Command line output:
d:\Scratch\testfailure>zig init-exe
info: Created build.zig
info: Created src\main.zig
info: Next, try `zig build --help` or `zig build run`
[fill in the files using the above snippets]
d:\Scratch\testfailure>zig build test
All 1 tests passed.
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
error: InvalidFormat
error: test...
error: The following command exited with error code 1:
D:\Scratch\zig-install\bin\zig.exe test D:\Scratch\testfailure\src\b.zig --cache-dir D:\Scratch\testfailure\zig-cache --global-cache-dir C:\Users\jcmoyer\AppData\Local\zig --name test --enable-cache
error: the following build command failed with exit code 1:
d:\Scratch\testfailure\zig-cache\o\6be072760b1c422c81d96f0d8413e4e5\build.exe D:\Scratch\zig-install\bin\zig.exe d:\Scratch\testfailure d:\Scratch\testfailure\zig-cache C:\Users\jcmoyer\AppData\Local\zig test
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
error: InvalidFormat
error: test...
error: The following command exited with error code 1:
D:\Scratch\zig-install\bin\zig.exe test D:\Scratch\testfailure\src\b.zig --cache-dir D:\Scratch\testfailure\zig-cache --global-cache-dir C:\Users\jcmoyer\AppData\Local\zig --name test --enable-cache
error: the following build command failed with exit code 1:
d:\Scratch\testfailure\zig-cache\o\6be072760b1c422c81d96f0d8413e4e5\build.exe D:\Scratch\zig-install\bin\zig.exe d:\Scratch\testfailure d:\Scratch\testfailure\zig-cache C:\Users\jcmoyer\AppData\Local\zig test
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
All 1 tests passed.
All 1 tests passed.
d:\Scratch\testfailure>zig build test
All 1 tests passed.
error: InvalidFormat
error: test...
error: The following command exited with error code 1:
D:\Scratch\zig-install\bin\zig.exe test D:\Scratch\testfailure\src\b.zig --cache-dir D:\Scratch\testfailure\zig-cache --global-cache-dir C:\Users\jcmoyer\AppData\Local\zig --name test --enable-cache
error: the following build command failed with exit code 1:
d:\Scratch\testfailure\zig-cache\o\6be072760b1c422c81d96f0d8413e4e5\build.exe D:\Scratch\zig-install\bin\zig.exe d:\Scratch\testfailure d:\Scratch\testfailure\zig-cache C:\Users\jcmoyer\AppData\Local\zig test
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
All 1 tests passed.
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
d:\Scratch\testfailure>zig build test
LLD Link... warning(link): failed to write cache manifest when linking: LockViolation
All 1 tests passed.
error: InvalidFormat
error: test...
error: The following command exited with error code 1:
D:\Scratch\zig-install\bin\zig.exe test D:\Scratch\testfailure\src\b.zig --cache-dir D:\Scratch\testfailure\zig-cache --global-cache-dir C:\Users\jcmoyer\AppData\Local\zig --name test --enable-cache
error: the following build command failed with exit code 1:
d:\Scratch\testfailure\zig-cache\o\6be072760b1c422c81d96f0d8413e4e5\build.exe D:\Scratch\zig-install\bin\zig.exe d:\Scratch\testfailure d:\Scratch\testfailure\zig-cache C:\Users\jcmoyer\AppData\Local\zig test
The text was updated successfully, but these errors were encountered:
jcmoyer
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Aug 28, 2022
Zig Version
0.10.0-dev.3659+e5e6eb983
Steps to Reproduce
This is a weird issue and I'm not entirely sure how to trigger it. Over time, tests begin to fail building more frequently. Here's an example on a brand new project:
I'm not sure if this problem also exists on stage1 because self-hosted recompiles things every
zig build test
, but stage1 just runs the cached test binaries.Expected Behavior
There shouldn't be any build failures.
Actual Behavior
Command line output:
The text was updated successfully, but these errors were encountered: