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: transient errors for s3 artifacts: Fixes #7349 #7352

Merged
merged 7 commits into from
Jan 7, 2022

Conversation

RoelvandenBerg
Copy link
Contributor

@RoelvandenBerg RoelvandenBerg commented Dec 7, 2021

When connection problems occur while loading artifacts, the workflow init step exits and the workflow fails. This is a regression.
We propose a fix in this PR for issue: #7349.
Fixes #7349

In this PR we add an extra check for Transient errors every time the S3 Transient errors are checked.

Don't bother creating a PR until you've done this:

  • Run make pre-commit -B to fix codegen, lint, and commit message problems.

Create your PR as a draft.

  • Your PR needs to pass the required checks before it can be approved. If the check is not required (e.g. E2E tests) it
    does not need to pass.
  • Once required tests have passed, you can make it "Ready for review".
  • Say how how you tested your changes. If you changed the UI, attach screenshots.

Tips:

  • If changes were requested, and you've made them, then dismiss the review to get it looked at again.
  • Add you organization to USERS.md if you like.
  • You can ask for help!

@RoelvandenBerg RoelvandenBerg changed the title Pdok patch s3 transient error Fix transient errors for s3 artifacts fixes: #7349 Dec 7, 2021
@RoelvandenBerg RoelvandenBerg changed the title Fix transient errors for s3 artifacts fixes: #7349 fix: transient errors for s3 artifacts #7349 Dec 7, 2021
@RoelvandenBerg RoelvandenBerg changed the title fix: transient errors for s3 artifacts #7349 fix: transient errors for s3 artifacts: Fixes #7349 Dec 7, 2021
@RoelvandenBerg RoelvandenBerg marked this pull request as ready for review December 7, 2021 12:41
Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

@terrytangyuan Can you take a look here?

workflow/artifacts/s3/s3.go Outdated Show resolved Hide resolved
workflow/artifacts/s3/s3.go Outdated Show resolved Hide resolved
workflow/artifacts/s3/s3.go Outdated Show resolved Hide resolved
workflow/artifacts/s3/s3.go Outdated Show resolved Hide resolved
alexec
alexec previously requested changes Dec 13, 2021
Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

lint build is failing where running ./hack/check-logging.sh. Can you run this script and check output? It's meant to make sure you do not add Infof/Errorf logging statements.

@RoelvandenBerg
Copy link
Contributor Author

RoelvandenBerg commented Dec 16, 2021

I found a problem in my local test setup. That is fixed now. Sorry for the many fix: codestyle commits. I'm going to squash the previous (codestyle) commits run the tests again and force push them again.

@alexec
Copy link
Contributor

alexec commented Dec 16, 2021

@terrytangyuan would you be willing to own reviewing this?

@terrytangyuan terrytangyuan self-assigned this Dec 16, 2021
@alexec alexec dismissed their stale review December 17, 2021 17:42

passed to terry

@alexec alexec removed their assignment Dec 17, 2021
@terrytangyuan terrytangyuan enabled auto-merge (squash) January 4, 2022 14:27
@RoelvandenBerg
Copy link
Contributor Author

In case you want me to rebase onto master and force-push this to deal with the lint error, just let me know.

@terrytangyuan
Copy link
Member

Yes please fix the lint errors

Signed-off-by: Roel van den Berg <roel.vandenberg@kadaster.nl>
Signed-off-by: Roel van den Berg <roel.vandenberg@kadaster.nl>
Signed-off-by: Roel van den Berg <roel.vandenberg@kadaster.nl>
Signed-off-by: Roel van den Berg <roel.vandenberg@kadaster.nl>
Signed-off-by: Roel van den Berg <roel.vandenberg@kadaster.nl>
Signed-off-by: Roel van den Berg <roel.vandenberg@kadaster.nl>
Signed-off-by: Roel van den Berg <roel.vandenberg@kadaster.nl>
auto-merge was automatically disabled January 7, 2022 07:49

Head branch was pushed to by a user without write access

@terrytangyuan terrytangyuan enabled auto-merge (squash) January 7, 2022 17:36
@terrytangyuan terrytangyuan merged commit 26c1224 into argoproj:master Jan 7, 2022
@alexec alexec mentioned this pull request Jan 27, 2022
4 tasks
@ado120
Copy link

ado120 commented Jan 28, 2022

Hey all,

I have an issue currently with a s3 backend for workflow artifacts. If I run a workflow I'm able to view the pod logs for a few minutes before I get a 500 Internal Server Error. Is this related? Using Argo Workflows 3.2.4

@sarabala1979 sarabala1979 mentioned this pull request Mar 1, 2022
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.

When connection problems occur while loading artifacts, the workflow init step exits and the workflow fails.
5 participants