Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implemented submit chunking for RFD #0010 #737

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

patrickjcasey
Copy link
Contributor

  • Added support for chunking Query submissions
  • Added test for submission chunking

I just want to ensure that adding an enum variant to QueryState is not considered a breaking change. Also since this changes hipcheck-common, does its version need be incremented or do we just handle that when it comes time to cut a release

- Added support for chunking Query submissions
- Added test for submission chunking

Signed-off-by: Patrick Casey <[email protected]>
@patrickjcasey patrickjcasey force-pushed the patrickjcasey/rfd10-proto-changes branch from e6d0795 to a11f303 Compare December 20, 2024 16:37
@patrickjcasey
Copy link
Contributor Author

closes #730 #732

Copy link
Collaborator

@j-lanson j-lanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing some logic in the QuerySynthesizer, but the rest is looking good!

Comment on lines +179 to +181
QueryState::SubmitInProgress | QueryState::SubmitComplete => {
return Err(Error::ReceivedSubmitWhenExpectingReplyChunk)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the QuerySynthesizer needs to be modified as well to support de-chunking chunked Submit queries.

Comment on lines +259 to +262
// ensure last one is ...Complete
assert_eq!(res.last().unwrap().state(), final_state);
assert_eq!(res.len(), 4);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To ensure the above QuerySynthesizer is implemented correctly, perhaps there should be an additional stage to this test that tries to reassemble the original message from the fragments.

sdk/rust/src/error.rs Show resolved Hide resolved
@j-lanson
Copy link
Collaborator

On the subject of versioning, I would do the following:

  1. Bump hipcheck-common version to 0.2.0
  2. Update rust-sdk to take the new version, and bump it's version to 0.3.0
  3. Update the plugins to take SDK 0.3.0

We can add RFD10 to hipcheck-common-v0.2.0 without another version bump since we haven't released anything yet.

On the next release, we will release new versions of the rust SDK and all plugins.

@patrickjcasey
Copy link
Contributor Author

This is not quite done yet, still working through a couple of things

@patrickjcasey patrickjcasey marked this pull request as draft December 23, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants