-
Notifications
You must be signed in to change notification settings - Fork 214
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
nydus-image: refactor subcommand "inspect" #675
Conversation
@YushuoEdge , a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/18269 |
@YushuoEdge , The CI test is completed, please check result:
Congratulations, your test job passed! |
@changweige can you please take a look? |
Sure. will take a glance |
I am experiencing this refactored tool but got the below error, which I think chunk info should be correctly shown about its blob id and chunk index in one blob. Shall we continue reviewing the PR until they are fixed? For symlink file:
For regular file:
|
Sorry for that. I did not find the problem when I did test before. Maybe something went wrong when I rebase to master branch, please allow me to check again and revise. |
f219a1d
to
4ff80f6
Compare
@YushuoEdge , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/19319 |
@YushuoEdge , The CI test is completed, please check result:
Congratulations, your test job passed! |
Please rebase your PR to get |
4ff80f6
to
9194fe0
Compare
@YushuoEdge , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/19487 |
@YushuoEdge , The CI test is completed, please check result:
Congratulations, your test job passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup! Thanks! Is it possible to add some test cases in smoke? There are pre-built bootstrap files under tests/texture/bootstrap/
which can be used to test inspect
as well.
@@ -882,7 +492,6 @@ impl Executor { | |||
prefetch: Show prefetch table | |||
chunk OFFSET: List basic info of a single chunk together with a list of files that share it | |||
icheck INODE: Show path of the inode and basic information | |||
index INDEX: Show information about a file by its index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed index
is unneeded and it's fine to just drop it.
src/bin/nydus-image/inspect.rs
Outdated
@@ -896,7 +505,7 @@ impl Prompt { | |||
print!("Inspecting Rafs :> "); | |||
std::io::stdout().flush().unwrap(); | |||
|
|||
let mut input = String::new(); | |||
let mut input: String = String::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks unnecessary.
Updates: @YushuoEdge is working on smoke testing and fixing. :) |
The code for "nydus-image inspect" are refactored using standard API in RAFS. Signed-off-by: YushuoEdge <[email protected]>
9194fe0
to
117022f
Compare
@YushuoEdge , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/21637 |
@YushuoEdge , The CI test is completed, please check result:
Sorry, your test job failed. Please get the details in the link. |
117022f
to
2ab5550
Compare
@YushuoEdge , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/21638 |
update: |
@YushuoEdge , The CI test is completed, please check result:
Sorry, your test job failed. Please get the details in the link. |
We use the output result of request_mode for verification. In ./tests/texture/image-inspect/*.result, there stores the output result of executing cmd `nydus-image inspect -B ./tests/texture/bootstrap/image_v2.boot -R *` with `nydus-image` that has not been refactored. Then we load the result and compare them with result using the refactored `nydus-image` to do the smoke test. Signed-off-by: YushuoEdge <[email protected]>
2ab5550
to
57208ec
Compare
@YushuoEdge , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/21641 |
@YushuoEdge , The CI test is completed, please check result:
Sorry, your test job failed. Please get the details in the link. |
Thanks for adding the test case in smoke testing, it is difficult for us to cover all the tests of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
The code for "nydus-image inspect" are refactored using standard API
in RAFS.
Signed-off-by: YushuoEdge [email protected]