Skip to content

ci: make production-journey UI regression blocking, isolate mockup specs (PT-05)#592

Merged
BigSimmo merged 7 commits into
mainfrom
claude/pt-audit-pr7-ci-hardening
Jul 13, 2026
Merged

ci: make production-journey UI regression blocking, isolate mockup specs (PT-05)#592
BigSimmo merged 7 commits into
mainfrom
claude/pt-audit-pr7-ci-hardening

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

Audit PT-05: the advisory UI regression job could stay red while pr-required stayed green, letting production-journey failures normalise.

  • Playwright chromium splits into a production-journey project (chromium) and a chromium-mockups project (prototype /mockups specs: ui-tools-collapse, ui-tools-task-directory); the patterns are disjoint and their union equals the legacy testMatch, so firefox/webkit release-matrix coverage is unchanged.
  • ui-regression is promoted into pr-required (same ui_changed gating as ui-critical, so merge-queue runs are covered) and loses continue-on-error.
  • Mockups stay advisory in a new ui-mockups job.
  • Hardened the one flake found while proving the promotion: the cross-mode quick-link click, where the app-router URL only commits once /medications/[slug] responds and a cold dev compile takes ~30s when the @critical warm-up journeys are excluded; the spec now re-clicks inside a 45s toPass window.

Verification

Production-journey suite 135/135 locally after the hardening; mockup project 7/7; check:ci-scope self-test, GitHub Actions pin check, prettier green.

PT-17 (scheduled live-domain monitoring) is deliberately not included — it targets production and needs explicit approval.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Testing

    • Added a dedicated end-to-end test lane for UI mockups and prototypes.
    • Mockup tests now run separately from production UI tests via dedicated Playwright projects and tagging.
    • Improved reliability for medication navigation checks (route commit verification and reduced extra navigation).
    • Added diagnostic artifact uploads when mockup tests fail.
  • CI

    • UI mockup lane runs only when UI changes are detected and does not block required pull request checks.
    • Clarified that production regression suite failures correctly fail required pull request checks.

…ecs (PT-05)

The advisory UI regression job could stay red while pr-required stayed
green, letting production-journey failures normalise. Split Playwright
chromium into a production-journey project and a chromium-mockups
project (prototype /mockups specs), promote ui-regression into
pr-required (same ui_changed gating as ui-critical so merge-queue runs
are covered), and keep mockups advisory in a new ui-mockups job.
firefox/webkit release-matrix coverage is unchanged.

Proof for the promotion: production-journey suite 135/135 locally after
hardening the one flake - the cross-mode quick-link click, where the
app-router URL only commits once /medications/[slug] responds and a
cold dev compile takes ~30s when the @critical warm-up journeys are
excluded; the spec now re-clicks inside a 45s toPass window.

PT-17 (scheduled live-domain monitoring) is deliberately not included:
it targets production and needs explicit approval.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@supabase

supabase Bot commented Jul 13, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@BigSimmo, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 9 seconds

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5b92f866-b45d-49a3-8cf2-5d9c5f8b2165

📥 Commits

Reviewing files that changed from the base of the PR and between 763fec5 and 5bab36c.

📒 Files selected for processing (4)
  • .github/workflows/ci.yml
  • package.json
  • tests/ui-smoke.spec.ts
  • tests/ui-tools.spec.ts
📝 Walkthrough

Walkthrough

The PR separates production and mockup Playwright tests, adds mockup npm scripts and tags, and introduces an advisory CI lane for mockup E2E coverage. It also adjusts two UI smoke flows for route timing and removes redundant navigation assertions.

Changes

Mockup UI testing

Layer / File(s) Summary
Separate production and mockup test selection
playwright.config.ts, tests/ui-tools*.spec.ts
Playwright projects filter production and mockup specs using filename patterns and the @mockup tag, which is added to mockup suites.
Expose mockup test commands
package.json
Adds test:e2e:mockups and includes chromium-mockups in test:e2e:chromium.
Run the advisory mockup CI lane
.github/workflows/ci.yml
Adds a pull-request ui-mockups job that runs mockup E2E tests, continues on errors, and uploads failure diagnostics.
Update UI test flows
tests/ui-smoke.spec.ts
Retries the Clozapine route transition and removes redundant prescribing workflow navigation checks.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • BigSimmo/Database#454: Both PRs update CI and Playwright test selection into scoped UI testing lanes.
  • BigSimmo/Database#494: Both PRs modify tests/ui-tools.spec.ts, with this PR adding @mockup tagging to its mockup route test.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly captures the main change: blocking production-journey UI regression and isolating mockup specs.
Description check ✅ Passed The description includes a clear Summary and Verification section with relevant results, and only minor template-format details are missing.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/pt-audit-pr7-ci-hardening

Comment @coderabbitai help to get the list of available commands.

@BigSimmo
BigSimmo enabled auto-merge (squash) July 13, 2026 14:19

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 19e176a329

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread playwright.config.ts
@github-actions

Copy link
Copy Markdown

@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. After fixing or dispositioning a thread, reply in that thread with as the first line, followed by a concise summary; that marker authorizes the workflow to close that exact thread. If human input or new authorization is required, do not use the marker and leave the thread open with the blocker. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

BigSimmo and others added 2 commits July 13, 2026 22:59
#593 already promoted ui-regression (test:e2e:regression with the
@quarantine escape hatch); this branch keeps only its unique delta —
the chromium-mockups project split, the advisory ui-mockups lane, and
the cross-mode spec hardening.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b89482924

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread playwright.config.ts Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Around line 352-380: Replace the mutable version tags for the actions used in
the Chromium mockup job—checkout, setup-node, cache, and upload-artifact—with
their full trusted commit SHAs, retaining comments that identify the
corresponding action versions for maintainability. Do not alter the job’s
existing behavior or configuration.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cf431dd5-e634-4dad-b1da-55d203f667fc

📥 Commits

Reviewing files that changed from the base of the PR and between ce99cbc and 99ae1f0.

📒 Files selected for processing (7)
  • .github/workflows/ci.yml
  • package.json
  • playwright.config.ts
  • tests/ui-smoke.spec.ts
  • tests/ui-tools-collapse.spec.ts
  • tests/ui-tools-task-directory.spec.ts
  • tests/ui-tools.spec.ts

Comment thread .github/workflows/ci.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant