ci: Validate GTEST_FILTER readLinkAt fix on runner
CI repro (readLinkAt) / Reproduce determinate-nix test failure (push) Successful in 13m43s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-04 00:07:07 +01:00
parent 7f1bcbda2a
commit 7cf7d29f0e
2 changed files with 22 additions and 32 deletions
+10 -31
View File
@@ -28,37 +28,16 @@ jobs:
extra-substituters = https://nix-cache.nul.ie
extra-trusted-public-keys = nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4=
- name: Nix build-dir / store settings
- name: Build devshell with full logs
run: |
echo "===== nix config (build-dir / store / sandbox) ====="
nix config show 2>/dev/null | grep -iE 'build-dir|store|sandbox|temp' || true
echo "===== TMPDIR/env ====="
echo "TMPDIR=$TMPDIR RUNNER_TEMP=$RUNNER_TEMP GITHUB_WORKSPACE=$GITHUB_WORKSPACE HOME=$HOME"
set -eo pipefail
# With the determinateOverlay GTEST_FILTER=-readLinkAt.* fix in flake.nix,
# nix-util-tests-run should skip the long-symlink test and the build should
# go green on this XFS-backed runner.
nix build -L --keep-going --no-link .#ci.x86_64-linux.shell 2>&1 | tee repro.log
- name: Mount table
- name: Show readLinkAt result
if: always()
run: |
echo "===== df -T ====="
df -T || df -h
echo "===== mount ====="
mount 2>/dev/null | grep -iE 'overlay|tmpfs|/nix|ext4|xfs|btrfs|9p|fuse' || mount
- name: Symlink-length probe
run: |
# Determine, per candidate dir, the longest symlink target that can be
# created (the test needs PATH_MAX/2 = 2048 and PATH_MAX-1 = 4095).
probe() {
local d="$1"
[ -d "$d" ] || { echo " $d: (absent)"; return; }
local fstype; fstype=$(stat -f -c %T "$d" 2>/dev/null || echo '?')
local res=""
for n in 256 1000 2048 3000 4095; do
local tgt; tgt=$(head -c "$n" < /dev/zero | tr '\0' 'y')
if ln -sf "$tgt" "$d/.symtest.$n" 2>/dev/null; then res="$res $n"; else res="$res !$n"; fi
rm -f "$d/.symtest.$n" 2>/dev/null || true
done
echo " $d [$fstype]:$res"
}
echo "===== max symlink target length per dir (n = ok, !n = ENAMETOOLONG) ====="
for d in /tmp /var/tmp /dev/shm /nix /nix/var "$HOME" "$RUNNER_TEMP" "$GITHUB_WORKSPACE" /root /build; do
probe "$d"
done
echo "===== nix-util-tests outcome ====="
grep -nE 'Google Test filter|readLinkAt|tests ran|PASSED|FAILED|File name too long' repro.log 2>/dev/null | tail -20 || true