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

Rework image pull check in E2E tests #196

Merged
merged 2 commits into from
May 28, 2024

Conversation

dimitar-kostadinov
Copy link
Contributor

How to categorize this PR?

/area testing
/kind test

What this PR does / why we need it:
Rework the image pull check in E2E tests.
The image pull check now use root pod executor and runs the following commands on the Node where the registry Pod is running:

  • jq -j '.mounts[] | select(.destination=="/var/lib/registry") | .source' /run/containerd/io.containerd.runtime.v2.task/k8s.io/<registry-container-id>/config.json to get the location of '/var/lib/registry' mount on the Node.
  • cat <mount-location>/docker/registry/v2/repositories/<image-path>/_manifests/tags/<image-tag>/current/link to get the image index blob location.
  • jq -j '.manifests | length' %s/docker/registry/<image-index-blob-path>/blobs/%s/data to verify it is valid image index.

This will allow distroless to be used as the base registry image and will solve E2E flakes caused by the missing scheduler-state.json file.

Which issue(s) this PR fixes:
Part of #3

Special notes for your reviewer:
N/A

Release note:

NONE

@gardener-prow gardener-prow bot added area/testing Testing related kind/test Test cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels May 21, 2024
@gardener-prow gardener-prow bot requested a review from ialidzhikov May 21, 2024 14:58
@gardener-prow gardener-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 21, 2024
@dimitar-kostadinov dimitar-kostadinov added area/ipcei IPCEI (Important Project of Common European Interest) ipcei/registry-cache-extension Registry Cache Extension labels May 21, 2024
@ialidzhikov
Copy link
Member

/assign

Copy link
Member

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 28, 2024
Copy link
Contributor

gardener-prow bot commented May 28, 2024

LGTM label has been added.

Git tree hash: 4424b599e6dbf846c7ad59f1194bd6278be60b20

Copy link
Contributor

gardener-prow bot commented May 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ialidzhikov

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 28, 2024
@gardener-prow gardener-prow bot merged commit e859a4a into gardener:main May 28, 2024
6 checks passed
@dimitar-kostadinov dimitar-kostadinov deleted the enh/image-pull-check branch February 26, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/ipcei IPCEI (Important Project of Common European Interest) area/testing Testing related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. ipcei/registry-cache-extension Registry Cache Extension kind/test Test lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants