-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement image save and export container #14121
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
base: feature/wsl-for-apps
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 15 comments.
| VERIFY_IS_TRUE(GetFileSizeEx(contTarFileHandle.get(), &fileSize)); | ||
| VERIFY_ARE_EQUAL(fileSize.QuadPart > 0, false); | ||
| WSLA_ERROR_INFO errorInfo{}; | ||
| VERIFY_FAILED(m_defaultSession->ExportContainer(HandleToULong(contTarFileHandle.get()), "dummy", nullptr, &errorInfo)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend validating the error code here, so we know that we're correctly handling the error (although if we move this method to WSLAContainer that will solve this since Open() will fail on invalid name / id)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error code doesn't bubble up to here. We are verifying the error message. This is the same model as is used in ImportImage etc.
Not opposed to moving it to WSLAContainer though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error code should definitely get returned to the client (that's the HRESULT that VERIFY_FAILED() is looking at), but yeah this doesn't apply if we move all of this to WSLAContainer, which I think would be the best approach here
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
…om/microsoft/WSL into user/ptrivedi/saveimage-exportcont
| return {parser.get().result_int(), std::move(context)}; | ||
| } | ||
|
|
||
| std::pair<uint32_t, wil::unique_socket> DockerHTTPClient::SendRequest( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove this, since ExportContainer() only uses the socket and none of the other fields in the context, we can directly use this method
No description provided.