Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: Skip clang-analyze when reference generation fails.
By assuming that OVS maintainers never push changes that breaks compilation in GHA (which seems to be the case so far), it seems natural to assume that generating the reference for clang analyzer should always work. If generating this reference fails, it is likely due to a change external to OVS code, and not due to the series being tested (though this series gets flagged with an error in patchwork). Such a situation is often hit in the dpdk-latest branch when some DPDK API change breaks OVS compilation and no OVS fix is merged yet. Split the clang analyzer check in two jobs: - a clang-analyze-cache job, responsible for computing a cache key of the reference code and compiling a reference build, - a clang-analyze job, which depends on the former job, responsible for compiling the current patch and comparing the result against the reference, The cache generation won't be reported as a failure at the OVS build step (using continue-on-error:). If such a failure happens, the cache-analyzer job is skipped. Fixes: d662eee ("ci: Add clang-analyze to GitHub actions.") Signed-off-by: David Marchand <[email protected]>
- Loading branch information