Use upload-artifact to upload logs on failure
This commit is contained in:
parent
a0c61e5b4a
commit
82305a0c4f
|
@ -79,55 +79,79 @@ jobs:
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
rm -rf /tmp/mock
|
rm -rf /tmp/mock
|
||||||
xvfb-run --auto-servernum node Mock-Server/scripts/load-test.js \
|
xvfb-run --auto-servernum node Mock-Server/scripts/load-test.js \
|
||||||
./node_modules/.bin/electron . | tee benchmark-startup.log || \
|
./node_modules/.bin/electron . | tee benchmark-startup.log
|
||||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
RUN_COUNT: 10
|
RUN_COUNT: 10
|
||||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
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
|
- name: Run send benchmarks
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
rm -rf /tmp/mock
|
rm -rf /tmp/mock
|
||||||
xvfb-run --auto-servernum node Mock-Server/scripts/send-test.js \
|
xvfb-run --auto-servernum node Mock-Server/scripts/send-test.js \
|
||||||
./node_modules/.bin/electron . | tee benchmark-send.log || \
|
./node_modules/.bin/electron . | tee benchmark-send.log
|
||||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
RUN_COUNT: 100
|
RUN_COUNT: 100
|
||||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
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
|
- name: Run group send benchmarks
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
rm -rf /tmp/mock
|
rm -rf /tmp/mock
|
||||||
xvfb-run --auto-servernum node \
|
xvfb-run --auto-servernum node \
|
||||||
Mock-Server/scripts/group-send-test.js \
|
Mock-Server/scripts/group-send-test.js \
|
||||||
./node_modules/.bin/electron . | tee benchmark-group-send.log || \
|
./node_modules/.bin/electron . | tee benchmark-group-send.log
|
||||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
RUN_COUNT: 100
|
RUN_COUNT: 100
|
||||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
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
|
- name: Run conversation open benchmarks
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
rm -rf /tmp/mock
|
rm -rf /tmp/mock
|
||||||
xvfb-run --auto-servernum node \
|
xvfb-run --auto-servernum node \
|
||||||
Mock-Server/scripts/convo-open-test.js \
|
Mock-Server/scripts/convo-open-test.js \
|
||||||
./node_modules/.bin/electron . | tee benchmark-convo-open.log || \
|
./node_modules/.bin/electron . | tee benchmark-convo-open.log
|
||||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
RUN_COUNT: 100
|
RUN_COUNT: 100
|
||||||
ELECTRON_ENABLE_STACK_DUMPING: on
|
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
|
- name: Clone benchmark repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -220,9 +220,15 @@ jobs:
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
rm -rf /tmp/mock
|
rm -rf /tmp/mock
|
||||||
xvfb-run --auto-servernum node Mock-Server/scripts/storage-service-test.js \
|
xvfb-run --auto-servernum node Mock-Server/scripts/storage-service-test.js \
|
||||||
./node_modules/.bin/electron . || \
|
./node_modules/.bin/electron .
|
||||||
(cat /tmp/mock/logs/{app,main}.log && exit 1)
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
DEBUG: mock:scripts:*
|
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 New Issue