From 76496234282afd52dc4345ee27de70ef98b7b035 Mon Sep 17 00:00:00 2001 From: Subhransu <47723536+Shubhranshu153@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:33:31 -0800 Subject: [PATCH] fix: Add retries and fix vm init (#1184) Signed-off-by: Shubharanshu Mahapatra --- .github/workflows/ci.yaml | 2 ++ Makefile | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7a9a37240..bbf8771bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,7 @@ on: - 'deps/**' - 'finch.yaml.d/**' - 'winres' + - 'Makefile*' - '!contrib/hello-finch/**' pull_request: branches: @@ -31,6 +32,7 @@ on: - 'deps/**' - 'finch.yaml.d/**' - 'winres' + - 'Makefile*' - '!contrib/hello-finch/**' workflow_dispatch: permissions: diff --git a/Makefile b/Makefile index 06e53cfc0..47a05cac1 100644 --- a/Makefile +++ b/Makefile @@ -266,15 +266,15 @@ test-e2e: test-e2e-vm-serial test-e2e-container .PHONY: test-e2e-vm-serial test-e2e-vm-serial: - go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/vm -test.v -ginkgo.v -ginkgo.timeout=2h --installed="$(INSTALLED)" + go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/vm -test.v -ginkgo.v -ginkgo.timeout=2h -ginkgo.flake-attempts=3 --installed="$(INSTALLED)" .PHONY: test-e2e-container test-e2e-container: - go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/container -test.v -ginkgo.v -ginkgo.timeout=2h --installed="$(INSTALLED)" + go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/container -test.v -ginkgo.v -ginkgo.timeout=2h -ginkgo.flake-attempts=3 --installed="$(INSTALLED)" .PHONY: test-e2e-vm test-e2e-vm: - go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/vm -test.v -ginkgo.v -ginkgo.timeout=2h --installed="$(INSTALLED)" --registry="$(REGISTRY)" + go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/vm -test.v -ginkgo.v -ginkgo.timeout=2h -ginkgo.flake-attempts=3 --installed="$(INSTALLED)" --registry="$(REGISTRY)" .PHONY: test-benchmark test-benchmark: