Skip to content

Commit

Permalink
Add sentry support (#9598)
Browse files Browse the repository at this point in the history
* write version dynamically to rust

exposed parcel to sentry via env var

* added tag support via env vars

* remove redundant panic call

* added conditional compilation, only compiles sentry on canary builds, updated pipelines and improved logging of tags

* remove panic used for testing

* respond to PR comments

* fix flow error, add empty stub for non-canary builds

* missing change from upstream

* revert dev-release with sentry

* add napi import to stub

* reintroduce arc for type compatibility

* fix flow error

---------

Co-authored-by: ngrujic <ngrujic@atlassian.com>
Co-authored-by: Matt Jones <mattjones701@gmail.com>
  • Loading branch information
3 people committed Apr 21, 2024
1 parent 91b47ff commit f9c978e
Show file tree
Hide file tree
Showing 15 changed files with 1,120 additions and 64 deletions.
1 change: 1 addition & 0 deletions .github/workflows/canary-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: ./.github/workflows/release.yml
secrets: inherit
with:
profile: canary
release-command: |
yarn canary:release --summary-file
node scripts/tag-release.mjs --tag nightly
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ jobs:
uses: ./.github/workflows/release.yml
secrets: inherit
with:
profile: canary
release-command: yarn dev:release
type: dev
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
if: ${{ matrix.target == 'aarch64-apple-darwin' }}
run: sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
- name: Build native packages
run: yarn build-native-release
run: yarn build-native-${{ input.profile || 'release' }}
env:
RUST_TARGET: ${{ matrix.target }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
override: true
- uses: bahmutov/npm-install@v1.8.35
- name: Build native packages
run: yarn build-native-release
run: yarn build-native-${{ input.profile || 'release' }}
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
run: strip packages/*/*/*.node
- name: Upload artifacts
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
with:
shared-key: ${{ matrix.target }}
- name: Build native packages
run: yarn build-native-release
run: yarn build-native-${{ input.profile || 'release' }}
env:
RUST_TARGET: ${{ matrix.target }}
CFLAGS: ${{ matrix.cflags }}
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
target: ${{ matrix.target }}
- uses: bahmutov/npm-install@v1.8.35
- name: Build native packages
run: yarn build-native-release
run: yarn build-native-${{ input.profile || 'release' }}
env:
RUST_TARGET: ${{ matrix.target }}
CFLAGS: ${{ matrix.cflags }}
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
fetch-depth: 0
- uses: bahmutov/npm-install@v1.8.35
- name: Build native packages
run: yarn build-native-release
run: yarn build-native-${{ input.profile || 'release' }}
- name: Download artifacts
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit f9c978e

Please sign in to comment.