mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: enable core dumps in the subshell (#2555)
This commit is contained in:
parent
bda6203a91
commit
49cb96c433
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
@ -26,14 +26,13 @@ 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
|
- run: mkdir -p coredumps
|
||||||
# Set core dump file name pattern
|
# Set core dump file name pattern
|
||||||
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_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"
|
# Enable core dumps in the subshell.
|
||||||
|
- run: xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run ccoverage 2>./chromium-linux-testrun.log"
|
||||||
env:
|
env:
|
||||||
DEBUG: "*"
|
DEBUG: "*"
|
||||||
# Ensure output folder exists just in case it was not created by the test run.
|
# Ensure output folder exists just in case it was not created by the test run.
|
||||||
@ -52,7 +51,7 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: coredumps
|
name: chromium-linux-coredumps
|
||||||
path: coredumps
|
path: coredumps
|
||||||
|
|
||||||
chromium_mac:
|
chromium_mac:
|
||||||
@ -120,14 +119,13 @@ 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
|
- run: mkdir -p coredumps
|
||||||
# Set core dump file name pattern
|
# Set core dump file name pattern
|
||||||
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_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"
|
# Enable core dumps in the subshell.
|
||||||
|
- run: xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run wcoverage 2>./webkit-linux-testrun.log"
|
||||||
env:
|
env:
|
||||||
DEBUG: "*,-pw:wrapped*"
|
DEBUG: "*,-pw:wrapped*"
|
||||||
# Ensure output folder exists just in case it was not created by the test run.
|
# Ensure output folder exists just in case it was not created by the test run.
|
||||||
@ -146,7 +144,7 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: coredumps
|
name: webkit-linux-coredumps
|
||||||
path: coredumps
|
path: coredumps
|
||||||
|
|
||||||
webkit_mac:
|
webkit_mac:
|
||||||
@ -214,14 +212,13 @@ 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
|
- run: mkdir -p coredumps
|
||||||
# Set core dump file name pattern
|
# Set core dump file name pattern
|
||||||
- run: sudo bash -c 'echo "$(pwd -P)/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_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"
|
# Enable core dumps in the subshell.
|
||||||
|
- run: xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run fcoverage 2>./firefox-linux-testrun.log"
|
||||||
env:
|
env:
|
||||||
DEBUG: "*"
|
DEBUG: "*"
|
||||||
# Ensure output folder exists just in case it was not created by the test run.
|
# Ensure output folder exists just in case it was not created by the test run.
|
||||||
@ -240,7 +237,7 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: coredumps
|
name: firefox-linux-coredumps
|
||||||
path: coredumps
|
path: coredumps
|
||||||
|
|
||||||
firefox_mac:
|
firefox_mac:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user