Builder E2E still takes too long. The goal is all 145 cases under 3
minutes end to end, with exactly ten shards and the same UI, MCP, and
generated Preview checks. This PR has not met that goal.
### Measured results
- Initial green CI run: 9m43s from build start to the last shard;
slowest test step 439s.
- Best green run after replacing repeated UI project setup: about 5m35s;
slowest test step 250s.
- Best green run (393e51c): about 4m59s; slowest test step 201s. The
two-file rebalance reduced the prior green run by about 50s. The
3-minute goal remains unmet.
- Latest green run (de2f4ed): about 5m56s; slowest test step 257s. All
ten shards and required workflows passed. The preceding green run took
about 6m09s, showing substantial run-to-run variation.
- The 119 content-mode project setup calls fell from 599s to 23.5s of
aggregate worker time by using the app's dev login and project creation
API. The sum of shard test steps fell from 2,178s to 1,721s in the first
run with this change. Per-shard wall time still varies substantially
between runs.
- The shared build takes about 85s, including roughly 30s of setup and
51s of Builder compilation. During tests, the four-CPU shard runners
showed 27–52% CPU scheduling pressure and 0% memory pressure; peak
memory was unavailable.
### Changes
- Cache the test schema and share one Builder build artifact across ten
shards. Shard setup overlaps the build; each shard still starts an
isolated database.
- Keep real MCP and browser sessions alive for repeated Preview
submissions, and reuse generated Previews where checks can share one.
- Give independent cases separate projects and run them within the
existing shard workers. Keep exactly ten shards.
- Create content-mode fixture projects through the app's normal login
and project API, using its CSRF token. Dedicated UI project creation
remains in the Builder project fixture.
- Capture managed Form responses before fast redirects discard their
bodies. Fix drag targeting and unique drag fixture IDs.
- Report CPU and memory pressure for every shard. Allow the MCP browser
startup enough time under CI load. An earlier shard rebalance worsened
the run and was reverted; a measured two-file rebalance improved the
slowest shard without changing test logic.
### Verification and remaining work
Focused local runs passed for a single project, three projects sharing
one session, a paid-plan MCP project, and the MCP Preview form case.
Builder and Vision typechecks, lint, formatting, the ten-shard matrix
check, and Vision regression tests passed. All required workflows passed
on de2f4ed. The latest review fix also passed all 63 Vision tests,
Vision typecheck, lint, and formatting locally.
- [x] Profile the full suite and measure complete ten-shard CI runs.
- [x] Remove repeated UI project setup from the shared fixture.
- [x] Measure CPU and memory pressure in CI.
- [ ] Reduce Builder interactions, generated Preview work, and build
time enough to finish under 3 minutes.
- [x] Resolve five review threads and verify the affected paths.
- [x] Check authoritative Builder documentation; these test harness and
capture fixes do not change user-facing behavior or documentation.
CI still checks out and installs dependencies, builds Builder, uploads
and downloads its artifact, starts a database for each shard, and runs
real browsers and generated production Previews. Warm caches remove
downloads and schema generation, but do not remove setup, compilation,
browser work, or cache transfers. No product behavior or authoritative
documentation changed.
The checkbox’s hover border becomes visible over its transparent resting
border, making it look larger. This PR removes that hover border change
while preserving fixed dimensions, the dark-mode fill from #6697, and
the keyboard focus indicator.
- [x] Remove the hover border color change from the shared Checkbox.
- [x] Add a focused browser check that measures unchanged dimensions on
real hover.
- [x] Update the existing contrast test to expect the unchanged
transparent hover border; keep the focus indicator check.
- [x] Verify the old hover-border expectation fails and the updated
tests pass. Full design-system browser suite passes (288 tests).
- [x] Run focused browser tests, typecheck, lint, formatting, and diff
checks.
- [x] Review `docs/`; this internal visual adjustment needs no
documentation update.
The share popover’s checkboxes blend into dark backgrounds. The shared
Checkbox now uses a lighter fill in dark mode and keeps its existing
border treatment. Light mode stays unchanged.
- [x] Improve dark-mode checkbox fill using existing theme colors.
- [x] Preserve light-mode fill and original hover/focus borders.
- [x] Keep disabled checked and indeterminate marks visible against the
dark fill.
- [x] Add browser coverage for light/dark, checked, disabled, hover, and
focus states; verify the regression test fails before the fix.
- [x] Run focused design-system and Builder browser tests, both
typechecks, lint, formatting, and diff checks.
- [x] Review `docs/`; this visual change needs no documentation update.
CI note: Main workflow, lint, and submodule checks passed on the
previous revision. Visual regression exceeded its 7-minute timeout. The
updated revision is running CI now; focused browser tests pass locally.
Wrangler warned that the generated Cloudflare server bundle checked for
an `isbot` default export that does not exist. The Cloudflare template
now uses the named export directly and keeps bot rendering behavior
intact.
No user-facing documentation changes are needed; this only changes the
generated Cloudflare server entry.
## Checklist
- [x] Trace the generated import to Remix's built-in Cloudflare entry
and use the supported `isbot` export.
- [x] Regenerate the Cloudflare fixture from the template.
- [x] Verify the Cloudflare production build no longer emits the
warning.
- [x] Run the focused prebuild test, fixture typecheck, lint,
formatting, and diff checks.
- [ ] Review the final diff and worktree for unrelated changes.
- [ ] Verify all required CI checks for the latest commit.
## Verification
- Cloudflare Remix production build passed.
- Wrangler Pages Functions build passed with unrelated, unbuilt
workspace packages externalized; the `isbot` warning was absent.
- Focused prebuild test, fixture typecheck, lint, formatting, and `git
diff --check` passed.
## What changed
- Report a safe generated script path and line number, plus the saved
screenshot artifact, when a page exception makes screenshot capture
fail. Private routes and non-script files are omitted.
- Generate parenthesized `all` media conditions without extra wrapping
so publish validation accepts single and compound conditions.
## Verification
- CSS engine tests: 12 passed
- Publish validation tests: 54 passed
- Screenshot CDP tests: 62 passed
- MCP preview tests: 50 passed
- Typechecks, lint, and formatting passed
Fixes#6671Fixes#6691
Generated 404 pages currently include a default canonical link in their
server response. Screenshot capture also fails when a page calls
`console.error`, even if Chrome reports no uncaught exception and the
PNG was saved.
This PR omits the default canonical on 404 pages and reserves screenshot
failure for uncaught page exceptions. It keeps the existing exception
and route-error checks.
Ref #6672
Ref #6671
## Tasks
- [x] Recheck the final diff for removable code and rerun focused checks
before merge.
- [x] Reproduce the 404 canonical in the reported published project and
add a regression that fails before the fix.
- [x] Test successful, dynamic 404, and generic 404 generated responses.
- [x] Check the reported published screenshot pages and confirm
`console.error` is distinct from an uncaught exception.
- [x] Update screenshot regression fixtures so navigation tests still
use real exceptions.
- [x] Review and correct the affected canonical documentation.
- [x] Run fixture generation and inspect its diff; retain only the two
generated route changes caused by this fix.
- [x] Run focused tests, full screenshot tests, full CLI prebuild tests,
MCP preview tests, typechecks, lint, formatting, and the CLI build.
- [x] Run the approved full Luna/low agent evaluations and record the
failures below.
- [x] Review the staged diff and push the fix.
- [x] Monitor required CI after the final simplification and resolve any
review comments.
## Verification
- CLI prebuild: 153 passed.
- Screenshot browser: 60 passed.
- MCP preview: 50 passed.
- CLI and vision typechecks, lint, formatting, CLI build, and fixture
pipeline passed.
- The new 404 and console-error tests failed for the expected reasons
before their fixes and passed afterward.
- Full Luna/low agent evaluations: 6 of 9 fixtures passed. The agents
missed native form mode, design-input, and Markdown references task
requirements. Baseline comparison was disabled because stored baselines
use a different model and reasoning effort. No baseline was changed.
## Limits
The reported 404 page did not regain a canonical after hydration in my
production browser check; the confirmed defect was in its initial HTML
response. The regression test covers generated HTTP responses, not
browser hydration. #6672 remains open for hydration verification. #6671
remains open for sanitized exception details, saved-artifact metadata,
and Windows timeout recovery.
Editing a heading inside a nested MDX template appeared in the canvas
but was lost after refreshing the Builder. Explicit line breaks in
copied headings also disappeared when text editing began, including in
Design mode outside Content Blocks.
This PR keeps Markdown block structure when serializing edits inside
nested named templates, preserves inline formatting inside headings, and
keeps existing `br` instances through text editing. Self-closing
template instances continue using their defaults.
Ref #6306
## Checklist
- [x] Reproduce the heading edit and refresh failure in the shared
project.
- [x] Add regression coverage for a heading nested through multiple
templates and verify it survives serialization and reload.
- [x] Add regression coverage for inline formatting in a self-closing
heading template; confirmed the test failed before the fix.
- [x] Preserve explicit `br` instances when entering and saving text
editing in either Builder mode; confirmed the test failed before the
fix.
- [x] Review the authoritative Content Block documentation; the existing
guidance already covers this behavior, so no documentation change is
needed.
- [x] Run the relevant tests, Builder typecheck, lint, and formatting
checks.
- [x] Review the final diff and worktree for unrelated changes.
- [x] Wait for the PR Builder compatibility endpoint before fixture
sync; fixture sync passed on Ubuntu and Windows.
- [x] Verify all GitHub checks for the latest commit.
## Verification
- Text editor interop and component tests: 21 passed.
- Builder typecheck, focused lint, formatting, and `git diff --check`
passed.
- The new line-break regression failed before the fix and passed after
it.
- Latest CI passed: Main workflow, visual regression, lint, and staging
fixtures on Ubuntu and Windows.