Skip to content

Website - Upgrade Docusaurus to 3.10.2 and group npm security updates - #909

Open
gusui-msft wants to merge 2 commits into
mainfrom
gusui-msft/website-dependabot-cleanup-20261202
Open

gusui-msft wants to merge 2 commits into
mainfrom
gusui-msft/website-dependabot-cleanup-20261202

Conversation

@gusui-msft

@gusui-msft gusui-msft commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Description
website/ is pinned to @docusaurus/*@2.0.0-beta.1 with a 2021 lockfileVersion: 1 lockfile and built on Node 14 in .github/workflows/gh-pages.yml. Because Node 14's npm v6 cannot read lockfileVersion: 3 lockfiles generated by Dependabot (npm ERR! Cannot read property '@docusaurus/core' of undefined), /website security PRs (including open #908 and recent #898–#905) fail docs-build, while the pinned 2021 dependency tree keeps generating recurring security PRs.

This PR upgrades the documentation site to Docusaurus 3.10.2 on Node 22 LTS, resolves the backlog of website/ advisories (superseding #908), and groups future /website/ security updates into a single PR. No benchmark, runner, or container runtime packages are changed.

Major Revision

  • Upgrade website/package.json and website/package-lock.json from Docusaurus 2.0.0-beta.1 / React 17 to Docusaurus 3.10.2 / React 18.3.1 / @mdx-js/react ^3.0.0 / prism-react-renderer ^2.4.1, drop unused legacy loaders (@svgr/webpack, file-loader, url-loader), and add overrides (serialize-javascript, tinypool, uuid, webpack-dev-server) for patched transitive releases.
  • Update website/docusaurus.config.js for prism-react-renderer v2 theme imports, markdown.format: 'detect' (keeping CommonMark parsing for .md and MDX parsing for .mdx), markdown.hooks.onBrokenMarkdownLinks: 'warn', and explicit algolia.appId (BH4D9OD16A).
  • Update .github/workflows/gh-pages.yml from node-version: '14' to node-version: '22'.

Minor Revision

  • Group Dependabot security updates under /website/ in .github/dependabot.yml (applies-to: security-updates) while preserving open-pull-requests-limit: 0 for non-security version updates.
  • Replace the out-of-root relative link to superbench/config/deepseek-v2-lite-training.yaml in docs/user-tutorial/benchmarks/model-benchmarks.md with the repository blob/main URL so strict link checking passes.

Validation

  • npm audit against https://registry.npmjs.org/: reduced from 101 advisories (7 critical, 65 high, 26 moderate, 3 low) on main (fe4cf961) to 0.
  • Verified all resolved tarball URLs in website/package-lock.json point to https://registry.npmjs.org/; clean npm ci and npm run build succeeded and generated all 46 static HTML pages.
  • Verified docusaurus start (webpack-dev-server 6.1.0), docusaurus serve, MDX <Tabs> rendering, and live Algolia DocSearch queries (BH4D9OD16A / superbenchmark) in browser preview.
  • misspell -error . (v0.3.4), actionlint 1.7.12 on .github/workflows/gh-pages.yml, LF line endings, and git diff --check all passed. GitHub Pages SSH deployment (npm run deploy) runs only on push to main and is not exercised on pull requests.

Upgrade the documentation website from Docusaurus 2.0.0-beta.1 on Node 14
to Docusaurus 3.10.2 on Node 22 LTS, resolve all 101 npm audit advisories
in website/package-lock.json (superseding #908), group future website
security updates in Dependabot, and exclude docs/ and website/ from Docker
build contexts. Also fix the relative training profile link in
docs/user-tutorial/benchmarks/model-benchmarks.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 22:33

This comment was marked as resolved.

Move .dockerignore exclusions to a dedicated PR and remove the optional
engines.node declaration from website/package.json and package-lock.json.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 22:50

Copilot AI 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.

🟡 Changes recommended

Missing docs/ and website/ exclusions in .dockerignore leave frontend files in images and allow website dependency changes to invalidate installation layers.

2 open issues
1 file not reviewed
  • website/package-lock.json: Generated file

Review effort: Balanced

Comment thread website/package.json Resolved
@gusui-msft
gusui-msft marked this pull request as ready for review December 2, 2026 22:59
@gusui-msft
gusui-msft requested a review from a team as a code owner December 2, 2026 22:59
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.62%. Comparing base (fe4cf96) to head (43b86f4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #909   +/-   ##
=======================================
  Coverage   86.62%   86.62%           
=======================================
  Files         114      114           
  Lines        9224     9224           
=======================================
  Hits         7990     7990           
  Misses       1234     1234           
Flag Coverage Δ
cpu-python3.10-unit-test 72.68% <ø> (ø)
cpu-python3.12-unit-test 72.68% <ø> (ø)
cpu-python3.7-unit-test 71.95% <ø> (ø)
cuda-unit-test 84.36% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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.

2 participants