[GLOBAL] Add sleep 3 to avoid race condition 43/110443/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 22 Jul 2020 12:02:03 +0000 (14:02 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Wed, 22 Jul 2020 12:02:07 +0000 (14:02 +0200)
We are facing some random failures in our gating due to race condition
between our makefile and helm startup. To prevent that let's add a
sleep 3 after helm serve.

Yes we realize that it's not the proper solution but it's an easy win
which is very readable compared to placing a proper solution in the makefile.

Issue-ID: OOM-2511
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: If6b3332ea9f51e997f2a6057fff9d481b425104a

kubernetes/Makefile

index ee9e8d9..b25381f 100644 (file)
@@ -81,6 +81,7 @@ plugins:
 repo:
        @mkdir -p $(PACKAGE_DIR)
        @helm serve --repo-path $(PACKAGE_DIR) &
 repo:
        @mkdir -p $(PACKAGE_DIR)
        @helm serve --repo-path $(PACKAGE_DIR) &
+       @sleep 3
        @helm repo index $(PACKAGE_DIR)
        @helm repo add local http://127.0.0.1:8879
 
        @helm repo index $(PACKAGE_DIR)
        @helm repo add local http://127.0.0.1:8879