Skip to content

Configure Volta for frontend toolchain - #1280

Merged
dgee2 merged 2 commits into
mainfrom
codex/volta-toolchain
Sep 9, 2026
Merged

dgee2 merged 2 commits into
mainfrom
codex/volta-toolchain

Conversation

@dgee2

@dgee2 dgee2 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pin the frontend Node.js and pnpm toolchain in ui/menu-website/package.json for Volta.
  • Use volta-cli/action@v4 and Volta's pnpm feature in every pnpm-using CI job.
  • Update the agent and frontend setup guidance to match the new toolchain policy.

Changes

  • Added Volta pins for Node.js 22.22.2 and pnpm 11.21.0.
  • Replaced actions/setup-node and floating pnpm@latest setup in the frontend validation, frontend E2E, and E2E report jobs.
  • Passed ui/menu-website/package.json to the Volta action and enabled VOLTA_FEATURE_PNPM.
  • Documented the local and CI setup requirements.

Verification

Passed:

  • pnpm install --frozen-lockfile
  • pnpm run lint (16 existing warnings, zero errors)
  • pnpm run test:unit — 15 files, 156 tests passed
  • Workflow YAML/configuration validation for the three Volta jobs
  • git diff --check
  • Package JSON Volta pin validation

Failed or blocked:

  • pnpm run build — fails on untouched recipe-form TypeScript errors and the missing generated OpenAPI module.
  • pnpm run test:storybook — Chromium launch is blocked by the sandbox with spawn EPERM.
  • Volta runtime smoke test — the sandbox could not download Node 22.22.2 from nodejs.org; the distribution URL is available.
  • Prettier reports existing formatting drift across the workflow and documentation files; no broad formatter rewrite was applied.

Copilot AI lite review requested due to automatic review settings September 9, 2026 21:14
Comment thread .github/workflows/main.yml Fixed
Comment thread .github/workflows/main.yml Fixed
Comment thread .github/workflows/main.yml Fixed

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.

🔵 Needs a closer look

It changes CI/toolchain provisioning and relies on runtime downloads, so it needs a human to validate reliability across the affected workflows.

Pull request overview

Pins and standardizes the frontend Node.js/pnpm toolchain via Volta, updates CI to use Volta instead of setup-node + global pnpm installs, and aligns developer/agent documentation with the new policy.

Changes:

  • Added Volta toolchain pins (Node + pnpm) to ui/menu-website/package.json.
  • Switched relevant GitHub Actions jobs to volta-cli/action@v4 and enabled VOLTA_FEATURE_PNPM.
  • Updated frontend/agent docs to describe the Volta + VOLTA_FEATURE_PNPM requirement.
File summaries
File Description
ui/menu-website/README.md Documents Volta as the supported toolchain and calls out VOLTA_FEATURE_PNPM=1.
ui/menu-website/package.json Adds volta pins for Node and pnpm.
AGENTS.md Updates repo guidance to reflect Volta as the supported frontend toolchain and CI setup.
.github/workflows/main.yml Replaces Node/pnpm setup with Volta in pnpm-using CI jobs and sets VOLTA_FEATURE_PNPM.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/main.yml
dgee2 and others added 2 commits September 9, 2026 22:25
Pin the frontend Node.js and pnpm versions in package.json and use Volta in the pnpm-based GitHub Actions jobs. Update the agent and frontend setup guidance to match.

Co-authored-by: Codex <codex@openai.com>
Address the GitHub Advanced Security and SonarCloud findings by pinning each Volta action use to the verified v4 commit.

Co-authored-by: Codex <codex@openai.com>
@dgee2
dgee2 force-pushed the codex/volta-toolchain branch from 92c1cde to ac49e48 Compare September 9, 2026 21:26
@dgee2

dgee2 commented Sep 9, 2026

Copy link
Copy Markdown
Owner Author

🤖 This comment was written by Codex.

This quality-gate finding is valid and will be fixed rather than dismissed. SonarCloud’s three findings are the same mutable volta-cli/action@v4 references reported by GitHub Advanced Security. All three are now pinned to the verified immutable 5c175f92dea6f48441c436471e6479dbc192e194 commit, with # v4 release comments retained. The rebased branch has been pushed; please re-run the analysis against the updated head.

@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

@dgee2
dgee2 marked this pull request as ready for review September 9, 2026 21:40
@dgee2
dgee2 merged commit 3735bac into main Sep 9, 2026
19 checks passed
@dgee2
dgee2 deleted the codex/volta-toolchain branch September 9, 2026 21:40
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.

3 participants