Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
bcebe24
feat: workspace, command tree and shared types
bobbyg603 Nov 24, 2026
f64325e
chore: CI, release configuration and README
bobbyg603 Nov 24, 2026
6736862
feat(symbols): find symbol files on disk by debug id or name
bobbyg603 Nov 24, 2026
3c2e23d
feat: remote verbs through the hosted MCP server
bobbyg603 Nov 24, 2026
38d652b
feat(cli): list global options under their own help heading
bobbyg603 Nov 24, 2026
0375b27
feat(auth): login, logout, whoami, token storage and client credentials
bobbyg603 Nov 24, 2026
d4e6e81
test: keep the real session store and keychain out of CLI tests
bobbyg603 Nov 24, 2026
0f0468c
feat(symbols): upload and delete
bobbyg603 Nov 24, 2026
f71a62c
feat(debugid): debug ids for PE, PDB, ELF, Mach-O, dSYM and .sym file…
bobbyg603 Nov 24, 2026
abc8e70
Merge remote-tracking branch 'origin/feat/debugid' into integration/p…
bobbyg603 Nov 24, 2026
fe356ad
Merge remote-tracking branch 'origin/feat/auth' into integration/phase-1
bobbyg603 Nov 24, 2026
9ec725c
Merge remote-tracking branch 'origin/feat/remote-verbs' into integrat…
bobbyg603 Nov 24, 2026
1fe4d15
Merge remote-tracking branch 'origin/feat/symbols-find' into integrat…
bobbyg603 Nov 24, 2026
50af89c
Merge remote-tracking branch 'origin/feat/symbols-upload' into integr…
bobbyg603 Nov 24, 2026
e48cb19
Merge remote-tracking branch 'origin/chore/ci-release' into integrati…
bobbyg603 Nov 24, 2026
1874c87
fix: refresh the token during long uploads, isolate tests from the re…
bobbyg603 Nov 24, 2026
cfb7dbe
test: build the expected dSYM path with the platform's separator; sho…
bobbyg603 Nov 24, 2026
959c5d9
test: join symbols-find test paths with the platform's separator
bobbyg603 Nov 24, 2026
b15bf15
test: fix the path helper so it compiles
bobbyg603 Nov 24, 2026
661e84a
chore(release): npm as @bugsplat/cli is the planned installer; drop t…
bobbyg603 Nov 24, 2026
53d7f0b
fix: address Copilot's review (secret redaction, local copy safety, t…
bobbyg603 Nov 24, 2026
5cb3ac6
chore(release): build every target as workflow artifacts, with smoke …
bobbyg603 Nov 24, 2026
42aff44
chore(release): RELEASING.md, signing switches, and manual-only artif…
bobbyg603 Nov 24, 2026
76d2a79
feat(mcp): bugsplat mcp, a local MCP server for the symbol tools
bobbyg603 Nov 24, 2026
6288468
feat(symbols): generate Breakpad .sym files with dump_syms
bobbyg603 Nov 24, 2026
4daed10
feat(symbols): upload one .sym file per module with --dump-syms
bobbyg603 Nov 24, 2026
2646248
docs(release): publish to npm by hand; dist's token-based publish job…
bobbyg603 Nov 24, 2026
4a79755
fix: address Copilot's review of dump_syms (pairing, overwrites, netw…
bobbyg603 Nov 24, 2026
1d3b910
test(release): keep inherited credentials out of the npm package test
bobbyg603 Nov 24, 2026
502aaae
fix: address Copilot's second review of symbols dump
bobbyg603 Nov 24, 2026
8882270
docs(release): say what the credential store check covers
bobbyg603 Nov 24, 2026
cb2e2b5
Merge remote-tracking branch 'origin/feat/local-mcp-server' into inte…
bobbyg603 Nov 24, 2026
f77a805
docs: document bugsplat mcp; make the MCP server crate a workspace de…
bobbyg603 Nov 24, 2026
2203dfb
fix: address Copilot's second review (timeouts, bounded ELF reads, fa…
bobbyg603 Nov 24, 2026
da6a10e
Merge branch 'integration/phase-1' into integration/phase-2
bobbyg603 Nov 24, 2026
a7086e6
fix: time out the login client probe; ask for the token again after t…
bobbyg603 Nov 24, 2026
31be603
Merge branch 'integration/phase-1' into integration/phase-2
bobbyg603 Nov 24, 2026
15809c6
feat(reports): reports reprocess, for the server's new reprocess-repo…
bobbyg603 Nov 24, 2026
2c4f493
fix(auth): store a sign-in under the session lock; make the client ca…
bobbyg603 Nov 24, 2026
3693dcf
fix(mcp-client): search a long SSE line once; make the rate-limit tes…
bobbyg603 Nov 24, 2026
075ec01
fix(mcp-client): ignore a leading byte order mark in an SSE stream
bobbyg603 Nov 24, 2026
16f666d
Merge branch 'integration/phase-1' into integration/phase-2
bobbyg603 Nov 24, 2026
4361f45
chore: remove the unbuilt mcp command
bobbyg603 Nov 24, 2026
bed7143
chore: remove bugsplat mcp, the local MCP server
bobbyg603 Nov 24, 2026
e9d8ff7
feat: --json asks a tool for its JSON format
bobbyg603 Nov 24, 2026
0c8b8dd
Merge remote-tracking branch 'origin/integration/phase-1' into feat/d…
bobbyg603 Nov 25, 2026
67ac70b
chore: allow symbolic's MPL-2.0 crates and ignore unreachable zip adv…
bobbyg603 Nov 25, 2026
25dfc5f
Merge remote-tracking branch 'origin/feat/dump-syms' into integration…
bobbyg603 Nov 25, 2026
3460b46
feat: recognise the server's format argument; document dump-syms
bobbyg603 Nov 25, 2026
e724ea0
fix(release): build the Linux targets with a C++ compiler for musl
bobbyg603 Nov 25, 2026
6dd5181
docs: install with npm or from source; list the credential options an…
bobbyg603 Nov 25, 2026
88ce4c3
Merge remote-tracking branch 'origin/fix/musl-cxx' into integration/p…
bobbyg603 Nov 25, 2026
0dbee40
fix: address Copilot's review of the combined PR
bobbyg603 Nov 25, 2026
011cadd
fix(core): reject an API URL that carries credentials, and keep the i…
bobbyg603 Nov 25, 2026
5864bb0
feat: --json keeps the order of the fields the server sends
bobbyg603 Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
groups:
cargo:
patterns: ["*"]
update-types: [minor, patch]

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
# dist generates v-release.yml and refuses to release when the file differs from what it
# generates; its action pins are in dist-workspace.toml.
exclude-paths:
- .github/workflows/v-release.yml
groups:
actions:
patterns: ["*"]

