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

Wrap errors from child workflow in canary sanity workflow #6279

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

fimanishi
Copy link
Contributor

What changed?
Wrap errors when joining Child Workflows and joined all errors to sanity error

Why?
Previously only the last error from the child workflows was being set to sanity error, and it was not clear if the error was from a child workflow or from sanity workflow.

How did you test it?

Potential risks

Release notes

Documentation Changes

What changed?

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

What changed?
Wrap errors when joining Child Workflows and joined all errors to sanity error

Why?
Previously only the last error from the child workflows was being set to sanity error, and it was not clear if the error was from a child workflow or from sanity workflow.

How did you test it?

Potential risks

Release notes

Documentation Changes
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.10%. Comparing base (2bf77c9) to head (dbd6b3d).
Report is 20 commits behind head on master.

Additional details and impacted files

see 23 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bf77c9...dbd6b3d. Read the comment docs.

canary/sanity.go Outdated
@@ -113,7 +117,7 @@ func joinChildWorkflows(ctx workflow.Context, names []string, selector workflow.
var err1 error
resultC.Receive(ctx, &err1)
if err1 != nil {
err = err1
err = errors.Join(err, err1)
Copy link
Contributor

Choose a reason for hiding this comment

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

We use multierr.Append in other places. Please check the differences. I'd go with what we have unless we truly need errors.Join here for some reason

@fimanishi fimanishi merged commit ef51975 into uber:master Sep 12, 2024
20 checks passed
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