Skip to content

Conversation

@tjones60
Copy link
Contributor

Refactors the vmgs implementation to minimize duplicate code, especially the number of places where the raw VMGS file reads and writes occur.

Copilot AI review requested due to automatic review settings January 13, 2026 02:13
@tjones60 tjones60 requested a review from a team as a code owner January 13, 2026 02:13
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.

@tjones60 tjones60 requested a review from a team as a code owner January 14, 2026 23:06
Copy link
Member

@chris-oo chris-oo left a comment

Choose a reason for hiding this comment

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

a few comments but mostly reasonable.

What are your thoughts on the whole encryption feature at this point? Should it still exist?

@mebersol
Copy link
Collaborator

fn allocate_helper(

might be a good target for unit tests?


Refers to: vm/vmgs/vmgs/src/vmgs_impl.rs:1711 in 4b64315. [](commit_id = 4b64315, deletion_comment = False)

@tjones60
Copy link
Contributor Author

a few comments but mostly reasonable.

What are your thoughts on the whole encryption feature at this point? Should it still exist?

I think the encryption feature is good since it makes the core vmgs implementation more portable. I could envision a future scenario where we are trying to bring up a new platform that doesn't support the crypto we currently have but we want vmgs to work. Plus this allows you to build vmgstool without encryption if that is all you need, which is faster and requires less dependencies.

@tjones60
Copy link
Contributor Author

fn allocate_helper(

might be a good target for unit tests?

Refers to: vm/vmgs/vmgs/src/vmgs_impl.rs:1711 in 4b64315. [](commit_id = 4b64315, deletion_comment = False)

There are some tests that indirectly test it (test_validate_header, test_initialize_file_metadata) but I can see if I can test it more directly as well.

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.

3 participants