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 means that this failure is likely due to a change external to OVS code, but the patch being tested is not at fault for this even though at the moment a failure will be reported in patchwork. Split the clang analyzer check in two jobs: - a clang-cache job, responsible for computing a cache key of the reference code and compiling a reference build, - a clang-analyzer 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 will be skipped. Fixes: d662eee ("ci: Add clang-analyze to GitHub actions.") Signed-off-by: David Marchand <[email protected]>
- Loading branch information