Skip to content

Commit

Permalink
EXTRA: Only retry functional tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brizental committed Jan 30, 2023
1 parent af50d73 commit 5aeeffe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/functional_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
with:
submodules: 'true'

- name: Install build dependecies
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
functionaltests:
name: Functional tests
needs:
needs:
- build_test_app
runs-on: ubuntu-22.04
timeout-minutes: 45
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
export HEADLESS=yes
export TZ=Europe/London
mkdir -p $ARTIFACT_DIR
xvfb-run -a npm run functionalTest -- ${{matrix.test.path}}
xvfb-run -a npm run functionalTest -- --retries 3 ${{matrix.test.path}}
env:
ARTIFACT_DIR: ${{ runner.temp }}/artifacts
MVPN_BIN: ./build/dummyvpn
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
with:
submodules: 'true'

- name: Install Qt
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
with:
name: WebAssembly Build Qt6
# Destination path
path: wasm
path: wasm

- name: Build addons
shell: bash
run: ./scripts/addon/generate_all_tests.py -q /opt/$QTVERSION/gcc_64/bin
Expand All @@ -137,4 +137,4 @@ jobs:
command: |
export PATH=$GECKOWEBDRIVER:$(npm bin):$PATH
export HEADLESS=yes
xvfb-run -a npm run functionalTestWasm -- ${{matrix.test.path}}
xvfb-run -a npm run functionalTestWasm -- --retries 3 ${{matrix.test.path}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"functionalTest": "mocha --require ./tests/functional/setupVpn.js --timeout 30000 --retries 3",
"functionalTestWasm": "mocha --require ./tests/functional/setupWasm.js --timeout 30000 --retries 3"
"functionalTest": "mocha --require ./tests/functional/setupVpn.js --timeout 30000",
"functionalTestWasm": "mocha --require ./tests/functional/setupWasm.js --timeout 30000"
},
"devDependencies": {
"body-parser": "^1.20.0",
Expand Down

0 comments on commit 5aeeffe

Please sign in to comment.