Skip to content

Commit

Permalink
Reduce occurrence of failed code generation in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
treiher committed Sep 6, 2023
1 parent a79edc2 commit ba0877d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/apps/spdm_responder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,17 @@ build/%/example/main: $(GENERATED)
build/generated:
mkdir -p build/generated

# The verification of the SPDM specification occasionally gets stuck in the CI. The code generation
# is attempted twice to decrease the occurrence of unsuccessful pipelines.
build/generated/%: $(SPECIFICATIONS) | build/generated $(INTEGRATION_FILES) $(RFLX)
timeout -k 60 3600 $(RFLX) generate $^ -d build/generated
timeout -k 60 1200 $(RFLX) generate $^ -d build/generated; \
RC=$$?; \
if [ $$RC -eq 124 ]; \
then \
timeout -k 60 1200 $(RFLX) generate $^ -d build/generated; \
else \
(exit $$RC); \
fi

.PHONY: lib libarm libriscv64

Expand Down

0 comments on commit ba0877d

Please sign in to comment.