Skip to content

Commit dd69fe2

Browse files
committed
chore: pass polling flag to e2e tests command
1 parent c6c8691 commit dd69fe2

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.github/workflows/e2e-home-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
run: for i in {1..30}; do curl -s http://localhost:3123/healthcheck && break || sleep 1; done
9797

9898
- name: Run E2E Test Suite
99-
run: yarn dlx mocha-headless-chrome --timeout 3600000 -a no-sandbox -a disable-setuid-sandbox -f http://localhost:9001/mocha/test.html?suite=${{ inputs.suite }}
99+
run: yarn dlx mocha-headless-chrome --timeout 3600000 --polling 1000 -a no-sandbox -a disable-setuid-sandbox -f http://localhost:9001/mocha/test.html?suite=${{ inputs.suite }}
100100

101101
- name: Archive failed run logs
102102
if: ${{ failure() }}

.github/workflows/e2e-self-hosted.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,46 +25,46 @@ jobs:
2525
snjs:
2626
image: standardnotes/snjs:${{ inputs.snjs_image_tag }}
2727
ports:
28-
- 9001:9001
28+
- 9001:9001
2929

3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v4
3232

33-
- name: Set up Node
34-
uses: actions/setup-node@v4
35-
with:
36-
registry-url: 'https://registry.npmjs.org'
37-
node-version-file: '.nvmrc'
33+
- name: Set up Node
34+
uses: actions/setup-node@v4
35+
with:
36+
registry-url: 'https://registry.npmjs.org'
37+
node-version-file: '.nvmrc'
3838

39-
- name: Install
40-
run: yarn install --immutable
39+
- name: Install
40+
run: yarn install --immutable
4141

42-
- name: Run Server
43-
run: docker compose -f docker-compose.ci.yml up -d
44-
env:
45-
DB_TYPE: mysql
46-
CACHE_TYPE: redis
47-
SERVICE_PROXY_TYPE: ${{ matrix.service_proxy_type }}
42+
- name: Run Server
43+
run: docker compose -f docker-compose.ci.yml up -d
44+
env:
45+
DB_TYPE: mysql
46+
CACHE_TYPE: redis
47+
SERVICE_PROXY_TYPE: ${{ matrix.service_proxy_type }}
4848

49-
- name: Output Server Logs to File
50-
run: docker compose -f docker-compose.ci.yml logs -f > logs/docker-compose.log 2>&1 &
51-
env:
52-
DB_TYPE: mysql
53-
CACHE_TYPE: redis
54-
SERVICE_PROXY_TYPE: ${{ matrix.service_proxy_type }}
49+
- name: Output Server Logs to File
50+
run: docker compose -f docker-compose.ci.yml logs -f > logs/docker-compose.log 2>&1 &
51+
env:
52+
DB_TYPE: mysql
53+
CACHE_TYPE: redis
54+
SERVICE_PROXY_TYPE: ${{ matrix.service_proxy_type }}
5555

56-
- name: Wait for server to start
57-
run: docker/is-available.sh http://localhost:3123 $(pwd)/logs
56+
- name: Wait for server to start
57+
run: docker/is-available.sh http://localhost:3123 $(pwd)/logs
5858

59-
- name: Run E2E Test Suite
60-
run: yarn dlx mocha-headless-chrome --timeout 3600000 -a no-sandbox -a disable-setuid-sandbox -f http://localhost:9001/mocha/test.html?suite=${{ inputs.suite }}
59+
- name: Run E2E Test Suite
60+
run: yarn dlx mocha-headless-chrome --timeout 3600000 --polling 1000 -a no-sandbox -a disable-setuid-sandbox -f http://localhost:9001/mocha/test.html?suite=${{ inputs.suite }}
6161

62-
- name: Archive failed run logs
63-
if: ${{ failure() }}
64-
uses: actions/upload-artifact@v4
65-
with:
66-
name: self-hosted-failure-logs-${{ inputs.suite }}
67-
retention-days: 5
68-
path: |
69-
logs/*.err
70-
logs/*.log
62+
- name: Archive failed run logs
63+
if: ${{ failure() }}
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: self-hosted-failure-logs-${{ inputs.suite }}
67+
retention-days: 5
68+
path: |
69+
logs/*.err
70+
logs/*.log

0 commit comments

Comments
 (0)