- package-ecosystem: rust-toolchain
directory: /
schedule:
interval: monthly
6 changes: 6 additions & 0 deletions .github/release-build-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Steps dist adds to the release build when `github-build-setup` in dist-workspace.toml names
# this file. dist passes CODESIGN_OPTIONS to `codesign --options`, and Apple's notary service
# only accepts binaries signed with the hardened runtime.
- name: Sign macOS binaries with the hardened runtime
if: ${{ runner.os == 'macOS' }}
run: echo "CODESIGN_OPTIONS=runtime" >> "$GITHUB_ENV"
63 changes: 63 additions & 0 deletions .github/scripts/linux-container-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/usr/bin/env bash
# Checks that a Linux release archive's `bugsplat` is statically linked, then runs it in a
# container of each image, with no network, to show it needs nothing from the distribution.
# Usage: linux-container-test.sh <archive (.tar.gz or .tar.xz)> <target triple> <image>...
set -euo pipefail

archive=$1
target=$2
shift 2
fixtures=$(cd "$(dirname "$0")/../../crates/bugsplat-debugid/tests/fixtures" && pwd)

work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT

mkdir "$work/archive" "$work/elf"
tar -xf "$archive" -C "$work/archive"
bin=$(find "$work/archive" -type f -name bugsplat | head -n 1)
[[ -n $bin ]] || { echo "no bugsplat binary in $archive" >&2; exit 1; }

file "$bin"
headers=$(readelf --program-headers --dynamic --wide "$bin")
if grep -E 'INTERP|NEEDED' <<< "$headers"; then
echo "FAIL: $target binary asks for a loader or a shared library" >&2
exit 1
fi

# The only C++ in bugsplat is symbolic's Swift demangler, and only a Swift symbol reaches it.
printf 'void greet(void) __asm__("$s4main5greetyyF");\nvoid greet(void) {}\n' |
cc -shared -nostdlib -x c - -o "$work/elf/libswift.so"

for image in "$@"; do
docker run --rm --network none \
--volume "$(dirname "$bin"):/bugsplat:ro" \
--volume "$fixtures:/fixtures:ro" \
--volume "$work/elf:/elf:ro" \
--env TARGET="$target" \
--env BUGSPLAT_TOKEN_STORE=file \
--env BUGSPLAT_CONFIG_DIR=/tmp/config \
"$image" sh -euc '
. /etc/os-release
echo "== $PRETTY_NAME, $(uname -m)"
bugsplat=/bugsplat/bugsplat

