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

fix(BA-478): Accept container images that has the 'null' labels field in their manifests #3411

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

achimnol
Copy link
Member

@achimnol achimnol commented Jan 9, 2025

resolves #3409 (BA-478)

This PR lets the container registry implementations coalesce null values in the manifest "labels" field to an empty dict to prevent breakage.

It also adds explicit typing.override decorators to mark overriden methods in the HarborRegistry_v2 class. Though, we need a follow-up refactoring to make the code structure to tell the reader that: 'Harbor and Docker registry share the image manifest query and pull APIs while Harbor has its specific repository listing API.'

This PR is a follow-up fix to #2582.

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@achimnol achimnol added this to the 24.09 milestone Jan 9, 2025
@achimnol achimnol added the comp:manager Related to Manager component label Jan 9, 2025
@achimnol achimnol self-assigned this Jan 9, 2025
@github-actions github-actions bot added the size:L 100~500 LoC label Jan 9, 2025
@achimnol achimnol force-pushed the fix/scanning-vanilla-local-images branch from e339b75 to 733135e Compare January 9, 2025 07:49
@achimnol achimnol force-pushed the fix/scanning-vanilla-local-images branch from 733135e to b9644cc Compare January 9, 2025 16:18
Copy link
Collaborator

@HyeockJinKim HyeockJinKim left a comment

Choose a reason for hiding this comment

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

lgtm

@github-actions github-actions bot added size:M 30~100 LoC and removed size:L 100~500 LoC labels Jan 17, 2025
@achimnol achimnol added this pull request to the merge queue Jan 17, 2025
Merged via the queue into main with commit f575724 Jan 17, 2025
20 checks passed
@achimnol achimnol deleted the fix/scanning-vanilla-local-images branch January 17, 2025 15:20
lablup-octodog pushed a commit that referenced this pull request Jan 17, 2025
… in their manifests (#3411)

Backported-from: main (24.12)
Backported-to: 24.09
Backport-of: 3411
github-merge-queue bot pushed a commit that referenced this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix scanning container images with no labels at all
2 participants