Skip to content

Catch OperationCanceledException in both command loops #1850

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

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

andyleejordan
Copy link
Member

Our flaky extension command test seems to be flaky because sometimes another task gets queued, and since it runs in the foreground it cancels that task. Interactively, this happens in the first loop (with DoOneRepl) which catches the cancellation exception; but when under tests that is a no-op, so it happens in the second loop. Hence we should duplicate the same logic and so catch that exception.

@andyleejordan andyleejordan added Issue-Enhancement A feature request (enhancement). Area-Test labels Jul 5, 2022
@andyleejordan andyleejordan requested a review from a team July 5, 2022 20:47
Our flaky extension command test seems to be flaky because sometimes
another task gets queued, and since it runs in the foreground it cancels
that task. Interactively, this happens in the first loop (with
`DoOneRepl`) which catches the cancellation exception; but when under
tests that is a no-op, so it happens in the second loop. Hence we should
duplicate the same logic and so catch that exception.
@andyleejordan andyleejordan force-pushed the andschwa/extension-test-flakiness branch from cd88700 to 01334e2 Compare July 5, 2022 20:49
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Built locally and tried a bunch of debug scenarios, no issues!

@andyleejordan andyleejordan merged commit a383c77 into main Jul 6, 2022
@andyleejordan andyleejordan deleted the andschwa/extension-test-flakiness branch July 6, 2022 19:26
@andyleejordan
Copy link
Member Author

Was part of #1793.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Test Issue-Enhancement A feature request (enhancement).
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants