Skip to content

reduce who fuzz target overhead - #758

Merged
ewhauser merged 1 commit into
mainfrom
ewhauser/who-fuzz-throughput
Mar 28, 2026
Merged

ewhauser merged 1 commit into
mainfrom
ewhauser/who-fuzz-throughput

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

  • avoid redundant /dev/<tty> stats in who when mesg/idle data is not rendered
  • add unit coverage for the device-metadata gating behavior
  • fuzz one who mode per input instead of running all six variants every iteration

Why

The who fuzz target was regularly stalling in CI. The target combined six command variants per fuzz iteration, and whoWriteUser also did tty metadata lookups even in output modes that never used that information. That made the target much heavier than neighboring command fuzzers and reduced useful fuzz throughput.

Impact

This keeps the same target name and coverage area, but reduces per-input work so the fuzzer can explore more inputs in the same CI budget.

Validation

  • make lint
  • go test ./internal/builtins -run "TestWhoWriteUser"
  • go test ./internal/runtime -run "^$"
  • go test ./internal/runtime -run "^$" -fuzz=FuzzWhoCommand -fuzztime=3s

@ewhauser ewhauser changed the title [codex] reduce who fuzz target overhead reduce who fuzz target overhead Mar 28, 2026
@ewhauser
ewhauser marked this pull request as ready for review March 28, 2026 14:44
@ewhauser
ewhauser merged commit 9d2a00b into main Mar 28, 2026
15 checks passed
@ewhauser
ewhauser deleted the ewhauser/who-fuzz-throughput branch March 28, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant