Skip to content

Commit

Permalink
Merge branch 'master' into feature/wasm
Browse files Browse the repository at this point in the history
* master: (22 commits)
  fix(debuginfo): Update dmsort to 1.0.1 to avoid panic due to UB (#287)
  ci: Use GHA instead of zeus (#286)
  ref: Introduce explicit NameMangling and better DemangleOptions (#275)
  meta: Bump all semver-major dependencies (#283)
  feat(demangle): Update swift demangler to 5.3 (#282)
  ref: Add File/FunctionIterator and lifetimes to DebugSession (#279)
  fix: Implement new clippy advice (#280)
  fix: Add a SymbolIterator and Lifetimes to ObjectLike trait (#277)
  ci: Switch to GitHub Actions (#273)
  ref: Introduce feature flags for demangling languages (#274)
  ref(common): Change InstructionInfo setters to Option (#272)
  ref: Remove all deprecated items (#271)
  ref: Replace failure with std::error::Error (#264)
  ref: Remove deprecated proguard support (#267)
  build: Reorganize the workspace (#266)
  build(unreal): Rename with-serde to serde (#265)
  fix(debuginfo): Detect mangled anonymous namespaces in PDB inlinees (#261)
  release: 7.5.0
  meta: Update changelog for 7.5.0
  feat: Unsafe transmute for PDB symbols (#258)
  ...
  • Loading branch information
jan-auer committed Nov 17, 2020
2 parents 26b819d + f4489e0 commit bc6b8e5
Show file tree
Hide file tree
Showing 265 changed files with 3,475 additions and 4,055 deletions.
13 changes: 9 additions & 4 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
---
minVersion: "0.9.0"
minVersion: "0.13.2"
github:
owner: getsentry
repo: symbolic
changelogPolicy: auto

statusProvider:
name: github
artifactProvider:
name: github

preReleaseCommand: bash scripts/bump-version
targets:
- name: crates
- name: pypi
- name: github
changelogPolicy: simple
requireNames:
- /^symbolic-.*-py2.py3-none-macosx_10_13_x86_64.whl$/
- /^symbolic-.*-py2.py3-none-macosx_10_15_x86_64.whl$/
- /^symbolic-.*-py2.py3-none-manylinux2010_i686.whl$/
- /^symbolic-.*-py2.py3-none-manylinux2010_x86_64.whl$/
- /^symbolic-.*.zip$/
106 changes: 106 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: CI

on:
push:
branches:
- master
- "release/**"
pull_request:

jobs:
lints:
name: Style/Linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- uses: actions/setup-python@v2
with:
python-version: 3.7

- uses: Swatinem/rust-cache@v1

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- run: make style-python

- name: Run cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --workspace --tests --examples -- -D clippy::all

- run: make lint-python

test-rust:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

name: Rust Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- uses: Swatinem/rust-cache@v1

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features

test-python:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

name: Python Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

env:
SYMBOLIC_DEBUG: 1

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- uses: actions/setup-python@v2
with:
python-version: 3.7

- uses: Swatinem/rust-cache@v1

- run: make test-python
79 changes: 79 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Release

on:
push:
branches:
- "release/**"

jobs:
python-wheel-mac:
name: Python macOS
runs-on: macos-10.15

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- uses: actions/setup-python@v2
with:
python-version: 2.7

- run: make wheel SYMBOLIC_PYTHON=python2

- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: py/dist/*

python-wheel-linux:
strategy:
fail-fast: false
matrix:
build-arch: [i686, x86_64]

name: Python Linux ${{ matrix.build-arch }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Build in Docker
run: make wheel-manylinux IMAGE=quay.io/pypa/manylinux2010_${{ matrix.build-arch }}

- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: py/dist/*

sdist:
name: Python sdist
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 2.7

- run: make sdist

- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: py/dist/*
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# Rust
target/
**/*.rs.bk
# Only ignore the library's lockfile, not for the CABI
/Cargo.lock
Cargo.lock

# Python
*.pyc
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[submodule "minidump/third_party/breakpad"]
path = minidump/third_party/breakpad
path = symbolic-minidump/third_party/breakpad
url = https://github.com/getsentry/breakpad
shallow = true
[submodule "minidump/third_party/lss"]
path = minidump/third_party/lss
path = symbolic-minidump/third_party/lss
url = https://github.com/getsentry/linux-syscall-support
77 changes: 0 additions & 77 deletions .travis.yml

This file was deleted.

30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## Unreleased

**Breaking Changes**:

- Usage of `failure` was removed, and all Error types were changed to only implement `std::error::Error` and related traits.
- `symbolic-proguard` was removed in favor of the `proguard` crate. Proguard is still supported via `symbolic-cabi` and the python API however.
- Deprecated APIs have been removed:
- `InstructionInfo`'s fields are no longer public.
- `pointer_size`, `instruction_alignment` and `ip_register_name` have moved from `Arch` to `CpuFamily`.
- `Arch::register_name` as been moved to `CpuFamily::cfi_register_name`.
- `Dwarf::raw_data` and `Dwarf::section_data` have been replaced with the `raw_section` and `section` APIs.
- `Unreal4ContextRuntimeProperties::misc_primary_cpu_brand` is has been removed.
- Deprecated Python APIs have been removed:
- `CodeModule.id` and `CodeModule.name` Use `debug_id` and `code_file`, respectively.
- `DemangleFormat` and public fields of `DemangleOptions` have been removed in favor of builder methods on `DemangleOptions`.
- `Name::new` now takes both the `NameMangling` state, and the `Language` explicitly.

## 7.5.0

**Changes**:

- Add missing unreal data attributes (`EngineData` and `GameData`). ([#257](https://github.com/getsentry/symbolic/pull/257))
- Expose binary names for ELF and MachO ([#252](https://github.com/getsentry/symbolic/pull/252))
- Mark enums as `non_exhaustive`. ([#256](https://github.com/getsentry/symbolic/pull/256))
- Add method to create Archive from bytes. ([#250](https://github.com/getsentry/symbolic/pull/250))

**Bug Fixes**:

- Fix compilation errors on nightly Rust due to a lifetime mismatch. This is temporarily solved with a statically verified unsafe transmute, which will be replaced in an upcoming breaking change. ([#258](https://github.com/getsentry/symbolic/pull/258))

## 7.4.0

**Deprecations**:
Expand Down
Loading

0 comments on commit bc6b8e5

Please sign in to comment.