Skip to content

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

@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
@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 <[email protected]>

* Remove GetPrimaryTaskSet interface

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

---------

Signed-off-by: khanhtc1202 <[email protected]>
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 <[email protected]>

* Fix Unexpected empty arrow function

Signed-off-by: Kenta Kozuka <[email protected]>

* Add tests

Signed-off-by: Kenta Kozuka <[email protected]>

* Run subtests in parallel

Signed-off-by: Kenta Kozuka <[email protected]>

---------

Signed-off-by: Kenta Kozuka <[email protected]>

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

Signed-off-by: Kenta Kozuka <[email protected]>

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

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

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

* Remove previous ACTIVE tasksets if present on quicksync

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

* Remove GetPrimaryTaskSet interface

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

---------

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

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

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

* Support recreate for ECS tasks (#4608)

* Support singleton ECS task

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

* Rename singleton to recreate

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

---------

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

---------

Signed-off-by: Kenta Kozuka <[email protected]>
Signed-off-by: khanhtc1202 <[email protected]>
Co-authored-by: Kenta Kozuka <[email protected]>
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 <[email protected]>

* Remove GetPrimaryTaskSet interface

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

---------

Signed-off-by: khanhtc1202 <[email protected]>
Signed-off-by: moko-poi <[email protected]>
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 <[email protected]>

* Remove GetPrimaryTaskSet interface

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

---------

Signed-off-by: khanhtc1202 <[email protected]>
@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.

4 participants