Skip to content

build(ui): Install the portal plugins with pnpm 12 - #246

Merged
kevwilliams merged 2 commits into
datum-cloud:mainfrom
yahyafakhroji:build/pnpm-12
Nov 30, 2026
Merged

kevwilliams merged 2 commits into
datum-cloud:mainfrom
yahyafakhroji:build/pnpm-12

Conversation

@yahyafakhroji

Copy link
Copy Markdown
Contributor

Problem
The consumer and provider UI plugins install with pnpm 11.28.9, which holds back no fresh releases and checks no provenance.

Solution
Both plugins pin pnpm 12.23.0 and set minimumReleaseAge: 1440 and trustPolicy: no-downgrade. The trust policy rejected semver@6.3.1, which @babel/core pulls in, so an override moves it to 6.3.2, which has provenance; no package needed an exemption. pnpm denies the agent skills that @tanstack/react-table ships, the unused vitest>tinypool override is gone, and a new workflow runs the shared pnpm policy check.

A frozen install, typecheck, tests (44 consumer, 38 provider), pnpm build and the local policy check passed for both plugins, and both built images answered HTTPS requests for remoteEntry.js and plugin-manifest.json with 200.

Measure Before (pnpm 11.28.9) After (pnpm 12.23.0)
Warm install (consumer / provider) 6.2 s / 7.1 s 3.6 s / 3.2 s
Cold install (consumer / provider) 5.3 s / 5.1 s 4.8 s / 4.6 s
node_modules 270 MB / 272 MB 271 MB / 272 MB
Docker image 272.3 MB / 272.1 MB 272.3 MB / 272.1 MB
Known vulnerabilities (osv-scanner) 0 0

Closes #164
Refs datum-cloud/infra#10104

Both plugins pin pnpm 12.23.0 and now wait a day before installing a new
release and refuse versions with weaker provenance. semver 6.3.1 lacks
provenance, so an override moves it to 6.3.2, and pnpm denies the agent
skills @tanstack/react-table ships.
The shared pnpm policy workflow now checks both plugin lockfiles on pull
requests, pushes to main and a weekly schedule.
@yahyafakhroji
yahyafakhroji requested a review from a team as a code owner November 28, 2026 06:03

@scotwells scotwells 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.

Both portal plugins now install with pnpm 12. Installs wait a day for new package releases and refuse any package whose provenance gets weaker, matching the org's pnpm policy. The one package the trust policy rejected, semver 6.3.1, moves to 6.3.2, which has provenance, so nothing needed an exemption. The consumer and provider builds and the new policy check all pass.

@kevwilliams
kevwilliams merged commit 8a7d42b into datum-cloud:main Nov 30, 2026
5 checks passed
@yahyafakhroji
yahyafakhroji deleted the build/pnpm-12 branch November 30, 2026 12:18
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.

Move to pnpm 12.23.0 and set the install policy

3 participants