-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref: Transition to binaries over npm #1836
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2c91d19
build: Publish binary distributions on npm
lforst 0bf7c78
Craft
lforst 7e9c199
Readmes
lforst e9a9dc0
.
lforst b946acf
build: Add optional dependencies to main cli package for binary distr…
lforst 095392d
feat: Add opt-in code path to use binary distributions instead of dow…
lforst b107f8f
ref: Deprecate install script and don't run it on package install
lforst 91b31f4
rm old tests
lforst 92639c6
Merge remote-tracking branch 'origin' into lforst-remove-install-script
lforst f9656e8
Fix some stuff
lforst cce7242
Ignore rust snapshots
lforst 38337e4
prettier ci shenanigans
lforst b7566db
prettier fix?
lforst 1eaab18
Deprecate mockBinaryPath
lforst b2db952
Merge remote-tracking branch 'origin' into lforst-remove-install-script
lforst 2619f8c
Changelog
lforst 4cb77e4
Merge branch 'master' into lforst-remove-install-script
lforst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x, 16.x, 18.x] | ||
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x] | ||
|
||
name: Test Node ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
|
@@ -88,52 +88,9 @@ jobs: | |
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm install | ||
env: | ||
SENTRYCLI_LOCAL_CDNURL: 'http://localhost:8999/' | ||
|
||
# older node versions need an older nft | ||
- run: npm install @vercel/[email protected] | ||
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' | ||
|
||
- run: npm test | ||
|
||
test_install: | ||
# Don't run install test on release branches, as at this point binaries were not published to CDN yet. | ||
if: ${{ !startsWith(github.ref, 'refs/heads/release/') }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x, 16.x, 18.x] | ||
|
||
name: Test install script on Node ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: sentry-cli-dep | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup empty test app | ||
run: mkdir test-app && cd test-app && npm init --yes | ||
|
||
- name: Install @sentry/cli | ||
run: npm install ../sentry-cli-dep --install-links | ||
working-directory: ./test-app | ||
|
||
- name: Ensure binary can be called from paths | ||
run: | | ||
node_modules/.bin/sentry-cli help | ||
node_modules/@sentry/cli/sentry-cli help | ||
working-directory: ./test-app | ||
|
||
- name: Install @sentry/cli globally | ||
run: npm install ./sentry-cli-dep --install-links -g | ||
|
||
- name: Ensure binary is installed globally | ||
run: sentry-cli help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ coverage | |
dist | ||
dump | ||
checksums.txt | ||
yarn-error.log | ||
|
||
/sentry-cli | ||
/sentry-cli.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
setupFiles: ['<rootDir>/setupTests.js'], | ||
testPathIgnorePatterns: ['<rootDir>/src/'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const path = require('path'); | ||
|
||
process.env.SENTRY_BINARY_PATH = path.join(__dirname, 'js', '__mocks__', 'sentry-cli'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pinned this because CI and local were drifting apart for some reason. :/