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

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

Open AbirAbbas opened this issue 3 weeks ago • 1 comments

What happened

On macOS two furrow manager tests fail on main and pass on Linux: TestAttachRefusesWhenAggregateStoreExceedsBudget (manager_test.go:291: Attach() = (<nil>, <nil>), want disk budget error) and TestAttachRefusesWhenDiskNearlyFull/below_floor_refuses (manager_test.go:332).

Replication

On a Mac: cd go && go test ./internal/furrow -run 'TestAttachRefusesWhen' -count=1 -v. The log shows furrow disabled: binary "/bin/false" is missing or not executable.

Where

The tests pass Options{Bin: "/bin/false"}; macOS has false only at /usr/bin/false, so New() disables furrow and Attach returns (nil, nil) before the budget and floor checks. They skip only on Windows. The at_floor and probe_unavailable subtests pass on macOS only because furrow is disabled, so they test nothing there.

The fix

Resolve the stand-in binary with exec.LookPath("false") (or build a tiny fixture binary) instead of a hard-coded path.

Acceptance

All TestAttachRefusesWhen* subtests exercise the budget and floor checks on macOS and Linux.

AbirAbbas avatar Nov 13 '26 00:11 AbirAbbas

Duplicate of #193, which has the fuller write-up. Filed twice by mistake during the 2026-11-13 macOS check.

AbirAbbas avatar Nov 16 '26 13:11 AbirAbbas