Repository navigation
Backlog
Description
After #366, zig build go-stdtest -Doptimize=ReleaseSafe still fails 7 top-level tests. These are from a run on hcpu with linux/amd64, in a container. Before #366, the failures were the same on h9-linux-amd and on h9-mac (linux/arm64).
os
- TestHardLink:
linkin the in-memory overlay copies the file with an exclusive create, so the two names aren't one file (os.SameFileis false, and later writes aren't shared). Fixing this needs a design change, because the overlay tree has one name per node (src/kern/dev/overlay.zig). A host tree and a 9P2000.L mount already make real links. - TestLongPath: this fails only because of the same hard link. It checks that
link.txt's size follows a truncate ofbar.txt. - TestRootRenameAfterOpen: after the parent of an open directory fd is renamed,
openat(fd, "f")is ENOENT. The*atcalls name their dirfd by its path (fd2pathinat()insrc/abi/linux/sys.zig), and that path is stale after the rename. - TestMkdirStickyUmask:
mkdirwithS_ISVTXgivesdrwx------where the test wantsdtrwx------. Plan 9 modes have no sticky bit, and the Linux layer doesn't keep one.
syscall
- TestSCMCredentials: on a
SOCK_DGRAMsocketpair withSO_PASSCRED, asendmsgof zero bytes carryingSCM_CREDENTIALSreaches the reader with no control data, sooobnis 0 where the test wants 32.rwvandmsgSockRwvskip a zero-length write and read entirely, so no empty datagram goes through the pipe and the credential batch is never taken (scmConsumed). The stream case passes.
runtime
These look like timing tests, and both fail under load. They need a check on an idle host before anything is changed:
- TestDebugLogInterleaving: the log shards come out in a different order than the test expects.
- TestRuntimeLockMetricsAndProfile (
runtime.lock/sample-1): this fails on amd64 only, including on h9-linux-amd with 64 CPUs.
The output is in zig-out/go-stdtest/{os,syscall,runtime}.out after a run.
Metadata
Metadata
Assignees
Labels
No labels
Activity