Skip to content

fix(search): stabilize active-ingest retries #136

fix(search): stabilize active-ingest retries

fix(search): stabilize active-ingest retries #136

name: ci-monitor-browser-mocked
# This check is intentionally visible but not required by branch protection until
# its reliability meets the Track H promotion criteria from issue #477.
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
mocked-browser:
name: monitor-browser-mocked
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Detect mocked-browser changes
id: changes
if: github.event_name == 'pull_request'
uses: dorny/paths-filter@v3
with:
filters: |
monitor:
- '.github/workflows/ci-monitor-browser-mocked.yml'
- 'web/monitor/**'
- name: Install pinned Bun runtime
if: github.event_name != 'pull_request' || steps.changes.outputs.monitor == 'true'
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.9
- name: Install locked monitor dependencies
if: github.event_name != 'pull_request' || steps.changes.outputs.monitor == 'true'
working-directory: web/monitor
run: bun install --frozen-lockfile
- name: Install Playwright 1.58.2 Chromium
if: github.event_name != 'pull_request' || steps.changes.outputs.monitor == 'true'
working-directory: web/monitor
run: bunx playwright@1.58.2 install --with-deps chromium
- name: Run exactly 2 mocked browser cases with no retries
if: github.event_name != 'pull_request' || steps.changes.outputs.monitor == 'true'
working-directory: web/monitor
run: bun run test:e2e:mocked -- --workers=1 --retries=0
- name: Skip mocked browser suite for unrelated changes
if: github.event_name == 'pull_request' && steps.changes.outputs.monitor != 'true'
run: echo 'Skipping mocked browser suite because no monitor paths changed.'