[PR #6662] [MERGED] ci: keep PR browser checks small and schedule the full matrix #7275

Closed
opened 2026-10-23 04:18:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6662
Author: @SpicyMarinara
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/ci-browser-smoke


📝 Commits (6)

  • 45e03fd docs: record browser CI scope change
  • 78ead39 ci: run focused browser smoke checks on development PRs
  • 38543ed ci: keep scheduled browser tests in the staging cache scope
  • 08e53b1 Merge remote-tracking branch 'origin/staging' into codex/ci-browser-smoke
  • c31676a ci: enforce the smoke suite through the existing PR gate
  • bda308c Merge branch 'staging' into codex/ci-browser-smoke

📊 Changes

10 files changed (+200 additions, -104 deletions)

View changed files

📝 .github/actions/playwright-shard/action.yml (+12 -0)
📝 .github/workflows/playwright.yml (+98 -91)
📝 .github/workflows/pull-request-checks.yml (+23 -0)
📝 AGENTS.md (+1 -0)
📝 CHANGELOG.md (+2 -1)
📝 CONTRIBUTING.md (+20 -5)
📝 e2e/core-flows.e2e.ts (+5 -5)
📝 e2e/game-verb-only-turn.e2e.ts (+1 -1)
📝 package.json (+1 -1)
📝 scripts/validate-pr-triage.mjs (+37 -0)

📄 Description

Linked issue

Closes #6661

Why this change

Every development revision was rerunning 28 browser shards, taking roughly 18–31 minutes despite caching and sharding. PRs into staging now run seven existing Chromium smoke tests inside the already-required pnpm-validate check. A smoke failure blocks merging, and the complete Node lane remains in place.

What changed

  • pnpm smoke:ui selects seven @smoke cases covering app startup, settings persistence, chat navigation, generation stop/refusal, Conversation/Roleplay reasoning, and Game narration. The full UI command retains all three browser projects.
  • The full 10/8/10 desktop Chromium/mobile Chromium/WebKit matrix runs nightly at 02:17 UTC, on manual dispatch, and on PRs into main. Staging pushes run the small standalone smoke job.
  • The nightly dispatcher executes no repository code and dispatches on staging, keeping test code and cache writes in that branch's context. Every test checkout uses its immutable event SHA. Manual runs can require expected_sha to reject a branch/tag that moved off the intended candidate.
  • The existing workflow-policy validator guards dispatcher permissions, immutable checkouts, test selection, and smoke enforcement. CONTRIBUTING.md documents focused local testing and release validation; AGENTS.md points to that policy; CHANGELOG.md records the change.

Validation

Current implementation: c31676a869d302d97dfb9cc8c4b43c4bd6a2eb75, including the latest staging merge.

  • pnpm install and pnpm check passed after incorporating staging.
  • The final smoke command with PLAYWRIGHT_ONLY_PROJECT=desktop passed all 7 tests in 29.0 seconds. The ordinary local command also passed after the staging merge (33.8 seconds).
  • The initial hosted execution of the same smoke selection passed in 1 minute 43 seconds, with all full browser lanes skipped: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/36139584892/job/108085915528. The final PR runs this selection inside pnpm-validate.
  • Test discovery confirmed seven desktop smoke cases remain part of the full 1,629 test/project combinations.
  • Both modified workflows passed actionlint. node scripts/validate-pr-triage.mjs, pnpm version:check, and git diff --check passed. The revision guard accepted blank/matching SHA pins and rejected mismatched and shell-like inputs.
  • Local CodeRabbit review completed; after fixing the initial duplicated-policy note, subsequent reviews of the implementation and review fixes reported no findings. GitHub's cache-isolation and optional-smoke findings have been addressed; no security alert was dismissed. The final GitHub Actions CodeQL analysis passed and reports no open code-scanning alerts on this PR. The cache-isolation and required-smoke review threads are resolved. Remaining hosted checks and the latest GitHub CodeRabbit review are still running.
  • The full browser matrix and container runtime were not rerun locally.

Human verification checklist:

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify the required pnpm-validate check includes the Chromium smoke result on a staging PR.
  • Manually verify a selected release candidate runs all three browser projects against its recorded commit.
  • Manually verify the first nightly staging run after the workflow reaches main.

Docs and release impact

Nightly scheduling becomes active after the workflow reaches the default branch (main). Until then, use gh workflow run playwright.yml --ref staging for full hosted coverage. Add -f expected_sha=<full-commit-sha> to pin the intended candidate. No version values or user-facing docs/ files change.

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Existing browser regressions provide automated proof for the selected smoke flows; this PR changes test scheduling and selection.

Summary by CodeRabbit

  • Testing
    • Added a focused desktop Chromium smoke suite for staging pull requests and pushes, with failure results retained for review.
    • Expanded browser regression coverage across scheduled runs, manual runs, and pull requests targeting main.
  • Documentation
    • Updated validation and release guidance to explain when smoke checks and full browser coverage run, and how to record results.
  • Chores
    • Added checks to verify the browser testing workflow configuration.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6662 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/25/2026 **Status:** ✅ Merged **Merged:** 9/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/ci-browser-smoke` --- ### 📝 Commits (6) - [`45e03fd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/45e03fd0424cc6853dea94c9140adf210dec0dec) docs: record browser CI scope change - [`78ead39`](https://github.com/Pasta-Devs/Marinara-Engine/commit/78ead398fa334013575abde7b654a33aadb0cff7) ci: run focused browser smoke checks on development PRs - [`38543ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38543ede8e5acc89142337abb71b12d727d9e16b) ci: keep scheduled browser tests in the staging cache scope - [`08e53b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/08e53b121cb0de9493e2dcfc2fa3cd72a64647fd) Merge remote-tracking branch 'origin/staging' into codex/ci-browser-smoke - [`c31676a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c31676a869d302d97dfb9cc8c4b43c4bd6a2eb75) ci: enforce the smoke suite through the existing PR gate - [`bda308c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bda308c4ff8f7cf5bc1a31d274cd8fcacb8d07b0) Merge branch 'staging' into codex/ci-browser-smoke ### 📊 Changes **10 files changed** (+200 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/playwright-shard/action.yml` (+12 -0) 📝 `.github/workflows/playwright.yml` (+98 -91) 📝 `.github/workflows/pull-request-checks.yml` (+23 -0) 📝 `AGENTS.md` (+1 -0) 📝 `CHANGELOG.md` (+2 -1) 📝 `CONTRIBUTING.md` (+20 -5) 📝 `e2e/core-flows.e2e.ts` (+5 -5) 📝 `e2e/game-verb-only-turn.e2e.ts` (+1 -1) 📝 `package.json` (+1 -1) 📝 `scripts/validate-pr-triage.mjs` (+37 -0) </details> ### 📄 Description ## Linked issue Closes #6661 ## Why this change Every development revision was rerunning 28 browser shards, taking roughly 18–31 minutes despite caching and sharding. PRs into staging now run seven existing Chromium smoke tests inside the already-required `pnpm-validate` check. A smoke failure blocks merging, and the complete Node lane remains in place. ## What changed - `pnpm smoke:ui` selects seven `@smoke` cases covering app startup, settings persistence, chat navigation, generation stop/refusal, Conversation/Roleplay reasoning, and Game narration. The full UI command retains all three browser projects. - The full 10/8/10 desktop Chromium/mobile Chromium/WebKit matrix runs nightly at 02:17 UTC, on manual dispatch, and on PRs into main. Staging pushes run the small standalone smoke job. - The nightly dispatcher executes no repository code and dispatches on staging, keeping test code and cache writes in that branch's context. Every test checkout uses its immutable event SHA. Manual runs can require `expected_sha` to reject a branch/tag that moved off the intended candidate. - The existing workflow-policy validator guards dispatcher permissions, immutable checkouts, test selection, and smoke enforcement. CONTRIBUTING.md documents focused local testing and release validation; AGENTS.md points to that policy; CHANGELOG.md records the change. ## Validation Current implementation: `c31676a869d302d97dfb9cc8c4b43c4bd6a2eb75`, including the latest staging merge. - `pnpm install` and `pnpm check` passed after incorporating staging. - The final smoke command with `PLAYWRIGHT_ONLY_PROJECT=desktop` passed all 7 tests in 29.0 seconds. The ordinary local command also passed after the staging merge (33.8 seconds). - The initial hosted execution of the same smoke selection passed in 1 minute 43 seconds, with all full browser lanes skipped: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/36139584892/job/108085915528. The final PR runs this selection inside pnpm-validate. - Test discovery confirmed seven desktop smoke cases remain part of the full 1,629 test/project combinations. - Both modified workflows passed actionlint. `node scripts/validate-pr-triage.mjs`, `pnpm version:check`, and `git diff --check` passed. The revision guard accepted blank/matching SHA pins and rejected mismatched and shell-like inputs. - Local CodeRabbit review completed; after fixing the initial duplicated-policy note, subsequent reviews of the implementation and review fixes reported no findings. GitHub's cache-isolation and optional-smoke findings have been addressed; no security alert was dismissed. The final GitHub Actions CodeQL analysis passed and reports no open code-scanning alerts on this PR. The cache-isolation and required-smoke review threads are resolved. Remaining hosted checks and the latest GitHub CodeRabbit review are still running. - The full browser matrix and container runtime were not rerun locally. Human verification checklist: - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify the required pnpm-validate check includes the Chromium smoke result on a staging PR. - Manually verify a selected release candidate runs all three browser projects against its recorded commit. - Manually verify the first nightly staging run after the workflow reaches main. ## Docs and release impact Nightly scheduling becomes active after the workflow reaches the default branch (main). Until then, use `gh workflow run playwright.yml --ref staging` for full hosted coverage. Add `-f expected_sha=<full-commit-sha>` to pin the intended candidate. No version values or user-facing docs/ files change. - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Existing browser regressions provide automated proof for the selected smoke flows; this PR changes test scheduling and selection. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Testing** * Added a focused desktop Chromium smoke suite for staging pull requests and pushes, with failure results retained for review. * Expanded browser regression coverage across scheduled runs, manual runs, and pull requests targeting `main`. * **Documentation** * Updated validation and release guidance to explain when smoke checks and full browser coverage run, and how to record results. * **Chores** * Added checks to verify the browser testing workflow configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7275
No description provided.