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

agent/exec: rewrite IsTemporary() to use errors.As() #3033

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

thaJeztah
Copy link
Member

follow-up to #3024

Implements the suggestion I made in #3032 (comment)

This makes sure we detect temporary errors both with pkg/errors.Wrap()
and with native Go error wrapping.

@thaJeztah thaJeztah requested a review from dperny October 27, 2021 10:26
@thaJeztah
Copy link
Member Author

@dperny PTAL

@codecov
Copy link

codecov bot commented Oct 27, 2021

Codecov Report

Merging #3033 (5680177) into master (7956265) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3033   +/-   ##
=======================================
  Coverage   62.26%   62.27%           
=======================================
  Files         155      155           
  Lines       24531    24529    -2     
=======================================
+ Hits        15275    15276    +1     
  Misses       7659     7659           
+ Partials     1597     1594    -3     

@thaJeztah
Copy link
Member Author

@dperny PTAL

@thaJeztah
Copy link
Member Author

@dperny ptal ☺️

@thaJeztah thaJeztah changed the base branch from master to v2 June 8, 2022 10:32
@thaJeztah thaJeztah changed the base branch from v2 to master June 8, 2022 10:51
This makes sure we detect temporary errors both with pkg/errors.Wrap()
and with native Go error wrapping.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@dperny dperny merged commit 288a369 into moby:master Jul 21, 2022
@thaJeztah thaJeztah deleted the use_errors_cause branch July 21, 2022 17:42
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.

2 participants