Skip to content

test(perf): establish route-family performance baselines [Codex] - #1378

Open
jderochervlk wants to merge 4 commits into
masterfrom
test/route-family-performance-baselines
Open

jderochervlk wants to merge 4 commits into
masterfrom
test/route-family-performance-baselines

Conversation

@jderochervlk

@jderochervlk jderochervlk commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1371.

This establishes the post-homepage route-family performance baseline before later optimization work changes individual pages.

The built-site report now profiles representative routes and controls with HTML, JavaScript, CSS, media, DOM, and dimensions data. It records route ownership versus homepage/layout sharing and uploads the JSON evidence from PR CI.

A dedicated deployed Cypress suite covers direct loads, hydration and console health, styles, highlighting, and navigation across route families. Lighthouse now collects and compares each profile independently while retaining missing target profiles as N/A.

Add deterministic route-family asset reports and profile evidence.
Cover direct loads and client transitions, and retain Lighthouse comparisons.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T13:45:30.787002Z 691e3ef New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jderochervlk jderochervlk changed the title test(perf): establish post-homepage route-family baselines test(perf): establish route-family performance baselines [Codex] Sep 22, 2026
@jderochervlk
jderochervlk added this pull request to stack #1380 September 22, 2026 11:55

@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: c70121f9ee

ℹ️ 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 apps/docs/react-router.config.mjs Outdated
Comment thread apps/docs/scripts/homepage-performance.mjs
Comment thread apps/docs/package.json Outdated
@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Lighthouse route profiles

No route-profile Lighthouse baseline is available for target branch master. Every score is the median of the deployed preview runs for that route.

Route Performance Accessibility Best practices SEO
/ N/A -> 81 (N/A) N/A -> 80 (N/A) N/A -> 100 (N/A) N/A -> 58 (N/A)
/docs/manual/introduction N/A -> 81 (N/A) N/A -> 78 (N/A) N/A -> 100 (N/A) N/A -> 50 (N/A)
/docs/manual/api/stdlib/array N/A -> 76 (N/A) N/A -> 77 (N/A) N/A -> 100 (N/A) N/A -> 50 (N/A)
/blog N/A -> 75 (N/A) N/A -> 80 (N/A) N/A -> 100 (N/A) N/A -> 50 (N/A)
/blog/reactive-analysis N/A -> 85 (N/A) N/A -> 78 (N/A) N/A -> 100 (N/A) N/A -> 50 (N/A)
/community/overview N/A -> 86 (N/A) N/A -> 85 (N/A) N/A -> 100 (N/A) N/A -> 58 (N/A)
/packages N/A -> 77 (N/A) N/A -> 86 (N/A) N/A -> 96 (N/A) N/A -> 45 (N/A)
/syntax-lookup N/A -> 86 (N/A) N/A -> 83 (N/A) N/A -> 100 (N/A) N/A -> 58 (N/A)
/try N/A -> 25 (N/A) N/A -> 86 (N/A) N/A -> 96 (N/A) N/A -> 92 (N/A)
/brand N/A -> 90 (N/A) N/A -> 83 (N/A) N/A -> 100 (N/A) N/A -> 54 (N/A)
/__route-profile-not-found N/A -> 94 (N/A) N/A -> 82 (N/A) N/A -> 100 (N/A) N/A -> 42 (N/A)

Download the full Lighthouse reports and baselines

Commit e3a2b8d

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
guide 691e3ef Commit Preview URL

Branch Preview URL
Sep 22 2026, 01:30 PM

Keep /try out of static prerendering and source its profile HTML from the existing Pages request handler.
Treat assets referenced by multiple non-homepage profiles as layout-shared and cover the content-layout case.
Write the JSON artifact before printing it so report generation failures retain their nonzero status.
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview

@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: 691e3ef7a4

ℹ️ 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 on lines +55 to +56
path: "/__route-profile-not-found",
htmlSource: "prerendered",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Exclude the synthetic 404 profile from the sitemap

Because this control is marked prerendered, auditOnlyPaths causes the build to emit build/client/__route-profile-not-found/index.html; the subsequent build:generate-sitemap step recursively includes every index.html, so production publishes this synthetic test URL in sitemap.xml as a crawlable page. Keep the control out of sitemap discovery or explicitly filter this path.

Useful? React with 👍 / 👎.

`direct ${name} load has styles and hydrates`,
() => {
visit(directLoadPath(path))
get(`link[rel="stylesheet"]`)->should("exist")->ignore

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Assert route styles actually load

Every profile already receives the shared stylesheet from DocsRoot, so this assertion succeeds even if the route-specific content.css, playground.css, or other layout stylesheet is omitted or returns 404; the prerendered headings and editor can remain visible with browser-default styling as well. Consequently the new suite can pass while an optimization leaves an entire route family unstyled, so assert a route-specific computed style or confirm the expected stylesheet loaded instead of accepting any link.

Useful? React with 👍 / 👎.

uses: treosh/lighthouse-ci-action@v12
with:
urls: ${{ env.DOCS_DEPLOYMENT_URL }}
urls: ${{ env.LIGHTHOUSE_URLS }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the legacy baseline scoped to the homepage

Once this step collects every profile URL, writeBaseline still passes the complete report set to createBaseline, so .lighthouseci/baseline.json now records 33 runs and medians across unrelated routes while its url still identifies the homepage. This corrupts the retained homepage baseline and gives older/fallback comparison consumers misleading scores; filter that legacy baseline to the homepage reports while writing the separate route baseline from the full set.

Useful? React with 👍 / 👎.

This branch was successfully deployed

2 active deployments
preview — 691e3ef7 Deployed Sep 22, 2026 by github-actions[bot]
guide-preview — 691e3ef7 Deployed Sep 22, 2026 by github-actions[bot]
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.

test(perf): establish post-homepage route-family performance baselines

1 participant