Skip to content

build(dashboard): pin console image builder to pnpm 11.1.2 and repoint vendor doc link - #3099

Merged
myasnikovdaniil merged 1 commit into
mainfrom
build/dashboard-pnpm-pin
Jun 29, 2026
Merged

myasnikovdaniil merged 1 commit into
mainfrom
build/dashboard-pnpm-pin

Conversation

@myasnikovdaniil

@myasnikovdaniil myasnikovdaniil commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does

Two post-vendor cleanups from the #2963 review:

  • Pin the console image builder to pnpm 11.1.2. The Containerfile ran corepack prepare pnpm@latest, so the container build could drift to a newer pnpm major than the [email protected] pinned in package.json and used by CI. --frozen-lockfile guards the lockfile, but pinning the builder makes the image build reproducible and consistent with CI.
  • Repoint a stale doc link. docs/storage-immutability.md referenced the now-vendored cozystack/cozystack-ui#6; it now points at the in-tree console path.

Verification

  • No source change; pnpm typecheck + pnpm test unaffected.
  • Builder pnpm version now matches package.json's packageManager field.
NONE

Summary by CodeRabbit

  • Documentation

    • Clarified the storage immutability documentation by updating the UI reference to an in-repo path.
  • Chores

    • Standardized the build environment to use a specific pnpm version, helping keep installs and builds consistent.

…t vendor doc link

The console Containerfile ran `corepack prepare pnpm@latest`, so the image build could drift to a newer pnpm major than the `[email protected]` pinned in package.json and used by CI. `--frozen-lockfile` guards the lockfile, but pinning the builder makes the image build reproducible and consistent with CI.

Also repoints docs/storage-immutability.md off the now-vendored cozystack-ui#6 link to the in-tree console path (follow-up from #2963).

Assisted-By: Claude <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>
@github-actions github-actions Bot added size/XS This PR changes 0-9 lines, ignoring generated files area/dashboard Issues or PRs related to the dashboard / UI labels Jun 26, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request performs minor maintenance tasks to improve build consistency and documentation accuracy. By pinning the pnpm version in the container build process, it prevents potential drift between build environments and the project's lockfile. Additionally, it cleans up a stale reference in the documentation to reflect the current project structure.

Highlights

  • Build Reproducibility: Pinned the pnpm version to 11.1.2 in the console Containerfile to ensure the container build environment matches the CI and local development settings.
  • Documentation Update: Updated the storage-immutability documentation to point to the correct in-tree console path instead of an external repository reference.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment Gemini (@gemini-code-assist) Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on Gemini (@gemini-code-assist) comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@dosubot dosubot Bot added area/build Issues or PRs related to image build infrastructure, multi-arch support kind/cleanup Categorizes issue or PR as related to cleanup of code, process, or technical debt labels Jun 26, 2026
@coderabbitai

coderabbitai Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 140e3893-28fa-479c-8b64-d036a1e34d48

📥 Commits

Reviewing files that changed from the base of the PR and between 01addfc and 133303e.

📒 Files selected for processing (2)
  • docs/storage-immutability.md
  • packages/system/dashboard/images/console/Containerfile

📝 Walkthrough

Walkthrough

The PR updates one documentation reference for the Cozystack UI and pins the console image build stage to [email protected] with corepack.

Changes

Build tooling

Layer / File(s) Summary
Pinned pnpm version
packages/system/dashboard/images/console/Containerfile
The builder stage changes corepack activation from pnpm@latest to [email protected].

Documentation reference

Layer / File(s) Summary
UI reference text
docs/storage-immutability.md
The Cozystack UI row in the enforcement table now uses the in-repo console path instead of the external issue reference.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 I nibble docs and pin the brew,
A pnpm path, now neat and true.
One hop for text, one hop for build,
My carrot heart is safely filled.
The console hums, the tables purr,
Hoppy changes—sniff, I concur!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the two main changes: pinning the dashboard console build to pnpm 11.1.2 and updating the documentation link.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch build/dashboard-pnpm-pin

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the documentation in docs/storage-immutability.md to reference the correct path for the Cozystack UI console and pins the pnpm version in the dashboard console's Containerfile to 11.1.2. Feedback suggests leveraging Corepack's native integration with package.json by using RUN corepack enable instead of hardcoding the pnpm version, which ensures the version stays automatically in sync.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +9 to +11
# Pin to the version in package.json's packageManager field so the image build
# matches CI and the lockfile, rather than drifting to a newer pnpm major.
RUN corepack enable && corepack prepare [email protected] --activate

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.

medium

Instead of hardcoding the pnpm version here, you can leverage Corepack's native integration with package.json. When corepack enable is run, any subsequent execution of pnpm (such as pnpm install) will automatically read the packageManager field from package.json, download that exact version, and use it. This avoids having to manually keep the version in sync in multiple files.

RUN corepack enable

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.

LGTM.

Pinning the console image builder to [email protected] is correct and matches the packageManager field in package.json, so the image build, CI, and the lockfile all resolve to the same pnpm instead of drifting to a newer major from pnpm@latest. The pin lives in a base-only layer ahead of the manifest copy, keeping the download cache-friendly.

The doc repoint in storage-immutability.md correctly swaps the stale cozystack-ui#6 cross-repo reference for the UI's in-tree path now that it lives in the monorepo.

On the suggestion to drop the explicit pin and let corepack read packageManager via bare corepack enable: I would keep the explicit corepack prepare — it runs before package.json is copied, so it pre-fetches pnpm in a layer that survives source changes; deferring to install time would re-download on every manifest change. The current approach is the more deterministic one.

@myasnikovdaniil
myasnikovdaniil merged commit 61a5743 into main Jun 29, 2026
17 checks passed
@myasnikovdaniil
myasnikovdaniil deleted the build/dashboard-pnpm-pin branch June 29, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Issues or PRs related to image build infrastructure, multi-arch support area/dashboard Issues or PRs related to the dashboard / UI kind/cleanup Categorizes issue or PR as related to cleanup of code, process, or technical debt size/XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants