Use upload-artifact to upload logs on failure
This commit is contained in:
parent
a0c61e5b4a
commit
82305a0c4f
2 changed files with 40 additions and 10 deletions
40
.github/workflows/benchmark.yml
vendored
40
.github/workflows/benchmark.yml
vendored
|
@ -79,55 +79,79 @@ jobs:
|
|||
set -o pipefail
|
||||
rm -rf /tmp/mock
|
||||
xvfb-run --auto-servernum node Mock-Server/scripts/load-test.js \
|
||||
./node_modules/.bin/electron . | tee benchmark-startup.log || \
|
||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
||||
./node_modules/.bin/electron . | tee benchmark-startup.log
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
NODE_ENV: production
|
||||
RUN_COUNT: 10
|
||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
||||
|
||||
- name: Upload startup benchmark logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: startup-logs
|
||||
path: /tmp/mock/logs
|
||||
|
||||
- name: Run send benchmarks
|
||||
run: |
|
||||
set -o pipefail
|
||||
rm -rf /tmp/mock
|
||||
xvfb-run --auto-servernum node Mock-Server/scripts/send-test.js \
|
||||
./node_modules/.bin/electron . | tee benchmark-send.log || \
|
||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
||||
./node_modules/.bin/electron . | tee benchmark-send.log
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
NODE_ENV: production
|
||||
RUN_COUNT: 100
|
||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
||||
|
||||
- name: Upload send benchmark logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: send-logs
|
||||
path: /tmp/mock/logs
|
||||
|
||||
- name: Run group send benchmarks
|
||||
run: |
|
||||
set -o pipefail
|
||||
rm -rf /tmp/mock
|
||||
xvfb-run --auto-servernum node \
|
||||
Mock-Server/scripts/group-send-test.js \
|
||||
./node_modules/.bin/electron . | tee benchmark-group-send.log || \
|
||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
||||
./node_modules/.bin/electron . | tee benchmark-group-send.log
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
NODE_ENV: production
|
||||
RUN_COUNT: 100
|
||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
||||
|
||||
- name: Upload group send benchmark logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: group-send-logs
|
||||
path: /tmp/mock/logs
|
||||
|
||||
- name: Run conversation open benchmarks
|
||||
run: |
|
||||
set -o pipefail
|
||||
rm -rf /tmp/mock
|
||||
xvfb-run --auto-servernum node \
|
||||
Mock-Server/scripts/convo-open-test.js \
|
||||
./node_modules/.bin/electron . | tee benchmark-convo-open.log || \
|
||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
||||
./node_modules/.bin/electron . | tee benchmark-convo-open.log
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
NODE_ENV: production
|
||||
RUN_COUNT: 100
|
||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
||||
|
||||
- name: Upload conversation open benchmark logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: convo-open-logs
|
||||
path: /tmp/mock/logs
|
||||
|
||||
- name: Clone benchmark repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
|
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -220,9 +220,15 @@ jobs:
|
|||
set -o pipefail
|
||||
rm -rf /tmp/mock
|
||||
xvfb-run --auto-servernum node Mock-Server/scripts/storage-service-test.js \
|
||||
./node_modules/.bin/electron . || \
|
||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
||||
./node_modules/.bin/electron .
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
NODE_ENV: production
|
||||
DEBUG: mock:scripts:*
|
||||
|
||||
- name: Upload logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: logs
|
||||
path: /tmp/mock/logs
|
||||
|
|
Loading…
Reference in a new issue