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

[WAIT,SDK] Implemented Wait stage with SDK #5586

Merged
merged 17 commits into from
Feb 19, 2025
Merged

Conversation

t-kikuc
Copy link
Member

@t-kikuc t-kikuc commented Feb 19, 2025

What this PR does:

  • impl wait stage plugin based on the SDK
  • refine the SDK
  • Pass only PipelineStage.With in scheduler

Why we need it:

it's simpler to use SDK for stage plugins

Which issue(s) this PR fixes:

Part of #5367

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

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

👍

Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 15.66265% with 140 lines in your changes missing coverage. Please review.

Project coverage is 26.27%. Comparing base (c527965) to head (7410c52).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/plugin/sdk/deployment.go 0.00% 69 Missing ⚠️
pkg/app/pipedv1/plugin/wait/wait.go 36.06% 39 Missing ⚠️
pkg/app/pipedv1/plugin/wait/plugin.go 0.00% 25 Missing ⚠️
pkg/app/pipedv1/plugin/wait/main.go 0.00% 4 Missing ⚠️
pkg/app/pipedv1/plugin/example/plugin.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5586      +/-   ##
==========================================
+ Coverage   26.24%   26.27%   +0.02%     
==========================================
  Files         471      470       -1     
  Lines       50421    50353      -68     
==========================================
- Hits        13235    13228       -7     
+ Misses      36125    36065      -60     
+ Partials     1061     1060       -1     

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

@t-kikuc t-kikuc merged commit 3c5a451 into master Feb 19, 2025
15 of 18 checks passed
Comment on lines +187 to +191
// b, err := json.Marshal(stage)
// if err != nil {
// return nil, false
// }
// return b, true
Copy link
Contributor

Choose a reason for hiding this comment

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

📝
We should remove these lines in another PR

@t-kikuc t-kikuc deleted the plugin/waitapproval/1-init branch February 19, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants