Repository navigation
Conversation
Deploy previewBundle sizeTotal Size Change: 0B(0.00%) - Total Gzip Change: 0B(0.00%) Show details for 79 more bundles@mui/internal-docs-infra/abstractCreateDemo parsed: 0B(0.00%) gzip: 0B(0.00%) PerformanceNo regressions in 12 benchmarks · precise to ±15.7% (±43.1% at worst) · ran 1m 38s · details Check out the code infra dashboard for more information about this PR. |
- A token on a pull request ref is not trusted, also from a mui org repo. The post-deploy job checks out the PR head, which can be fork code. - The preview path reads the PR from the job's own repo and skips the head repo check only there. - The deploy preview comment links each page once before a second fragment of the same page, and pages through the files with paginate.iterator. - Remove the route check that the origin check already covers. - Use a real Octokit in the report tests, and add tests for unmapped files, the manifest fallbacks and the token trust rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deploy-preview comment currently infers a URL from each changed file’s directory. That sent reviewers to a 404 for Chat layout and to three nonexistent Charts demo pages. Chat example · Charts example
Read the source-to-route map from the MUI X preview and use it only when its commit matches the PR head. If the route map returns HTTP 404, use the existing MUI X directory-based formatter so older PRs keep their deep links without a rebase. Use the complete URL for the comment link, QR code, and deduplication so two demos on one page retain their own anchors. Link each page once before a second anchor of the same page. Paginate changed files until the comment has five distinct pages or the list is exhausted.
The post-deploy job runs on
pull/<number>/headand checks out the PR head, which can be fork code. A token on a pull request ref is no longer trusted, also from a mui org repo, so it cannot use the trusted upload path. The preview lookup reads the PR from the job's own repo and skips the head repo check only there.The MUI X exporter and post-deploy refresh are in mui/mui-x#24392.
Validation
Replayed both PRs with their changed files and deployed HTML. All six links and their decoded QR targets matched, including
/x/react-charts/accessibility/#KeyboardNavigation.tsx. For the missing-map case, replayed #23851 with its live 404 response and reproduced all five published links, file labels, and QR targets. On the #24392 preview, checked the exported links for KeyboardActivation, KeyboardNavigation, and CSSAnimationCustomization against their rendered HTML IDs. The dashboard tests also cover stale manifests, preview-root fallback, pagination, and fork checkout resolution. They also cover the manifest fallbacks (failed request, error status, invalid JSON, size limit), the page order, and the token trust rules. The MUI X job 959296 onpull/24392/headhas an OIDC token, so the refresh step runs.Accepted trade-offs