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

Do not retry CLI process when unexpected error is received #2200

Merged
merged 5 commits into from
Aug 17, 2022

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Aug 17, 2022

Extension of #2194 which is part of #2177.

Whilst talking with Ruslan in the DVC cross-team meeting we decided to exclude all unexpected errors from retries. Made more sense to make this the only change instead of branching off #2194.

For unexpected errors default data is now returned and the extension continues as normal. The user will then end up in this state until they make a commit:

image

Demo

Screen.Recording.2022-08-16.at.3.36.34.pm.mov

Note: list, diff and status all return empty objects under these circumstances.

@mattseddon mattseddon added the bug Something isn't working label Aug 17, 2022
@mattseddon mattseddon self-assigned this Aug 17, 2022
@mattseddon mattseddon changed the base branch from main to do-not-retry-when-empty August 17, 2022 00:21
@mattseddon mattseddon changed the base branch from do-not-retry-when-empty to main August 17, 2022 00:21
@mattseddon mattseddon force-pushed the do-not-retry-unexpected branch from 873b149 to 3f0d7ed Compare August 17, 2022 00:46
@mattseddon mattseddon marked this pull request as ready for review August 17, 2022 00:50
@mattseddon mattseddon enabled auto-merge (squash) August 17, 2022 22:03
@codeclimate
Copy link

codeclimate bot commented Aug 17, 2022

Code Climate has analyzed commit 8d8e8b2 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.7% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit e343265 into main Aug 17, 2022
@mattseddon mattseddon deleted the do-not-retry-unexpected branch August 17, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants