Skip to content

Commit

Permalink
feat: implemented submit chunking for RFD #10
Browse files Browse the repository at this point in the history
- Added support for chunking Query submissions
- Added test for submission chunking
- Bumped hipcheck-common to 0.2.0
- Bumped hipcheck-sdk to 0.3.0
- Updated plugins to rely on hipcheck-sdk 0.3.0
- Bumped minor version of all plugins relying on hipcheck-sdk

Signed-off-by: Patrick Casey <[email protected]>
  • Loading branch information
patrickjcasey authored and j-lanson committed Jan 10, 2025
1 parent 5981c83 commit 00c1d10
Show file tree
Hide file tree
Showing 26 changed files with 212 additions and 136 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion hipcheck-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "hipcheck-common"
description = "Common functionality for the Hipcheck gRPC protocol"
repository = "https://github.com/mitre/hipcheck"
version = "0.1.0"
version = "0.2.0"
license = "Apache-2.0"
edition = "2021"

Expand Down
7 changes: 5 additions & 2 deletions hipcheck-common/proto/hipcheck/v1/hipcheck.proto
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ enum QueryState {
// Something has gone wrong.
QUERY_STATE_UNSPECIFIED = 0;

// We are submitting a new query.
QUERY_STATE_SUBMIT = 1;
// We are completed submitting a new query.
QUERY_STATE_SUBMIT_COMPLETE = 1;

// We are replying to a query and expect more chunks.
QUERY_STATE_REPLY_IN_PROGRESS = 2;
Expand All @@ -203,6 +203,9 @@ enum QueryState {
// the last message in the reply. This tells the receiver that all chunks
// have been received.
QUERY_STATE_REPLY_COMPLETE = 3;

// We are sending a query to a plugin and we are expecting to need to send more chunks
QUERY_STATE_SUBMIT_IN_PROGRESS = 4;
}

/*===========================================================================
Expand Down
Loading

0 comments on commit 00c1d10

Please sign in to comment.