-
Notifications
You must be signed in to change notification settings - Fork 58
Retrigger step does not keep context #177
Comments
Thanks for the feedback! You hit one of the rough spots where I haven't figured out a good solution yet (and I'd be happy for ideas). To answer your question first: But your question also prompted me to think about this problem again after a while so maybe there's a way to improve LambdaCD to support this better:
|
Thanks for your in-depth answer! Yes, my scenario does seem like the same that is described in #36. I think the point about steps running arbitrary code illustrates well why this is a hard problem. To be clear what my use case was:
So running from an earlier step wouldn't help me. And it wasn't a big deal either. But my intuition about how the retriggering would work was a bit off. :) I am a bit curious: What use cases you have for the retriggering the way it works now? |
I have found that adding an immutable fileset to a pipeline can improve things with respect to build output. There's still housekeeping to do w.r.t. artifacts but using filesets makes it easy to do so in a functionally idiomatic way. |
@crimeminister filesets look really interesting, thanks for the suggestion! Do you have an example what that looks like in an actual pipeline? @magnars I have seen a lot of people write pipelines where a single step runs unit-tests and builds a complete artifact (jar, Docker image) and then has subsequent steps to deploy to environments and run additional tests against those. There, retriggering isn't too much of a problem since the steps are more self contained (and slower). But I'd actually prefer your approach of more fine grained steps that might depend on each other, both for speed of development and visibility so I'll definitely keep this issue open to find a way how LambdaCD can support this better. |
Thanks for the clarification, that makes sense. I'm glad to hear that you want to support smaller steps as well. :) |
Thanks for making a cool project. LambdaCD is just what I was looking for.
When retriggering a step in a build, a new build is started from that point. However, since the context changes, the files generated by earlier steps are missing.
This might not be a bug, but it did break my expectations. :-)
I would expect the old context to be reused in the new build, so that I could try a broken build again.
What am I missing?
The text was updated successfully, but these errors were encountered: