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

[ECS] Fix remove all previous active tasksets on QuickSync #4600

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

khanhtc1202
Copy link
Member

What this PR does / why we need it:

In case there are ACTIVE tasksets that are missed and still exist under service before running QuickSync on ECS application, this PR ensures to remove all previous Primary/Active tasksets, so that after QuickSync is applied, the service only contains the latest taskset as its primary.

Which issue(s) this PR fixes:

Fixes #

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):

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage: 75.00% and project coverage change: +0.06% 🎉

Comparison is base (cab88c5) 29.95% compared to head (77a05b9) 30.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4600      +/-   ##
==========================================
+ Coverage   29.95%   30.02%   +0.06%     
==========================================
  Files         220      221       +1     
  Lines       25949    25937      -12     
==========================================
+ Hits         7773     7787      +14     
+ Misses      17526    17501      -25     
+ Partials      650      649       -1     
Files Changed Coverage Δ
pkg/app/piped/platformprovider/ecs/client.go 0.00% <0.00%> (ø)
pkg/app/piped/platformprovider/ecs/ecs.go 0.00% <ø> (ø)
pkg/app/piped/platformprovider/ecs/task_set.go 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

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

Copy link
Member

@kentakozuka kentakozuka left a comment

Choose a reason for hiding this comment

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

Fabulous!

@khanhtc1202 khanhtc1202 merged commit e53569d into master Oct 6, 2023
14 checks passed
@khanhtc1202 khanhtc1202 deleted the fix-remove-active-taskset branch October 6, 2023 08:29
khanhtc1202 added a commit that referenced this pull request Oct 11, 2023
* Remove previous ACTIVE tasksets if present on quicksync

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Remove GetPrimaryTaskSet interface

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
khanhtc1202 added a commit that referenced this pull request Oct 11, 2023
* Display MySQL user defined error in API Key UI (#4590)

* Display MySQL user defined error in UI

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Fix Unexpected empty arrow function

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Add tests

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Run subtests in parallel

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

---------

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Display MySQL user defined error of piped, command, and application (#4597)

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Add service tags as takset task on create (#4598)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* [ECS] Fix remove all previous active tasksets on QuickSync (#4600)

* Remove previous ACTIVE tasksets if present on quicksync

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Remove GetPrimaryTaskSet interface

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Fix unable to fetch ECS taskset tags (#4605)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Support recreate for ECS tasks (#4608)

* Support singleton ECS task

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Rename singleton to recreate

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

---------

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Co-authored-by: Kenta Kozuka <kenta.kozuka@gmail.com>
moko-poi pushed a commit to moko-poi/pipecd that referenced this pull request Nov 3, 2023
)

* Remove previous ACTIVE tasksets if present on quicksync

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Remove GetPrimaryTaskSet interface

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: moko-poi <mokopoi44@gmail.com>
sZma5a pushed a commit to sZma5a/pipecd that referenced this pull request Nov 5, 2023
)

* Remove previous ACTIVE tasksets if present on quicksync

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

* Remove GetPrimaryTaskSet interface

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>

---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
@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