Skip to content

ci: Disable yarn age gate when bumping first-party @sentry deps#6513

Open
antonis wants to merge 2 commits into
mainfrom
fix/updater-quarantine-age-gate
Open

ci: Disable yarn age gate when bumping first-party @sentry deps#6513
antonis wants to merge 2 commits into
mainfrom
fix/updater-quarantine-age-gate

Conversation

@antonis

@antonis antonis commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix

📜 Description

The dependency updater's set-version step (scripts/update-package-json.sh, shared by the javascript, cli, wizard, and bundler-plugins jobs in update-deps.yml) runs yarn up on the just-published @sentry/* version.

Yarn 4's npmMinimalAgeGate (default 1 day, auto-enabled on CI) quarantines any version younger than the threshold and fails the install:

@sentry/core@npm:10.68.0: All versions satisfying "10.68.0" are quarantined

This makes the updater fail every time it tries to adopt a freshly published release. This PR sets YARN_NPM_MINIMAL_AGE_GATE=0 for that single yarn up command so the gate is disabled only while upgrading first-party packages.

💡 Motivation and Context

The age gate is a supply-chain safeguard against a malicious version being published and quickly yanked. Every package these updaters touch is first-party @sentry/* from trusted Sentry repos, so there's no such risk here — and the entire purpose of the updater is to pick up the new version immediately rather than waiting a day for the next cron run.

This matches existing precedent in the repo, where the same gate is already disabled for the same "just-published SDK" reason:

  • dev-packages/type-check/run-type-check.sh
  • packages/core/dev-packages/e2e-tests/cli.mjs

The change is scoped inline to the single command, so the gate remains in effect everywhere else.

Failing run: https://github.com/getsentry/sentry-react-native/actions/runs/30092846605/job/89479814118

💚 How did you test it?

CI-only change to the updater script. Verified the env var is scoped to the single yarn up invocation and only ever applies to first-party @sentry/* packages.

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

🤖 Generated with Claude Code

The dependency updater's `set-version` step runs `yarn up` on the
just-published @sentry/* version. Yarn 4's npmMinimalAgeGate (default 1
day, auto-enabled on CI) quarantines the fresh release and fails the
install. Since these are all first-party packages with no supply-chain
risk, disable the gate for that single command so the updater can adopt
the new version immediately instead of waiting a day.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • ci: Disable yarn age gate when bumping first-party @sentry deps by antonis in #6513
  • chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 by dependabot in #6463
  • chore(deps): bump json from 2.17.1.2 to 2.19.9 in /performance-tests by dependabot in #6512
  • chore(deps): update CLI to v3.6.2 by github-actions in #6511
  • chore(deps): update Sentry Android Gradle Plugin to v6.16.0 by github-actions in #6508
  • chore(deps): update Android SDK to v8.50.1 by github-actions in #6503

🤖 This preview updates automatically when you update the PR.

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 0503a9e

@antonis
antonis marked this pull request as ready for review July 24, 2026 12:41

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1de7034. Configure here.

Comment thread scripts/update-package-json.sh Outdated
The set-version path is also sourced by update-rn.sh, which bumps the
third-party react-native package. Only disable npmMinimalAgeGate when
every package being upgraded is @sentry/*, so third-party bumps keep the
supply-chain safeguard.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant