feat: add edit subcommand#205
feat: add edit subcommand#205ImranullahKhann wants to merge 2 commits intocheckpoint-restore:mainfrom
Conversation
Binary Size Check FailedThe binary size increase exceeds the allowed threshold. Size Check OutputHow to resolveIf this size increase is expected and acceptable, a maintainer can add Binary size check performed by CI |
|
I have tested the functionality on Podman and CRI-O checkpoints. I will start working on writing the tests and would appreciate any feedback and guidance. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #205 +/- ##
==========================================
- Coverage 79.98% 77.84% -2.15%
==========================================
Files 16 19 +3
Lines 1759 2040 +281
==========================================
+ Hits 1407 1588 +181
- Misses 263 328 +65
- Partials 89 124 +35 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@rst0git, please take a look |
|
Please take a look at providing unit tests and end to end tests. |
e536151 to
1c8ceeb
Compare
|
@adrianreber, please have a look |
|
Try to add more unit tests. Especially the error branches are not covered well. |
Currently only supports tcp listen port remapping. Made the following changes: - Added the edit command in cmd/. - Added edit_archive.go in internals/ for the main edit logic. - Added archive_modifiers.go inside internals/. It contains the modifier logic for any entry that would need changes in the archive. Kept extensibility in mind, for any additional change logic in the future, we can reuse the same function tarStreamRewrite (in edit_archive.go) and write additional modifier functions in archive_modifiers.go. Assisted-by: Github Copilot Signed-off-by: Imranullah Khan <imranullahkhann2004@gmail.com>
Signed-off-by: Imranullah Khan <imranullahkhann2004@gmail.com>
|
Please have a look |
Currently only supports tcp listen port remapping. Made the following changes:
Kept extensibility in mind, for any additional edit logic in the future, we can reuse the same function tarStreamRewrite (in edit_archive.go) and write additional modifier functions in archive_modifiers.go.
Closes #169