From c9b29b03605d0ecaffce43fb6a2610bef82e2151 Mon Sep 17 00:00:00 2001 From: Phil Rzewski Date: Tue, 23 Jan 2024 19:27:09 +0000 Subject: [PATCH] Fix packets e2e test in CI (#2987) --- .github/workflows/advance-zed.yml | 6 +++++- .github/workflows/e2e.yml | 3 +++ packages/zui-player/ci.config.js | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/advance-zed.yml b/.github/workflows/advance-zed.yml index 56dfa294a5..62d735fb08 100644 --- a/.github/workflows/advance-zed.yml +++ b/.github/workflows/advance-zed.yml @@ -43,7 +43,11 @@ jobs: - run: yarn build - name: End to end tests id: playwright - run: /usr/bin/xvfb-run --auto-servernum -s "-screen 0 1280x1024x24" yarn e2e:ci + run: | + # Mock for pcap slice opening to avoid hanging Actions Runner. + # See https://github.com/brimdata/zui/pull/2987 + echo "application/vnd.tcpdump.pcap; /usr/bin/true" >> /home/runner/.mailcap + /usr/bin/xvfb-run --auto-servernum -s "-screen 0 1280x1024x24" yarn e2e:ci - run: git -c user.name='Brim Automation' -c user.email=automation@brimdata.io commit -a -m 'upgrade Zed to ${{ env.zed_ref }}' diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 7e90e48baf..5293ce6e36 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -56,6 +56,9 @@ jobs: id: playwright run: | if [ "$RUNNER_OS" = "Linux" ]; then + # Mock for pcap slice opening to avoid hanging Actions Runner. + # See https://github.com/brimdata/zui/pull/2987 + echo "application/vnd.tcpdump.pcap; /usr/bin/true" >> /home/runner/.mailcap /usr/bin/xvfb-run --auto-servernum -s "-screen 0 1280x1024x24" ${{ inputs.run-target }} else ${{ inputs.run-target }} diff --git a/packages/zui-player/ci.config.js b/packages/zui-player/ci.config.js index 54e027b56d..56ad8b80ed 100644 --- a/packages/zui-player/ci.config.js +++ b/packages/zui-player/ci.config.js @@ -3,5 +3,5 @@ const baseConfig = require('./playwright.config'); module.exports = { ...baseConfig, /* This is the list of flaky tests to ignore when running on CI */ - testIgnore: /(pool-loads|pool-groups|title-bar-buttons|packets).spec/, + testIgnore: /(pool-loads|pool-groups).spec/, };