forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 3
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. With this split, some cleanups can be done: - a shallow git clone is enough for the reference generation, - the reference generation can be built in the current directory, Fixes: d662eee ("ci: Add clang-analyze to GitHub actions.") Signed-off-by: David Marchand <[email protected]>
- Loading branch information
1 parent
33fa349
commit a03a7df
Showing
2 changed files
with
67 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters