Skip to content

Fix notify_command.go to pass argsallowing --test_sharding_strategy=disabled with --#816

Open
Aghassi wants to merge 3 commits intobazelbuild:mainfrom
Aghassi:patch-2
Open

Fix notify_command.go to pass argsallowing --test_sharding_strategy=disabled with --#816
Aghassi wants to merge 3 commits intobazelbuild:mainfrom
Aghassi:patch-2

Conversation

@Aghassi
Copy link
Contributor

@Aghassi Aghassi commented Feb 8, 2026

#775

Reopens the above commit

Fixes a bug introduced by https://github.com/bazelbuild/bazel-watcher/pull/744 where on bazel run with sharding enabled the process would fail to launch. this also requires the user to use the -- attribute before passing the flag so it gets sorted into args.

If this is not passed, the CLI will not discern between bazelArgs and args that come after --. Once this is landed, you can test a target with sharding so long as you do ibazel run //path/to/target:test -- and then whatever flags you want.

Fixes a bug introduced by bazelbuild#744 where on bazel run with sharding enabled the process would fail to launch. this also requires the user to use the `--` attribute before passing the flag so it gets sorted into args
add new argument to test
@Aghassi Aghassi requested a review from achew22 as a code owner February 8, 2026 16:58
Include a focused Start() test for args passed after double-dash, and update existing expectations to reflect the extra SetArguments call.
@Aghassi
Copy link
Contributor Author

Aghassi commented Feb 8, 2026

@achew22 Let me know if the test is what you envisioned.

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