Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ gRPC Query Coverage Report |
|
✅ DashSDKFFI.xcframework built for this PR.
SwiftPM (host the zip at a stable URL, then use): .binaryTarget(
name: "DashSDKFFI",
url: "https://your.cdn.example/DashSDKFFI.xcframework.zip",
checksum: "596050833a3dd3600cacfa12cb82a8d3f61d13a1ead3ae044a01719de47a5059"
)Xcode manual integration:
|
…t(drive-abci)--macro-to-define-stack-size-in-tests
There was a problem hiding this comment.
Pull request overview
This PR refactors test infrastructure by introducing a #[stack_size] macro to handle stack overflow issues in tests and renames the rs-dapi-grpc-macros crate to rs-dash-platform-macros to better reflect its expanded scope.
Key Changes:
- Introduced
#[stack_size(BYTES)]attribute macro to run test functions with custom stack sizes - Renamed crate from
rs-dapi-grpc-macrostors-dash-platform-macrosacross the entire codebase - Replaced manual thread spawning in three tests with the new
stack_sizemacro
Reviewed changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/rs-dapi-grpc-macros/src/lib.rs | Added stack_size proc macro attribute implementation |
| packages/rs-dapi-grpc-macros/Cargo.toml | Renamed crate to dash-platform-macros |
| packages/rs-drive-abci/tests/strategy_tests/test_cases/identity_and_document_tests.rs | Applied stack_size macro to three tests, removing manual thread spawning |
| packages/rs-drive-abci/tests/strategy_tests/stack_size.rs | Added stack size logging utilities for debugging |
| packages/rs-drive-abci/tests/strategy_tests/verify_state_transitions.rs | Added BlockInfo import |
| packages/rs-sdk/Cargo.toml | Updated dependency from dapi-grpc-macros to dash-platform-macros |
| packages/dapi-grpc/Cargo.toml | Updated dependency reference |
| packages/dapi-grpc/build.rs | Updated macro paths in code generation |
| Multiple package files | Updated references from dapi_grpc_macros to dash_platform_macros |
| Dockerfile | Updated build paths for renamed crate |
| Cargo.toml | Updated workspace member |
| .github/package-filters/*.yml | Updated CI filter paths for renamed crate |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Issue being fixed or feature implemented
Some of our tests run out of stack space.
A workaround is to manually start new thread for each of them, but it's not very convenient.
What was done?
#[stack_size(BYTES)]macro that can be used to annotate test functionsHow Has This Been Tested?
github actions should pass
Breaking Changes
None
Renamed crate is internal so it should have no impact.
Checklist:
For repository code-owners and collaborators only