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

chore(magicgen): migrate script to Python #177

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

snprajwal
Copy link
Member

The old script was in Go, and naively split the lines by whitespace to identify the magic names and values. The new Python script uses a proper regex rule to parse the input and generate the output.

Fixes #176

@snprajwal snprajwal requested a review from rst0git June 27, 2024 21:32
magic/magic.go Outdated Show resolved Hide resolved
The old script was in Go, and naively split the lines by whitespace to
identify the magic names and values. The new Python script uses a proper
regex rule to parse the input and generate the output.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.13%. Comparing base (c9612a1) to head (76a006a).
Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #177      +/-   ##
==========================================
+ Coverage   49.38%   50.13%   +0.74%     
==========================================
  Files          22       21       -1     
  Lines        2359     1889     -470     
==========================================
- Hits         1165      947     -218     
+ Misses       1058      810     -248     
+ Partials      136      132       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@snprajwal snprajwal requested a review from rst0git July 17, 2024 08:04
Copy link
Member

@rst0git rst0git left a comment

Choose a reason for hiding this comment

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

Well done!

@rst0git rst0git merged commit 664a3fd into checkpoint-restore:master Jul 17, 2024
15 checks passed
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.

Migrate magic-gen script to Python
2 participants