$bugsplat --version | grep -F "($TARGET)"
$bugsplat symbols info /fixtures/elfy/hello.elf | grep -F 85fe216fc7dd441f04c237310a56081fbf23c082

$bugsplat symbols dump --output /tmp/sym /fixtures/elfy/hello.elf
head -n 1 /tmp/sym/hello.sym | grep -Fx "MODULE Linux x86_64 6F21FE85DDC71F4404C237310A56081F0 hello.elf"

$bugsplat symbols dump --output /tmp/sym /elf/libswift.so
grep -E "^PUBLIC .* greet\(\)$" /tmp/sym/libswift.so.sym

# Two ELF files the build did not choose: the image'"'"'s shell, and bugsplat itself.
sh=$(readlink -f /bin/sh)
$bugsplat symbols dump --output /tmp/sym "$sh" /bugsplat/bugsplat
for sym in "/tmp/sym/$(basename "$sh").sym" /tmp/sym/bugsplat.sym; do
echo "$sym: $(head -n 1 "$sym"), $(grep -c "^PUBLIC " "$sym") PUBLIC records"
grep -q "^PUBLIC " "$sym"
done
grep -q "^PUBLIC .* bugsplat_dumpsyms::" /tmp/sym/bugsplat.sym
'
echo "ran in $image: $target"
done
60 changes: 60 additions & 0 deletions .github/scripts/npm-package-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/usr/bin/env bash
# Installs the npm package dist generated into a throwaway project and runs `bugsplat` through
# it. The package downloads its binary from a GitHub Release, which doesn't exist before the
# tag, so the download URL is pointed at the archives in the same folder.
# Usage: npm-package-test.sh <folder holding dist's artifacts>
set -euo pipefail

distrib=$(cd "$1" && pwd)
port=${PORT:-8765}

work=$(mktemp -d)
server=
cleanup() {
if [[ -n $server ]]; then
kill "$server" 2> /dev/null || true
wait "$server" 2> /dev/null || true
fi
rm -rf "$work"
}
trap cleanup EXIT

python3 -m http.server "$port" --bind 127.0.0.1 --directory "$distrib" > /dev/null 2>&1 &
server=$!
for _ in $(seq 1 50); do
curl -fs -o /dev/null "http://127.0.0.1:$port/" && break
sleep 0.1
done

tar -xzf "$distrib/bugsplat-cli-npm-package.tar.gz" -C "$work"
node -e '
const fs = require("fs");
const [file, url] = process.argv.slice(1);
const manifest = JSON.parse(fs.readFileSync(file, "utf8"));
manifest.artifactDownloadUrls = [url];
fs.writeFileSync(file, JSON.stringify(manifest, null, 2));
' "$work/package/package.json" "http://127.0.0.1:$port"
tar -czf "$work/package.tgz" -C "$work" package

mkdir "$work/project"
cd "$work/project"
npm init -y > /dev/null
npm install --no-audit --no-fund "$work/package.tgz"

# Credentials in the caller's environment would outrank the empty session store and could
# send `whoami` to the real API.
unset BUGSPLAT_ACCESS_TOKEN BUGSPLAT_CLIENT_ID BUGSPLAT_CLIENT_SECRET BUGSPLAT_DATABASE \
BUGSPLAT_API_URL BUGSPLAT_HOST SYMBOL_UPLOAD_CLIENT_ID SYMBOL_UPLOAD_CLIENT_SECRET
export BUGSPLAT_TOKEN_STORE=file
export BUGSPLAT_CONFIG_DIR="$work/config"
version=$(npx --no-install bugsplat --version)
echo "$version"
[[ $version == "bugsplat "* ]] || { echo "FAIL: unexpected --version output" >&2; exit 1; }

set +e
npx --no-install bugsplat --api-url http://127.0.0.1:9 whoami
code=$?
set -e
[[ $code -eq 3 ]] || { echo "FAIL: exit code $code did not pass through npm's wrapper, expected 3" >&2; exit 1; }

echo "npm package test passed"
102 changes: 102 additions & 0 deletions .github/scripts/smoke-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
#!/usr/bin/env bash
# Runs a release archive's `bugsplat` on the machine it was built for.
# Usage: smoke-test.sh <archive (.tar.gz, .tar.xz or .zip)> <target triple>
set -euo pipefail

