Skip to content

fix(cli): fuzz only the requested package - #2327

Open
J4ck1e2000 wants to merge 1 commit into
nsgo-dev:mainfrom
J4ck1e2000:fix/issue-2268
Open

J4ck1e2000 wants to merge 1 commit into
nsgo-dev:mainfrom
J4ck1e2000:fix/issue-2268

Conversation

@J4ck1e2000

Copy link
Copy Markdown
Contributor

Summary

Headless nsgo test -fuzz (also -test.fuzz) fuzzes the selected directory's package even when it has subpackages. Catalog preparation and package probing use that same package, and fuzzing does not run the extra NSGo dev-client pass. Ordinary runs still test the whole tree; platform runs still reject fuzzing flags.

Fixes #2268.

Targets

  • Shared code (nsgo tool)

Screenshots

None; CLI behavior only.

Verification

On macOS arm64:

  • go tool nsgo check ./cmd/nsgo
  • go tool nsgo test -run '^(TestRunTests(FuzzesOnlyNamedPackage|KeepsTheTreeWithFlags|IncludesTheDevClient)|Test(TestFuzzEnabled|TestTagArgs|TargetTestsRejectFuzzFlags|PackageArgs))$' ./cmd/nsgo -- -count=1 (7 passed, including real fuzz execution in a multi-package fixture)

Full repository tests were not run locally.

Checklist

  • Conventional Commit title.
  • Tool architecture, English and Chinese testing guides, app-author skill, and a changelog fragment updated.
  • No third-party code, assets, or dependency changes.

🤖 openai-codex/gpt-6.2-sol

Select one package for active headless fuzzing without changing ordinary recursive test runs or invoking the dev-client repeat.

Fixes nsgo-dev#2268
@github-actions github-actions Bot added size/M bug Something isn't working documentation Improvements or additions to documentation cli labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cli documentation Improvements or additions to documentation size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cmd/nsgo: nsgo test always runs go test ./..., so -fuzz fails in any directory with subpackages

1 participant