Skip to content

Commit

Permalink
Implemented callstack capture flow for a unit test
Browse files Browse the repository at this point in the history
This adds parts of the infrastructure required to display the callstack in the ui. And adds a test to verify the basic capturing concept works.

The implementation requires utilizing rstack_self crate to the capture which in turn required helper crates to wrap its functionality for ease of use.
  • Loading branch information
Fluxie committed Jan 15, 2024
1 parent 7e3d358 commit f77627a
Show file tree
Hide file tree
Showing 18 changed files with 1,200 additions and 23 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Install libunwind-dev
uses: ConorMacBride/install-package@v1
with:
apt: libunwind-dev

- name: Environment
run: |
cargo --version
Expand Down Expand Up @@ -69,6 +74,10 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Install libunwind-dev
run: |
sudo apt update && sudo apt install -y libunwind-dev
- name: Environment
run: |
cargo --version
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/target
**/target
**/*.rs.bk
.vs
packages
Expand Down
4 changes: 4 additions & 0 deletions .idea/proxide.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 120 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,18 @@ wildmatch = "1"
glob = "0.3"
shell-words = "1"

[target.'cfg(unix)'.dependencies]
rstack = "0.3.3"

[dev-dependencies]
portpicker = "0.1.1"
grpc-tester = { version = "0.1.0", path = "test/rust_grpc"}
serial_test = "2.0.0"
lazy_static = "1.4.0"
rstack-launcher = { version = "0.1.0", path = "test/rstack-launcher" }

[target.'cfg(unix)'.dev-dependencies]
rstack-self = "0.3.0"

[profile.release]
debug = true
Loading

0 comments on commit f77627a

Please sign in to comment.