-
Notifications
You must be signed in to change notification settings - Fork 96
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
Implementing the functionality of the 'named' argument of the 'Image.save' method #406
Conversation
Please squash your commits. @jwhonce @umohnani8 @mwhahaha PTAL |
Hi @rhatdan, Thanks, I have just squashed my commits. |
@milanbalazs Please add tests to support your change. Thank you for your support of this repository. @lsm5 Please review the packit issues, TIA. |
/packit rebuild-failed |
@inknos PTAL |
/packit rebuild-failed |
Hi @jwhonce, I have extended the test cases with the "named" save option. |
I have tried to deliver the extended Integration Tests but it seems the |
/packit rebuild-failed |
Hi @lsm5, I tried to restart the failed tests, but they seem to have stalled. Can you check, please? (And I think the function tests are still having problems, which I mentioned in my previous post.) |
The build jobs have passed but there's an issue with status reporting on the fedora jobs. We can ignore the in-progress rpm-build jobs. Don't know about the |
/packit rebuild-failed |
@lsm5 I have not had a chance to look at what is happening with the failing test, but the expected container is not the one being reported during the prune. I suspect the new tests are bleeding into the prune test. |
@jwhonce You are right, the actual Image ID is not in the pruned (deleted) image list. But I didn't really touch the prune or other parts of the code/test, this is the reason why I don't understand how this test failure connected to my change. I have tried to reproduce this behavior in local but I couldn't. Perhaps somebody from your side who has deeper understanding of the system can provide some hints. |
I think I know what is happening with the test. Now that the image has a name when loaded back from the tarball, it is no longer an unnamed image so We should probably add another test to test the name functionality instead of updating the existing test so that we can avoid any future regressions. |
In the Image.save method, the named argument was ignored. The self.id argument was always used, resulting in an empty repositories file in the tarball. As a result, if the tarball was loaded into Podman, the image was not given a name (only None). This limitation can cause problems in some cases, since the name of the imported image is not known. Signed-off-by: Milan Balazs <[email protected]>
@umohnani8, Thank you for your comment. I have created a separate test case for the named image saving. It seems that currently the integration tests are running successfully. |
LGTM |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jwhonce, milanbalazs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
In the Image.save method, the
named
argument was ignored. Theself.id
argument was always used, resulting in an emptyrepositories
file in the tarball. As a result, if the tarball was loaded intoPodman
, the image was not given a name (onlyNone
). This limitation can cause problems in some cases, since the name of the imported image is not known.The used minimal script:
Before my change:
It's visible in the last line the Image doesn't have name.
With my change:
The last line shows the loaded Image has name and tag based on the
repositories
file.Note:
Signed-off-by: Milan Balazs [email protected]