Compare commits
3 Commits
nrc-std-ax
...
kurt-debug
Author | SHA1 | Date | |
---|---|---|---|
a1157a8f99 | |||
c2c81f3cbe | |||
0303445c0e |
70
.github/workflows/playwright.yml
vendored
70
.github/workflows/playwright.yml
vendored
@ -183,6 +183,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: test-results-${{ matrix.os }}-${{ matrix.shardIndex }}-${{ github.sha }}
|
name: test-results-${{ matrix.os }}-${{ matrix.shardIndex }}-${{ github.sha }}
|
||||||
path: test-results/
|
path: test-results/
|
||||||
|
- name: Debug test-results folder
|
||||||
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ -d "test-results" ]]; then
|
||||||
|
echo "Contents of test-results folder:"
|
||||||
|
ls -la test-results
|
||||||
|
if [[ -f "test-results/.last-run.json" ]]; then
|
||||||
|
echo "Contents of test-results/.last-run.json:"
|
||||||
|
cat test-results/.last-run.json
|
||||||
|
else
|
||||||
|
echo "test-results/.last-run.json does not exist"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "test-results folder does not exist"
|
||||||
|
fi
|
||||||
- name: Run playwright/chrome flow (with retries)
|
- name: Run playwright/chrome flow (with retries)
|
||||||
id: retry
|
id: retry
|
||||||
if: ${{ !cancelled() && (success() || failure()) }}
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
@ -197,7 +213,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
retry=1
|
retry=1
|
||||||
max_retrys=4
|
max_retrys=1
|
||||||
|
|
||||||
# retry failed tests, doing our own retries because using inbuilt playwright retries causes connection issues
|
# retry failed tests, doing our own retries because using inbuilt playwright retries causes connection issues
|
||||||
while [[ $retry -le $max_retrys ]]; do
|
while [[ $retry -le $max_retrys ]]; do
|
||||||
@ -242,6 +258,22 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
node playwrightProcess.mjs | tee /tmp/github-actions.log
|
node playwrightProcess.mjs | tee /tmp/github-actions.log
|
||||||
|
- name: Debug test-results folder
|
||||||
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ -d "test-results" ]]; then
|
||||||
|
echo "Contents of test-results folder:"
|
||||||
|
ls -la test-results
|
||||||
|
if [[ -f "test-results/.last-run.json" ]]; then
|
||||||
|
echo "Contents of test-results/.last-run.json:"
|
||||||
|
cat test-results/.last-run.json
|
||||||
|
else
|
||||||
|
echo "test-results/.last-run.json does not exist"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "test-results folder does not exist"
|
||||||
|
fi
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
@ -352,8 +384,24 @@ jobs:
|
|||||||
if: ${{ !cancelled() && (success() || failure()) }}
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
name: test-results-${{ matrix.os }}-${{ github.sha }}
|
name: test-results-electron-${{ matrix.os }}-${{ github.sha }}
|
||||||
path: test-results/
|
path: test-results/
|
||||||
|
- name: Debug test-results folder
|
||||||
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ -d "test-results" ]]; then
|
||||||
|
echo "Contents of test-results folder:"
|
||||||
|
ls -la test-results
|
||||||
|
if [[ -f "test-results/.last-run.json" ]]; then
|
||||||
|
echo "Contents of test-results/.last-run.json:"
|
||||||
|
cat test-results/.last-run.json
|
||||||
|
else
|
||||||
|
echo "test-results/.last-run.json does not exist"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "test-results folder does not exist"
|
||||||
|
fi
|
||||||
- name: Run electron tests (with retries)
|
- name: Run electron tests (with retries)
|
||||||
id: retry
|
id: retry
|
||||||
if: ${{ !cancelled() && (success() || failure()) }}
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
@ -372,7 +420,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
retry=1
|
retry=1
|
||||||
max_retrys=2
|
max_retrys=1
|
||||||
|
|
||||||
# retry failed tests, doing our own retries because using inbuilt playwright retries causes connection issues
|
# retry failed tests, doing our own retries because using inbuilt playwright retries causes connection issues
|
||||||
while [[ $retry -le $max_retrys ]]; do
|
while [[ $retry -le $max_retrys ]]; do
|
||||||
@ -422,6 +470,22 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
node playwrightProcess.mjs | tee /tmp/github-actions.log
|
node playwrightProcess.mjs | tee /tmp/github-actions.log
|
||||||
|
- name: Debug test-results folder
|
||||||
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ -d "test-results" ]]; then
|
||||||
|
echo "Contents of test-results folder:"
|
||||||
|
ls -la test-results
|
||||||
|
if [[ -f "test-results/.last-run.json" ]]; then
|
||||||
|
echo "Contents of test-results/.last-run.json:"
|
||||||
|
cat test-results/.last-run.json
|
||||||
|
else
|
||||||
|
echo "test-results/.last-run.json does not exist"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "test-results folder does not exist"
|
||||||
|
fi
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: ${{ !cancelled() && (success() || failure()) }}
|
if: ${{ !cancelled() && (success() || failure()) }}
|
||||||
with:
|
with:
|
||||||
|
@ -19,7 +19,7 @@ export default defineConfig({
|
|||||||
['dot'],
|
['dot'],
|
||||||
['list'],
|
['list'],
|
||||||
['json', { outputFile: './test-results/report.json' }],
|
['json', { outputFile: './test-results/report.json' }],
|
||||||
['html'],
|
['html', {open: 'never'}],
|
||||||
],
|
],
|
||||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||||
use: {
|
use: {
|
||||||
|
Reference in New Issue
Block a user