Skip to content

Commit

Permalink
Upload symbols to Sentry (#1063)
Browse files Browse the repository at this point in the history
* upload symbols to sentry

* set log level to debug

* splitinfo=packed and organise deps

* put back dep

* put back clippy

* create sentry release in CI

* fix symbol path
  • Loading branch information
ggordonhall authored Oct 23, 2023
1 parent 3d18052 commit ef89085
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 37 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,26 @@ jobs:
path: target/${{ matrix.target }}/release/bundle
retention-days: 5

- name: Setup Sentry CLI
uses: mathieu-bour/[email protected]
with:
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
organization: ${{ secrets.SENTRY_ORG }}
project: ${{ secrets.SENTRY_PROJECT }}

- name: Create Sentry release
run: |
sentry-cli releases new "${{ steps.release-version.outputs.RELEASE_VERSION }}"
sentry-cli releases set-commits "${{ steps.release-version.outputs.RELEASE_VERSION }}" --auto
- name: (MacOS) Upload source maps to Sentry
if: matrix.name == 'macos-11'
run: |
sentry-cli debug-files upload \
--log-level debug \
--include-sources \
target/${{ matrix.target }}/release/bloop.dSYM
- name: Rename tar.gz in macos
if: matrix.name == 'macos-11'
run: |
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ opt-level = 3
[profile.release]
debug = 1
lto = true
split-debuginfo = "packed"

[profile.profiler]
inherits = "release"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@
"node": "16.17.0",
"npm": "8.19.0"
}
}
}
78 changes: 42 additions & 36 deletions server/bleep/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,22 @@ harness = false
tantivy = { version = "0.21.0", features = ["mmap"] }
tantivy-columnar = "0.2.0"
tokio = { version = "1.32.0", features = ["macros", "process", "rt", "rt-multi-thread", "io-std", "io-util", "sync", "fs"] }
tokio-stream = "0.1.14"
async-trait = "0.1.73"
async-stream = "0.3.5"
flume = "0.10.14"
futures = "0.3.28"
rayon = "1.8.0"
clap = { version = "4.4.4", features = ["derive"] }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter", "registry"] }
tracing-appender = "0.2.2"
color-eyre = "0.6.2"
sqlx = { version = "0.6.3", features = ["sqlite", "migrate", "offline", "runtime-tokio-rustls", "chrono", "uuid"] }
regex = "1.9.5"
regex-syntax = "0.6.29"
fuzzy-matcher = "0.3.7"

uuid = { version = "1.4.1", features = ["v4", "fast-rng", "serde"] }
sqlx = { version = "0.6.3", features = ["sqlite", "migrate", "offline", "runtime-tokio-rustls", "chrono", "uuid"] }

# for debugging
console-subscriber = { version = "0.1.10", optional = true }
Expand Down Expand Up @@ -91,13 +97,43 @@ hyperpolyglot = { git = "https://github.com/bloopai/hyperpolyglot" }
blake3 = "1.5.0"
notify-debouncer-mini = { version = "0.3.0", default-features = false }

# git
git-version = "0.3.5"
gix = { version="0.47.0", features = ["blocking-http-transport-reqwest-rust-tls", "pack-cache-lru-static"] }

# semantic
rake = "0.1"
ndarray = "0.15"
qdrant-client = { version = "1.5.0", default-features = false }
tiktoken-rs = "0.4.5"
tokenizers = { version = "0.14.0", default-features = false, features = ["progressbar", "cli", "onig", "esaxx_fast"] }
ort = { git = "https://github.com/bloopai/ort", branch = "env-builder-telemetry" }

# answer parsing
# We use the git version here, so that we can pull in recent changes that make footnotes work. The
# latest crates.io version at the time of writing does not include necessary patches.
#
# 25.09.23: we now maintain a fork for stability
comrak = { default-features = false, git = "https://github.com/rsdy/comrak" }
lazy-regex = "3.0.2"
quick-xml = { version = "0.29.0", features = ["serialize"] }

# telemetry
sentry = { version = "0.31.7", default-features = false, features = ["tracing", "contexts", "debug-images", "panic", "rustls", "reqwest"] }
sentry-tracing = "0.31.7"
rudderanalytics = { version = "1.1.2", default-features = false, features = ["rustls-tls"] }

# auth
jsonwebtoken = { version = "8.3.0", features = ["use_pem"] }
jwt-authorizer = { version = "0.11.0", default-features = false, features = ["rustls-tls-webpki-roots", "chrono"] }
ring = "0.16.20"
hex = "0.4.3"
base64 = "0.21.4"

# misc
serde = "1.0.188"
regex = "1.9.5"
regex-syntax = "0.6.29"
erased-serde = "0.3.31"
smallvec = { version = "1.11.1", features = ["serde"]}
async-trait = "0.1.73"
flume = "0.10.14"
either = "1.9.0"
compact_str = "0.7.1"
bincode = "1.3.3"
Expand All @@ -107,46 +143,16 @@ phf = "0.11.2"
rand = "0.8.5"
once_cell = "1.18.0"
relative-path = "1.9.0"
qdrant-client = { version = "1.5.0", default-features = false }
tokenizers = { version = "0.14.0", default-features = false, features = ["progressbar", "cli", "onig", "esaxx_fast"] }
tokio-stream = "0.1.14"
ort = { git = "https://github.com/bloopai/ort", branch = "env-builder-telemetry" }
ndarray = "0.15"
uuid = { version = "1.4.1", features = ["v4", "fast-rng", "serde"] }
jsonwebtoken = { version = "8.3.0", features = ["use_pem"] }
tiktoken-rs = "0.4.5"
semver = { version = "1", features = ["serde"] }
rake = "0.1"

# telemetry
sentry = { version = "0.31.7", default-features = false, features = ["tracing", "contexts", "debug-images", "panic", "rustls", "reqwest"] }
rudderanalytics = { version = "1.1.2", default-features = false, features = ["rustls-tls"] }
async-stream = "0.3.5"
erased-serde = "0.3.31"
scc = { version= "1.9.1", features = ["serde"] }
sentry-tracing = "0.31.7"
git-version = "0.3.5"
gix = { version="0.47.0", features = ["blocking-http-transport-reqwest-rust-tls", "pack-cache-lru-static"] }
thread-priority = "0.13.1"
# We use the git version here, so that we can pull in recent changes that make footnotes work. The
# latest crates.io version at the time of writing does not include necessary patches.
#
# 25.09.23: we now maintain a fork for stability
comrak = { default-features = false, git = "https://github.com/rsdy/comrak" }
lazy-regex = "3.0.2"
quick-xml = { version = "0.29.0", features = ["serialize"] }
ring = "0.16.20"
hex = "0.4.3"
base64 = "0.21.4"
jwt-authorizer = { version = "0.11.0", default-features = false, features = ["rustls-tls-webpki-roots", "chrono"] }

[dev-dependencies]
criterion = { version = "0.5.1", features = ["async_tokio"] }
pretty_assertions = "1.4.0"
tempdir = "0.3.7"
expect-test = "1.4.1"
reqwest = { version = "0.11.20", default-features = false, features = ["blocking"] }
git-version = "0.3.5"

[build-dependencies]
phf_codegen = "0.11.2"
Expand Down

0 comments on commit ef89085

Please sign in to comment.