Skip to content

Conversation

@ptrivedi
Copy link

No description provided.

@ptrivedi ptrivedi requested a review from a team as a code owner January 28, 2026 05:04
@ptrivedi ptrivedi changed the base branch from master to feature/wsl-for-apps January 28, 2026 05:05
@ptrivedi ptrivedi requested a review from a team as a code owner January 28, 2026 05:05
Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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));
Copy link
Collaborator

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)

Copy link
Author

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

Copy link
Collaborator

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

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@ptrivedi I've opened a new pull request, #14130, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@ptrivedi I've opened a new pull request, #14134, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@ptrivedi I've opened a new pull request, #14135, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Jan 30, 2026

@ptrivedi I've opened a new pull request, #14136, to work on those changes. Once the pull request is ready, I'll request review from you.

return {parser.get().result_int(), std::move(context)};
}

std::pair<uint32_t, wil::unique_socket> DockerHTTPClient::SendRequest(
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants