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
feat(stage): add independent tag for independency #247
Conversation
Codecov Report
@@ Coverage Diff @@
## main #247 +/- ##
=======================================
Coverage 96.93% 96.93%
=======================================
Files 57 57
Lines 6301 6306 +5
=======================================
+ Hits 6108 6113 +5
Misses 143 143
Partials 50 50
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm undecided on using continue
as a stage key. But, I've left my questions (so far), and noted some debug prints that need to be removed.
regarding namingTL;DR - i don't mind regarding designthis granular per-stage control is good, but i wonder if we should have a higher level @kneal @jbrockopp curious about your thoughts as well, since you worked a bunch on the design? |
I think the design is fine personally. I'm not sure how many options there are, we don't have a ton of explicit type keys like To be honest, when I saw the story I wasn't a big fan of it because it felt like a smallish bandaid to larger features that don't/should probably exist but I get the purpose of the functionality. So, all-in-all the implementation here seems fine to me. |
I feel like independent may be a better name, but mostly I just care that the feature exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh. I like independent
better than continue
. That feels more declarative.
Part of the effort for go-vela/community#546
Adding a
independent
tag at the stage level. When this is set totrue
, that stage will continue to run regardless of the status of the other stages. It will, however, still fail if one of its own steps fails (rulesets depending). The functionality of that will be in a separate PR ingo-vela/worker
.Below is a sample pipeline:
The names of the stages and steps in the above pipeline give a good idea as to how this pipeline should execute using the
independent
tag. In summary, the default behavior remains unchanged, while the addition ofindependent
to a specific stage will have that stage operate independently but still giving way to any ruleset specified in the steps.I would love to hear any feedback, design suggestions, or overall concerns!