You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: don't run test jobs after a failed or skipped build
A job with `needs:` and no `if:` gets an implicit `success()`, but an
explicit `if:` replaces it rather than adding to it. Four jobs which
carry a condition of their own therefore run whatever their dependency
did: `test` in build.yml, `test-debian` in build-debian.yml and
`debos-linux-deb` and `test-linux-deb` in linux.yml. Once the build
they need fails, the image URL they pass on is empty and LAVA jobs are
submitted against nothing, which is the exact inverse of the missing
results this branch otherwise fixes.
Check the result of the dependency in the condition. Comparing it
against 'success' rather than calling `success()` also covers the case
where the dependency was skipped, e.g. when build-linux-deb is guarded
out because the workflow runs from a fork.
Signed-off-by: Christopher Obbard <chris.obbard@oss.qualcomm.com>
0 commit comments