From 10a9eef8328964c19623519c1d8964096ed951bf Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Tue, 30 Jun 2020 18:51:36 -0700 Subject: [PATCH] chore(rpc): add a channel bot (#2773) --- .github/workflows/tests.yml | 42 ++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 538a191fd5..6ab77f9076 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -328,9 +328,10 @@ jobs: # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR # Wrap `npm run` in a subshell to redirect STDERR to file. # Enable core dumps in the subshell. - - run: xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && HEADLESS=false npm run test -- --line-break=100 2>./headful-linux-testrun.log" + - run: xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run test -- --line-break=100 2>./headful-linux-testrun.log" env: DEBUG: "*" + HEADLESS: "false" - uses: actions/upload-artifact@v1 if: failure() with: @@ -341,3 +342,42 @@ jobs: with: name: headful-linux-coredumps path: coredumps + + channel_linux: + name: "Channel Chromium Linux" + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 10 + - uses: microsoft/playwright-github-action@v1 + - run: npm ci + - 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 + # Wrap `npm run` in a subshell to redirect STDERR to file. + # Enable core dumps in the subshell. + - run: xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run ctest 2>./channel-linux-testrun.log" + env: + DEBUG: "*" + PWCHANNEL: "1" + # Ensure output folder exists just in case it was not created by the test run. + - run: node -e "require('fs').mkdirSync(require('path').join('test', 'output-chromium'), {recursive:true})" + if: failure() + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: channel-linux-output + path: test/output-channel + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: channel-linux-testrun.log + path: channel-linux-testrun.log + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: channel-linux-coredumps + path: coredumps