Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky argument parsing test #1667

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Conversation

tgeoghegan
Copy link
Contributor

The tests for collect binary argument handling were occasionally failing. In one such run (1), we observe that the test randomly generated an auth token -7ekJePnK7WXktf92bK1CQ, which starts with - and confuses clap, which tries to treat it as a series of flags rather than the value to --dap-auth-token. We rule this out by using the --dap-auth-token={token} form, as these tests already did for task IDs and other values that can start with -.

The tests for `collect` binary argument handling were occasionally
failing. In one such run ([1]), we observe that the test randomly
generated an auth token `-7ekJePnK7WXktf92bK1CQ`, which starts with `-`
and confuses `clap`, which tries to treat it as a series of flags rather
than the value to `--dap-auth-token`. We rule this out by using the
`--dap-auth-token={token}` form, as these tests already did for task IDs
and other values that can start with `-`.

[1]: https://github.com/divviup/janus/actions/runs/5733188592/job/15537476867
@tgeoghegan tgeoghegan requested a review from a team as a code owner August 2, 2023 16:43
@tgeoghegan tgeoghegan enabled auto-merge (squash) August 2, 2023 17:16
@tgeoghegan tgeoghegan merged commit 34d778d into main Aug 2, 2023
7 checks passed
@tgeoghegan tgeoghegan deleted the timg/collect-arg-flaky-test branch August 2, 2023 17:50
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.

None yet

2 participants