bazel-watcher icon indicating copy to clipboard operation
bazel-watcher copied to clipboard

Fix notify_command.go to pass `args`allowing `--test_sharding_strategy=disabled` with `--`

Open Aghassi opened this issue 7 months ago • 6 comments

Fixes a bug introduced by #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.

Aghassi avatar Jul 21 '25 20:07 Aghassi

@achew22 I found an issue with my prior change and would like to upstream what I believe the fix is. Would you mind taking a look?

Aghassi avatar Jul 21 '25 20:07 Aghassi

Hey @Aghassi,

I'm interested in this change but unsure of how it affects things. Would it be possible to add a test case that demonstrates the old, improper behavior? I'd love to learn what's gone wrong here

achew22 avatar Jul 22 '25 00:07 achew22

Sure I can try and add a test case. The basic gist from the logic I followed is that in this case this arg needs to be passed to bazel run and something about how the separation logic cascades basically filters this out of the run command. I presume because it looks like a test flag

Aghassi avatar Jul 22 '25 20:07 Aghassi

Stale pull request message

github-actions[bot] avatar Sep 21 '25 01:09 github-actions[bot]

Not stale, I've just not had a chance to prioritize this relative to other work. This is still and issue that needs fixing. I need to provide a test and have not had a chance

Aghassi avatar Sep 21 '25 11:09 Aghassi

Stale pull request message

github-actions[bot] avatar Nov 22 '25 01:11 github-actions[bot]