Skip to content

chore(deps): add 7-day pnpm minimumReleaseAge - #3669

Merged
zurfyx merged 1 commit into
mainfrom
ci/pnpm-minimum-release-age
Jul 7, 2026
Merged

zurfyx merged 1 commit into
mainfrom
ci/pnpm-minimum-release-age

Conversation

@zurfyx

@zurfyx zurfyx commented Jul 7, 2026

Copy link
Copy Markdown
Member

Why

The Internal Registry dependency-check has been failing intermittently (flagged by Cindy Zhang). Root cause: Metaccio serves third-party packages via pull-through but holds freshly-published versions in a quarantine window before they're installable. astryx tracks bleeding-edge deps and constantly pulls day-old transitive versions (caniuse-lite, browserslist, @typescript-eslint/*) into the lockfile via ^ range resolution — faster than the mirror clears quarantine. Every PR then re-runs the check against those unmirrored versions and fails.

This matters beyond CI: once Metaccio is enforced on laptops, a lockfile pinning a still-quarantined version means employees can't pnpm install at all.

What

Add pnpm's minimumReleaseAge (7 days = 10080 minutes) so the resolver never selects a version younger than the quarantine window. Unlike the Dependabot cooldown (which only governs Dependabot's own PRs), this gates every resolution — direct + transitive, human PRs, local dev, CI — which is the class that actually causes the failures.

  • Kept equal to the existing 7-day Dependabot cooldown so the two windows stay in lockstep.
  • @astryxdesign/* excluded — first-party packages are quarantine-exempt on the server.

Notes

  • Preventive, not retroactive. minimumReleaseAge gates future resolutions; pnpm skips re-resolution when the lockfile already satisfies package.json, so this PR intentionally carries no lockfile churn. The currently-locked fresh versions age out of quarantine on their own within a day; the gate stops the next wave from landing.
  • Graceful fallback confirmed on pnpm 10.34.1: with the gate on, an in-range resolution falls back to the newest mature version (verified browserslist@^4.28.0 → 4.28.4, not the fresh 4.28.5) rather than erroring. Frozen-lockfile CI is unaffected.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 7, 2026
@vercel

vercel Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 7, 2026 6:23pm

Request Review

Hold back freshly-published registry versions for 7 days so lockfile
entries are always past Metaccio's quarantine window before they can
break `pnpm install` on Metaccio-enforced laptops or the internal-registry
dependency-check. Value is in minutes (7*24*60 = 10080); matches the
existing Dependabot npm cooldown so the two windows stay in lockstep.

First-party @astryxdesign/* is quarantine-exempt on the server, so it's
excluded here too. minimumReleaseAge gates future resolutions; it does not
rewrite the current lockfile, so this is a preventive change with no
lockfile churn.
@zurfyx
zurfyx force-pushed the ci/pnpm-minimum-release-age branch from 06c0e64 to eafa5b7 Compare July 7, 2026 18:20
@zurfyx
zurfyx enabled auto-merge (squash) July 7, 2026 18:27
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Jul 7, 2026

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

nice find!

@zurfyx
zurfyx merged commit 570c837 into main Jul 7, 2026
15 of 16 checks passed
josephfarina added a commit that referenced this pull request Jul 7, 2026
Resolve apps/docsite/package.json conflict as a union: keep main's
@vercel/speed-insights (#3670) alongside this branch's @astryxdesign/charts.
Also picks up main's 7-day pnpm minimumReleaseAge (#3669).

Restores the PR to a mergeable state so pull_request CI — which GitHub
cannot run while the PR is CONFLICTING (no merge ref) — runs again.

Co-authored-by: Cursor <[email protected]>
@zurfyx
zurfyx deleted the ci/pnpm-minimum-release-age branch July 9, 2026 15:07

This branch was successfully deployed

1 active deployment
Preview — eafa5b71 Deployed Jul 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants