Skip to content

Handle SkipStage Options in v1 scheduler#5559

Merged
t-kikuc merged 9 commits intomasterfrom
plugin/skip/1-use-clone
Feb 18, 2025
Merged

Handle SkipStage Options in v1 scheduler#5559
t-kikuc merged 9 commits intomasterfrom
plugin/skip/1-use-clone

Conversation

@t-kikuc
Copy link
Member

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

What this PR does:

as title.

Basically, I copied from pkg/app/piped/controller/skipstage.go and its test.

Note:

  • I added skipOn under PipelineStage, not under With.

    • That's because Piped should handle the skipOn option using git commands, and plugin-specific stage options should not have it.
  • Although I used git clone as pipedv0, we should not do so to avoid unnecessary cloning.

Why we need it:

  • To enable SkipStages features on pipedv1

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

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
…n/skip/1-use-clone

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
@ffjlabo
Copy link
Member

ffjlabo commented Feb 10, 2025

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
@codecov
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

Attention: Patch coverage is 45.83333% with 39 lines in your changes missing coverage. Please review.

Project coverage is 26.34%. Comparing base (f52a27b) to head (924d8e4).
Report is 20 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/pipedv1/controller/skipstage.go 53.06% 20 Missing and 3 partials ⚠️
pkg/app/pipedv1/controller/scheduler.go 30.43% 13 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5559      +/-   ##
==========================================
- Coverage   26.42%   26.34%   -0.09%     
==========================================
  Files         465      469       +4     
  Lines       49911    50239     +328     
==========================================
+ Hits        13189    13235      +46     
- Misses      35667    35943     +276     
- Partials     1055     1061       +6     

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

@t-kikuc
Copy link
Member Author

t-kikuc commented Feb 10, 2025

@ffjlabo
thank you, i fixed them:

Warashi
Warashi previously approved these changes Feb 17, 2025
Copy link
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,97 @@
// Copyright 2024 The PipeCD Authors.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Copyright 2024 The PipeCD Authors.
// Copyright 2025 The PipeCD Authors.

Copy link
Member Author

Choose a reason for hiding this comment

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

@khanhtc1202
Thank you, I fixed it: 924d8e4

@Warashi Sorry, please approve again 🙏

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Copy link
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

LGTM

@t-kikuc t-kikuc enabled auto-merge (squash) February 18, 2025 07:18
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.

👍

@t-kikuc t-kikuc merged commit 22194a2 into master Feb 18, 2025
17 of 18 checks passed
@t-kikuc t-kikuc deleted the plugin/skip/1-use-clone branch February 18, 2025 07:19
@github-actions github-actions bot mentioned this pull request Mar 25, 2025
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