name: Live Tests # The live-Firefox sweep is not a per-PR gate (2026-10-02 reset, # kb/research/step-back-2026-10-02.md §5). It runs nightly on `main`, on # demand, and at release. A red nightly gets one kb/backlog.md line; a test # that fails and passes on one re-run is quarantined with # `#[ignore = "flaky: see kb/backlog.md"]` — never an iteration plan. # # Third-party-site tests (BBC, Guardian, HN, Wikipedia, MDN, …) additionally # need FF_RDP_LIVE_SITES_TESTS=1 and run only in the weekly `sites` job: those # pages change and go down on their own schedule. on: workflow_dispatch: release: types: [published] schedule: # Nightly sweep. - cron: "0 3 * * *" # Weekly third-party-site canary (Monday). - cron: "0 4 * * 1" env: CARGO_TERM_COLOR: always FF_RDP_LIVE_TESTS: "1" FF_RDP_LIVE_NETWORK_TESTS: "1" jobs: live-tests: # Every trigger except the weekly sites cron. if: github.event_name != 'schedule' || github.event.schedule == '0 3 * * *' runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 - name: Install Firefox uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2 - name: Verify Firefox installation run: firefox --version - name: Build ff-rdp run: cargo build -p ff-rdp-cli -p xtask --bins - name: Run the live sweep # `live-sweep` reports env-gated tests as `ignored` instead of a fake # `ok`. `--jobs 2`: the default (6, capped at ncpu) overloads a 4-core # hosted runner — the first nightly on 2026-10-03 failed four auto-wait # tests on "rect stability probe did not answer" that pass serially. run: cargo run -p xtask -- live-sweep --jobs 2 sites: # Weekly cron, or by hand. if: github.event_name == 'workflow_dispatch' || github.event.schedule == '0 4 * * 1' runs-on: ubuntu-latest env: FF_RDP_LIVE_SITES_TESTS: "1" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 - name: Install Firefox uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2 - name: Build ff-rdp run: cargo build -p ff-rdp-cli -p xtask --bins - name: Run the third-party-site tests # Same sweep with the sites gate set; the local-fixture tests run too, # which keeps this job a single command. `--jobs 2` as above. run: cargo run -p xtask -- live-sweep --jobs 2