Closed rhyshort closed 1 month ago
Good to hear from you Rhys. Is it possible to test the condition you describe? And show it fail before and succeed after the patch?
Yeah, I'll get the test case written
done
Thanks Rhys!
@cletomartin I don't have commit rights, could you merge please? 😄
Merging, thanks @rhyshort
What
Ensure store_derived_evidence fetchers are re-run if dependent evidence is not yet available, this is achieved by get_evidence_dependency, rather than get_evidence_by_path.
Why
When running fetchers that store derived evidence, they often rely on evidence from previous fetchers, however if this evidence is not available the fetcher fails and is not automatically re-run because the store_derived_evidence function does not treat source evidence as dependency that can be re-run.
How
get_evidence_by_path
call toget_evidence_dependency
call in the decorator wrapper function.Test
Context