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

update freeze for dynamic #1822

Merged
merged 5 commits into from
Oct 20, 2023

Conversation

williballenthin
Copy link
Collaborator

This PR updates the freeze implementation that supports dynamic analysis. The primary change is to keep the file format similar as possible to v1 and v2: the magic header, compression, and json format remain the same; the version is bumped to 3; and the json document must contain a key "flavor" that specifies static/dynamic.

The upside is that the code/format remains more similar to before (though, I'm not sure anyone actually uses this format or cares about its compatibility). A downside is that there's an additional json decoding pass used to extract version/flavor, but I dont think this should be too expensive.

Added tests that demonstrate the new format works as expected (and fixed a couple bugs).

ref #1697

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed

@williballenthin williballenthin added enhancement New feature or request breaking-change introduces a breaking change that should be released in a major version dynamic related to dynamic analysis flavor labels Oct 20, 2023
@williballenthin williballenthin added this to the v7.0 milestone Oct 20, 2023
@williballenthin williballenthin deleted the fix/dynamic-freeze branch October 20, 2023 07:09
@williballenthin williballenthin restored the fix/dynamic-freeze branch October 20, 2023 07:09
@williballenthin williballenthin changed the base branch from master to dynamic-feature-extraction October 20, 2023 07:15
@williballenthin williballenthin mentioned this pull request Oct 20, 2023
18 tasks
Copy link
Collaborator

@mr-tz mr-tz left a comment

Choose a reason for hiding this comment

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

great!

@williballenthin williballenthin merged commit 62d4b00 into dynamic-feature-extraction Oct 20, 2023
17 checks passed
@williballenthin williballenthin deleted the fix/dynamic-freeze branch October 20, 2023 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change introduces a breaking change that should be released in a major version dynamic related to dynamic analysis flavor enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants