From bd312d194c31c2462d0c83bcdd858a185bbf0493 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 10 Mar 2021 16:34:22 +0200 Subject: [PATCH] ci: allow some startup time for the Autobahn server (reduce flakyness) --- .github/workflows/websockets.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/websockets.yml b/.github/workflows/websockets.yml index 05048e2d5b..2d2212fbbe 100644 --- a/.github/workflows/websockets.yml +++ b/.github/workflows/websockets.yml @@ -39,16 +39,23 @@ jobs: - name: Run autobahn services run: docker-compose -f ${{github.workspace}}/vlib/x/websocket/tests/autobahn/docker-compose.yml up -d - - name: Build client test + + - name: Wait for the service to start + run: sleep 10s + + - name: Build client test run: docker exec autobahn_client "/src/v" "/src/vlib/x/websocket/tests/autobahn/autobahn_client.v" - name: Run client test run: docker exec autobahn_client "/src/vlib/x/websocket/tests/autobahn/autobahn_client" + - name: Build client wss test run: docker exec autobahn_client "/src/v" "/src/vlib/x/websocket/tests/autobahn/autobahn_client_wss.v" + - name: Run client wss test run: docker exec autobahn_client "/src/vlib/x/websocket/tests/autobahn/autobahn_client_wss" - name: Run server test run: docker exec autobahn_server "wstest" "-m" "fuzzingclient" "-s" "/config/fuzzingclient.json" + - name: Copy reports run: docker cp autobahn_server:/reports ${{github.workspace}}/reports - name: Copy reports wss @@ -63,21 +70,25 @@ jobs: with: name: full report path: ${{github.workspace}}/reports + - name: Publish report client uses: actions/upload-artifact@v2 with: name: client path: ${{github.workspace}}/reports/clients/index.html + - name: Publish report server uses: actions/upload-artifact@v2 with: name: server path: ${{github.workspace}}/reports/servers/index.html + - name: Publish all reports WSS uses: actions/upload-artifact@v2 with: name: full report wss path: ${{github.workspace}}/reports_wss + - name: Publish report client wss uses: actions/upload-artifact@v2 with: