This message was deleted.
# caching
s
This message was deleted.
v
Just in case the answer is no, you could have the validation task not fail but write the result to some file and have a finalizedBy task that evaluates the result file and fails. Then it should be cached. :-)
m
yes, but it's a bit cumbersome, since it moves the failure out of its context
l
Why would you re-execute a failed task with the exact same inputs?
m
because CI
there are different pipelines, they would benefit from sharing the failure
the verification task can be slow, so it's better if we don't execute it if we know it's going to fail
l
One other way would be to separate the slow part out into its own cacheable task. I assume that’s where you collect all the dependencies and their versions. That task could always succeed, and produce an output. Then you could validate that output quickly.
m
yes, that's the solution Vampire suggested, and that I said is a bit annoying because it moves the failure out of its context. But I could do that.
l
My suggestion is slightly different in keeping the validate task failing, so the failure is not out of context.
m
right, slight variation indeed