archive=$1
target=$2
fixtures=$(cd "$(dirname "$0")/../../crates/bugsplat-debugid/tests/fixtures" && pwd)

work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT
# A Windows program can't open the /tmp path Git Bash reports.
if command -v cygpath > /dev/null; then
work=$(cygpath -m "$work")
fixtures=$(cygpath -m "$fixtures")
fi

case $archive in
*.zip) unzip -q "$archive" -d "$work/archive" ;;
*) mkdir "$work/archive" && tar -xf "$archive" -C "$work/archive" ;;
esac
bin=$(find "$work/archive" -type f \( -name bugsplat -o -name bugsplat.exe \) | head -n 1)
[[ -n $bin ]] || { echo "no bugsplat binary in $archive" >&2; exit 1; }

unset BUGSPLAT_ACCESS_TOKEN BUGSPLAT_CLIENT_ID BUGSPLAT_CLIENT_SECRET BUGSPLAT_DATABASE \
BUGSPLAT_API_URL BUGSPLAT_HOST SYMBOL_UPLOAD_CLIENT_ID SYMBOL_UPLOAD_CLIENT_SECRET
# Never the keychain of whoever runs this.
export BUGSPLAT_TOKEN_STORE=file
export BUGSPLAT_CONFIG_DIR="$work/config"

fail() {
echo "FAIL: $*" >&2
exit 1
}

# Runs bugsplat with the given arguments; leaves its output in $out and exit code in $code.
run() {
set +e
out=$("$bin" "$@" 2>&1)
code=$?
set -e
echo "\$ bugsplat $* (exit $code)"
echo "$out"
}

expect() {
local want_code=$1 want_text=$2
shift 2
run "$@"
[[ $code -eq $want_code ]] || fail "bugsplat $*: exit $code, expected $want_code"
[[ $out == *"$want_text"* ]] || fail "bugsplat $*: output lacks \"$want_text\""
}

expect 0 "($target)" --version

expect 0 E546B55B6D214E86871B40AC35CD0D461 symbols info "$fixtures/pdb-guid/bugsplat.pdb"
expect 0 64FB82ED7A000 symbols info "$fixtures/pdb-guid/bugsplat.dll"
expect 0 85fe216fc7dd441f04c237310a56081fbf23c082 symbols info "$fixtures/elfy/hello.elf"
expect 0 ac15902fba2e31c18b29da51e889b321 symbols info "$fixtures/macho-uuid/bugsplat.app.dSYM"

expect 0 hello.sym symbols dump --output "$work/sym" "$fixtures/elfy/hello.elf"
module=$(head -n 1 "$work/sym/hello.sym" | tr -d '\r')
[[ $module == "MODULE Linux x86_64 6F21FE85DDC71F4404C237310A56081F0 hello.elf" ]] ||
fail "hello.sym starts with \"$module\""

# Nothing listens on port 9, and a stored session that hasn't expired needs no request.
api=http://127.0.0.1:9
session="$BUGSPLAT_CONFIG_DIR/sessions/http___127.0.0.1_9.json"
seed_session() {
mkdir -p "$(dirname "$session")"
cat > "$session" << JSON
{"access_token":"smoke-test","refresh_token":null,"expires_at":4000000000,"client_id":"smoke-test","token_endpoint":"$api/oauth/token","email":"smoke@example.com"}
JSON
}

expect 3 "Not signed in" --api-url "$api" whoami
seed_session
expect 0 smoke@example.com --api-url "$api" whoami
expect 0 "Signed out" --api-url "$api" logout
[[ ! -e $session ]] || fail "logout left $session behind"
expect 3 "Not signed in" --api-url "$api" whoami

# The OS credential store, only on a CI runner: anywhere else this would reach a real keychain.
if [[ ${GITHUB_ACTIONS:-} == true ]]; then
if [[ $(uname -s) == Linux ]]; then
# A runner has no Secret Service, which is what a container or a server looks like.
export BUGSPLAT_TOKEN_STORE=auto
expect 3 "Not signed in" --api-url "$api" whoami
seed_session
expect 0 smoke@example.com --api-url "$api" whoami
expect 0 "Signed out" --api-url "$api" logout
[[ ! -e $session ]] || fail "logout left $session behind"

export BUGSPLAT_TOKEN_STORE=keychain
expect 1 Keychain --api-url "$api" whoami
else
export BUGSPLAT_TOKEN_STORE=keychain
expect 3 "Not signed in" --api-url "$api" whoami
fi
fi

echo "smoke test passed: $target"
Loading
Loading