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 unable to rollout ECS first taskset #4614

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

khanhtc1202
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Follow PR #4600

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e742f62) 30.00% compared to head (8c6060c) 29.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4614      +/-   ##
==========================================
- Coverage   30.00%   29.98%   -0.02%     
==========================================
  Files         221      221              
  Lines       25955    25955              
==========================================
- Hits         7787     7783       -4     
- Misses      17519    17523       +4     
  Partials      649      649              
Files Coverage Δ
pkg/app/piped/platformprovider/ecs/client.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@khanhtc1202 khanhtc1202 enabled auto-merge (squash) October 12, 2023 01:52
Comment on lines 278 to 280
var taskSets []*types.TaskSet
if len(activeTaskSetArns) == 0 {
return nil, fmt.Errorf("failed to get task sets of service %s: services empty", *service.ServiceName)
return taskSets, nil
Copy link
Member

Choose a reason for hiding this comment

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

imo: just return []*types.TaskSet{} and define taskSets variable to minify its scope. 👀

Copy link
Member

Choose a reason for hiding this comment

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

And it should be better to add comment for the reason.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okey, I don't have strong opinion on this 👍 Let's me adopt your suggestion

Copy link
Member Author

Choose a reason for hiding this comment

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

@ffjlabo addressed by 8c6060c

Signed-off-by: khanhtc1202 <[email protected]>
Copy link
Member

@nghialv nghialv left a comment

Choose a reason for hiding this comment

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

🐬

@khanhtc1202 khanhtc1202 merged commit 5ca7388 into master Oct 12, 2023
12 of 14 checks passed
@khanhtc1202 khanhtc1202 deleted the fix-ecs-first-rollout-failed branch October 12, 2023 03:14
khanhtc1202 added a commit that referenced this pull request Oct 12, 2023
@khanhtc1202 khanhtc1202 mentioned this pull request Oct 12, 2023
khanhtc1202 added a commit that referenced this pull request Oct 12, 2023
moko-poi pushed a commit to moko-poi/pipecd that referenced this pull request Nov 3, 2023
sZma5a pushed a commit to sZma5a/pipecd that referenced this pull request Nov 5, 2023
@github-actions github-actions bot mentioned this pull request Dec 1, 2023
@github-actions github-actions bot mentioned this pull request Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants