Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

syscontainers: read labels from v1Compatibility #1170

Conversation

giuseppe
Copy link
Collaborator

@giuseppe giuseppe commented Feb 1, 2018

Images coming from registry.access.redhat.com through "skopeo copy"
have this information in the v1Compatibility block. Use this
information so we can correctly catch "atomic.run".

Signed-off-by: Giuseppe Scrivano [email protected]

@@ -1646,7 +1646,13 @@ def _inspect_system_branch(self, repo, imagebranch):
virtual_size = self._get_virtual_size(repo, manifest)
if 'Labels' in manifest:
labels = manifest['Labels']
else:
elif 'history' in manifest:

Choose a reason for hiding this comment

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

Might be time to educate Tom, but should this be an if rather than an elif?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, I'd like to take this branch only if the first 'if' was not satisfied.

If the labels are found in manifest['Labels'] we don't need to look into 'history'.

Choose a reason for hiding this comment

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

@giuseppe Thanks for the info. FYI some of the tests aren't looking happy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it is because of storage :( it is failing since long time but it should not be related to this PR

@giuseppe giuseppe force-pushed the atomic-read-labels-fromv1Compatibility-block branch 2 times, most recently from a89af7b to 46d4fa1 Compare February 1, 2018 15:55
@baude
Copy link
Member

baude commented Feb 1, 2018

@rh-atomic-bot r+

@rh-atomic-bot
Copy link

📌 Commit 46d4fa1 has been approved by baude

@rh-atomic-bot
Copy link

⌛ Testing commit 46d4fa1 with merge 72d4ff0...

rh-atomic-bot pushed a commit that referenced this pull request Feb 1, 2018
Images coming from registry.access.redhat.com through "skopeo copy"
have this information in the v1Compatibility block.  Use this
information so we can correctly catch "atomic.run".

Signed-off-by: Giuseppe Scrivano <[email protected]>

Closes: #1170
Approved by: baude
@giuseppe
Copy link
Collaborator Author

giuseppe commented Feb 1, 2018

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit 46d4fa1 with merge 0d92059...

rh-atomic-bot pushed a commit that referenced this pull request Feb 1, 2018
Images coming from registry.access.redhat.com through "skopeo copy"
have this information in the v1Compatibility block.  Use this
information so we can correctly catch "atomic.run".

Signed-off-by: Giuseppe Scrivano <[email protected]>

Closes: #1170
Approved by: baude
Images coming from registry.access.redhat.com through "skopeo copy"
have this information in the "v1Compatibility" block.  Use this
information so we can correctly catch "atomic.run".

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe force-pushed the atomic-read-labels-fromv1Compatibility-block branch from 46d4fa1 to 12edeeb Compare February 1, 2018 16:36
@baude
Copy link
Member

baude commented Feb 1, 2018

bot, retest this please

@giuseppe
Copy link
Collaborator Author

giuseppe commented Feb 1, 2018

@rh-atomic-bot r=baude 12edeeb

rh-atomic-bot pushed a commit that referenced this pull request Feb 1, 2018
Images coming from registry.access.redhat.com through "skopeo copy"
have this information in the "v1Compatibility" block.  Use this
information so we can correctly catch "atomic.run".

Signed-off-by: Giuseppe Scrivano <[email protected]>

Closes: #1170
Approved by: baude
@rh-atomic-bot
Copy link

⌛ Testing commit 12edeeb with merge d8da6f3...

@baude baude merged commit e983379 into projectatomic:master Feb 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants