devops: enable core dumps on Linux CI (#2552)
This commit is contained in:
parent
7ddf66418a
commit
48088222ed
30
.github/workflows/tests.yml
vendored
30
.github/workflows/tests.yml
vendored
|
|
@ -26,6 +26,11 @@ jobs:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
# Enable core dumps in this terminal.
|
||||||
|
- run: ulimit -c unlimited
|
||||||
|
- run: mkdir -p coredumps
|
||||||
|
# Set core dump file name pattern
|
||||||
|
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
- run: xvfb-run --auto-servernum -- bash -c "npm run ccoverage 2>./chromium-linux-testrun.log"
|
- run: xvfb-run --auto-servernum -- bash -c "npm run ccoverage 2>./chromium-linux-testrun.log"
|
||||||
|
|
@ -44,6 +49,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: chromium-linux-testrun.log
|
name: chromium-linux-testrun.log
|
||||||
path: chromium-linux-testrun.log
|
path: chromium-linux-testrun.log
|
||||||
|
- uses: actions/upload-artifact@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: coredumps
|
||||||
|
path: coredumps
|
||||||
|
|
||||||
chromium_mac:
|
chromium_mac:
|
||||||
name: "Chromium Mac"
|
name: "Chromium Mac"
|
||||||
|
|
@ -110,6 +120,11 @@ jobs:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
# Enable core dumps in this terminal.
|
||||||
|
- run: ulimit -c unlimited
|
||||||
|
- run: mkdir -p coredumps
|
||||||
|
# Set core dump file name pattern
|
||||||
|
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
- run: xvfb-run --auto-servernum -- bash -c "npm run wcoverage 2>./webkit-linux-testrun.log"
|
- run: xvfb-run --auto-servernum -- bash -c "npm run wcoverage 2>./webkit-linux-testrun.log"
|
||||||
|
|
@ -128,6 +143,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: webkit-linux-testrun.log
|
name: webkit-linux-testrun.log
|
||||||
path: webkit-linux-testrun.log
|
path: webkit-linux-testrun.log
|
||||||
|
- uses: actions/upload-artifact@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: coredumps
|
||||||
|
path: coredumps
|
||||||
|
|
||||||
webkit_mac:
|
webkit_mac:
|
||||||
name: "WebKit Mac"
|
name: "WebKit Mac"
|
||||||
|
|
@ -194,6 +214,11 @@ jobs:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
# Enable core dumps in this terminal.
|
||||||
|
- run: ulimit -c unlimited
|
||||||
|
- run: mkdir -p coredumps
|
||||||
|
# Set core dump file name pattern
|
||||||
|
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
- run: xvfb-run --auto-servernum -- bash -c "npm run fcoverage 2>./firefox-linux-testrun.log"
|
- run: xvfb-run --auto-servernum -- bash -c "npm run fcoverage 2>./firefox-linux-testrun.log"
|
||||||
|
|
@ -212,6 +237,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: firefox-linux-testrun.log
|
name: firefox-linux-testrun.log
|
||||||
path: firefox-linux-testrun.log
|
path: firefox-linux-testrun.log
|
||||||
|
- uses: actions/upload-artifact@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: coredumps
|
||||||
|
path: coredumps
|
||||||
|
|
||||||
firefox_mac:
|
firefox_mac:
|
||||||
name: "Firefox Mac"
|
name: "Firefox Mac"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue