SWE-AF icon indicating copy to clipboard operation
SWE-AF copied to clipboard

furrow disk-budget tests point at /bin/false and silently test nothing on macOS

Open AbirAbbas opened this issue 3 weeks ago • 0 comments

What happened

On macOS, TestAttachRefusesWhenAggregateStoreExceedsBudget and TestAttachRefusesWhenDiskNearlyFull/below_floor_refuses in go/internal/furrow fail (Attach() = (<nil>, <nil>), want disk budget error / want free-space floor error), on main as well. Test-only.

Replication

On a Mac: cd go && go test ./internal/furrow -run 'TestAttachRefuses' -count=1 -v.

Where

go/internal/furrow/manager_test.go: both tests build Options{Bin: "/bin/false"}. macOS has only /usr/bin/false, so New() logs furrow disabled: binary "/bin/false" is missing or not executable and Attach returns (nil, nil) before the budget and floor checks run. The tests skip only on Windows. The at_floor and probe_unavailable subtests pass on macOS only because furrow is disabled, so they are not testing what they claim there.

The fix

Resolve the stand-in binary portably (for example exec.LookPath("false"), or a tiny script the test writes), and fail the test if furrow ends up disabled.

Acceptance

All TestAttachRefuses* cases exercise the budget and floor checks on macOS and Linux.

AbirAbbas avatar Nov 13 '26 00:11 AbirAbbas