| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
can't we make should_collect_logs to false if subcmd is not ninja here?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if should_collect_logs and subcmd == 'ninja' and {"-h", "--help", "-help"
}.isdisjoint(processed_args):Please cover this in unit tests.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | -1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
can't we make should_collect_logs to false if subcmd is not ninja here?
Yeah, considered that, too. Will refactor the code in a follow up CL. Let me submit this to fix the issue for now.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if should_collect_logs and subcmd == 'ninja' and {"-h", "--help", "-help"
}.isdisjoint(processed_args):Please cover this in unit tests.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if should_collect_logs and subcmd == 'ninja' and {"-h", "--help", "-help"
}.isdisjoint(processed_args):Junji WatanabePlease cover this in unit tests.
Which tests do you think should have caught this bug?
None right now, so I propose you create a new function that resolves this logic and test it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if should_collect_logs and subcmd == 'ninja' and {"-h", "--help", "-help"
}.isdisjoint(processed_args):Junji WatanabePlease cover this in unit tests.
Alex OvsienkoWhich tests do you think should have caught this bug?
None right now, so I propose you create a new function that resolves this logic and test it.
You can also put all this into _handle_collector and join with tests there.
if should_collect_logs and subcmd == 'ninja' and {"-h", "--help", "-help"
}.isdisjoint(processed_args):Junji WatanabePlease cover this in unit tests.
Alex OvsienkoWhich tests do you think should have caught this bug?
Alex OvsienkoNone right now, so I propose you create a new function that resolves this logic and test it.
You can also put all this into _handle_collector and join with tests there.
There are a lot of mocking required to make collector. Can you please tell me how to make healthy collector mock run?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if should_collect_logs and subcmd == 'ninja' and {"-h", "--help", "-help"
}.isdisjoint(processed_args):Junji WatanabePlease cover this in unit tests.
Alex OvsienkoWhich tests do you think should have caught this bug?
Alex OvsienkoNone right now, so I propose you create a new function that resolves this logic and test it.
Junji WatanabeYou can also put all this into _handle_collector and join with tests there.
There are a lot of mocking required to make collector. Can you please tell me how to make healthy collector mock run?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +0 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
siso: Enable collector only for ninja sub command
`siso version` and other sub commands also start siso collector
unnecessarily.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |