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 5626c71
Show file tree
Hide file tree
Showing 17 changed files with 1,165 additions and 22 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-ptrace
uses: ConorMacBride/install-package@v1
with:
apt: libunwind-ptrace

- 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-ptrace
run: |
sudo apt update && sudo apt install -y libunwind-ptrace
- 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.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ base64 = "0.11"
wildmatch = "1"
glob = "0.3"
shell-words = "1"
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" }
rstack-self = "0.3.0"

[profile.release]
debug = true
Loading

0 comments on commit 5626c71

Please sign in to comment.