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

Only optionally grab repotags in raw inspect out #90

Merged
merged 1 commit into from
Mar 29, 2020

Conversation

ibuildthecloud
Copy link
Contributor

For images with a lot of tags it can take a significant amount of time to
list tags. This can often cause timeouts causing the operation to fail
or if ignore-missing is set wrongly skip an image. This change will only
grab tags during "inspect --raw" and not during non-raw inspect or push.
Since some repos are so large they always timeout a new parameter --tags
has been added to inspect do disable including tags on raw inspect.

@ibuildthecloud
Copy link
Contributor Author

I'm still testing this PR, but I wanted to ensure the approach looked good. For my repo it went from 25 seconds for inspect --raw to 3 seconds.

@ibuildthecloud ibuildthecloud marked this pull request as ready for review March 29, 2020 03:52
@ibuildthecloud
Copy link
Contributor Author

I really don't know how to test v1. I could just not update the v1 implementation and leave it as is.

@estesp
Copy link
Owner

estesp commented Mar 29, 2020

Looks right to me. I'm doing a major rewrite and will be dropping v1; I think it's fine to leave as is

@ibuildthecloud
Copy link
Contributor Author

Okay, cool. I tested v2 and it's working for me.

@ibuildthecloud
Copy link
Contributor Author

Oh wait, so I should revert the v1 change then?

@ibuildthecloud
Copy link
Contributor Author

Okay, I reverted the v1 changes.

For images with a lot of tags it can take a significant amount of time to
list tags.  This can often cause timeouts causing the operation to fail
or if ignore-missing is set wrongly skip an image.  This change will only
grab tags during "inspect --raw" and not during non-raw inspect or push.
Since some repos are so large they always timeout a new parameter --tags
has been added to inspect do disable including tags on raw inspect.

Signed-off-by: Darren Shepherd <[email protected]>
@tboerger
Copy link

After merging this I can directly update the drone plugin :)

Copy link
Owner

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 856eb8c into estesp:master Mar 29, 2020
galexrt added a commit to cloudical-io/rook that referenced this pull request Apr 7, 2020
This updates the manifest-tools from v1.0.0 to v1.0.2 to
pickup the following fix
estesp/manifest-tool#90.

Resolves rook#5194

Signed-off-by: Alexander Trost <[email protected]>
galexrt added a commit to cloudical-io/rook that referenced this pull request Apr 7, 2020
This updates the manifest-tools from v1.0.0 to v1.0.2 to
pickup the following fix
estesp/manifest-tool#90.

This currently prevents the build to push images to Docker
hub.

Resolves rook#5194

Signed-off-by: Alexander Trost <[email protected]>
galexrt added a commit to cloudical-io/rook that referenced this pull request Apr 7, 2020
This updates the manifest-tools from v1.0.0 to v1.0.2 to
pickup the following fix
estesp/manifest-tool#90.

This currently prevents the build to push images to Docker
hub.

Resolves rook#5194

Signed-off-by: Alexander Trost <[email protected]>
mergify bot pushed a commit to rook/rook that referenced this pull request Apr 7, 2020
This updates the manifest-tools from v1.0.0 to v1.0.2 to
pickup the following fix
estesp/manifest-tool#90.

This currently prevents the build to push images to Docker
hub.

Resolves #5194

Signed-off-by: Alexander Trost <[email protected]>
(cherry picked from commit e5ba1fa)
binoue pushed a commit to binoue/rook that referenced this pull request Apr 10, 2020
This updates the manifest-tools from v1.0.0 to v1.0.2 to
pickup the following fix
estesp/manifest-tool#90.

This currently prevents the build to push images to Docker
hub.

Resolves rook#5194

Signed-off-by: Alexander Trost <[email protected]>
vizv pushed a commit to vizv/rook that referenced this pull request Apr 15, 2020
This updates the manifest-tools from v1.0.0 to v1.0.2 to
pickup the following fix
estesp/manifest-tool#90.

This currently prevents the build to push images to Docker
hub.

Resolves rook#5194

Signed-off-by: Alexander Trost <[email protected]>
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.

3 participants