Skip to content

fix(ci): Install both tarballs in validate job to satisfy cross-dep#6052

Merged
antonis merged 1 commit intorelease/8.9.1from
fix/validate-cross-dep
Apr 27, 2026
Merged

fix(ci): Install both tarballs in validate job to satisfy cross-dep#6052
antonis merged 1 commit intorelease/8.9.1from
fix/validate-cross-dep

Conversation

@antonis
Copy link
Copy Markdown
Contributor

@antonis antonis commented Apr 27, 2026

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Follow-up to #6049. The job_validate_tarball install step ran npm install <core tarball> only. Core's published package.json declares @sentry/expo-upload-sourcemaps at a concrete version (yarn pack resolves workspace:* at pack time). On a release branch the bumped version isn't on the npm registry yet, so npm falls back to fetching it and fails with ETARGET.

Install both tarballs together so the sister dep is satisfied from local.

Reproduced and fixed:

💡 Motivation and Context

Unblocks the 8.9.2 release. The validate job's mode/file checks already pass on the failing run — only the install step was broken, and only by my own validation design (not the underlying tarball fix from #6049).

💚 How did you test it?

  • Locally bumped both packages to 8.9.99 (not on npm), built tarballs with the new build-tarball.sh, and ran npm install --no-save <expo>.tgz <core>.tgz in a fresh dir. Install completes; node_modules/@sentry/expo-upload-sourcemaps/package.json shows version 8.9.99 (resolved from local tarball, not registry).
  • All four bin links resolve and sentry-xcode.sh is executable post-install.

📝 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
  • No breaking changes

🔮 Next steps

After merge: delete the failed release/8.9.2 branch (git push origin --delete release/8.9.2) and re-dispatch the Release workflow. The new release/8.9.2 will be created off the now-fixed release/8.9.1 and the validate job will pass.

🤖 Generated with Claude Code

The validate job ran `npm install <core tarball>` only. The published
core package.json declares `@sentry/expo-upload-sourcemaps` at the same
version as core (workspace:* is resolved at pack time). On a release
branch the bumped version is not on the npm registry yet, so npm tried
to fetch from registry and failed with ETARGET (e.g. when releasing
8.9.2: "No matching version found for @sentry/expo-upload-sourcemaps@8.9.2").

Install both tarballs together so the sister dep is satisfied from local.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 27, 2026

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

Generated by 🚫 dangerJS against ef34373

@antonis
Copy link
Copy Markdown
Contributor Author

antonis commented Apr 27, 2026

@sentry review

@antonis
Copy link
Copy Markdown
Contributor Author

antonis commented Apr 27, 2026

@cursor review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit ef34373. Configure here.

@antonis antonis marked this pull request as ready for review April 27, 2026 09:46
@antonis antonis merged commit dd7772a into release/8.9.1 Apr 27, 2026
70 of 79 checks passed
@antonis antonis deleted the fix/validate-cross-dep branch April 27, 2026 09:59
antonis added a commit that referenced this pull request Apr 27, 2026
* fix(core): Restore tarball script permissions and missing EAS build hook (#6049)

* fix(core): Restore tarball script permissions and missing EAS build hook

The npm pack -> yarn pack switch in #6037 introduced two regressions:

1. yarn pack stores files with mode 0644. scripts/sentry-xcode.sh,
   invoked directly by Xcode's build phase, fails with "Permission
   denied" (#6047). Re-pack the tarball after yarn pack to restore 0755
   on shell scripts and bin entrypoints.

2. yarn pack does not auto-include files referenced from the bin field.
   scripts/eas-build-hook.js was never in the .npmignore allowlist, so
   the three sentry-eas-build-* bin commands silently stopped working
   in the tarball (#6048 follow-up). Add it to the allowlist.

Add a job_validate_tarball CI job that installs the produced tarball
into a fresh project and asserts script modes, bin links, post-install
executability, and that workspace:* specs were resolved.

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

* docs: Update changelog

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

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(ci): Install both tarballs in validate job to satisfy cross-dep (#6052)

The validate job ran `npm install <core tarball>` only. The published
core package.json declares `@sentry/expo-upload-sourcemaps` at the same
version as core (workspace:* is resolved at pack time). On a release
branch the bumped version is not on the npm registry yet, so npm tried
to fetch from registry and failed with ETARGET (e.g. when releasing
8.9.2: "No matching version found for @sentry/expo-upload-sourcemaps@8.9.2").

Install both tarballs together so the sister dep is satisfied from local.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* release: 8.9.2

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: antonis <304044+antonis@users.noreply.github.com>
Co-authored-by: sentry-release-bot[bot] <180476844+sentry-release-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants