Skip to content

[WIP] test: side-load the PR/CI-built NPD image into node e2e#1291

Closed
dims wants to merge 1 commit into
kubernetes:masterfrom
dims:e2e-node-sideload-image
Closed

[WIP] test: side-load the PR/CI-built NPD image into node e2e#1291
dims wants to merge 1 commit into
kubernetes:masterfrom
dims:e2e-node-sideload-image

Conversation

@dims
Copy link
Copy Markdown
Member

@dims dims commented Jun 5, 2026

The node e2e "NodeProblemDetector" test deploys a pod running NODE_PROBLEM_DETECTOR_IMAGE. To exercise the image built from this PR/CI run rather than one pulled from a registry, build a single-arch image archive, upload it next to the release tarball, and have the node e2e VM import it into containerd with ctr images import -- no registry involved.

  • Makefile: add build-image-archive (linux/amd64, docker-archive output).
  • build.sh: build and upload the archive for pr/ci; record its URL in the env file alongside the local image ref.
  • test/sideload-image.sh: instance startup-script that downloads the archive and imports it into the k8s.io containerd namespace once containerd is up.

Requires a companion test-infra change to the ci-/pull-npd-e2e-node jobs (--instance-metadata=startup-script<test/sideload-image.sh,npd-image-url=... and --prepull-images=false). That change is backward compatible and can land first; until both are in, the e2e prepull still pulls from a registry.

The node e2e "NodeProblemDetector" test deploys a pod running
NODE_PROBLEM_DETECTOR_IMAGE. To exercise the image built from this PR/CI run
rather than one pulled from a registry, build a single-arch image archive,
upload it next to the release tarball, and have the node e2e VM import it
into containerd with `ctr images import` -- no registry involved.

- Makefile: add build-image-archive (linux/amd64, docker-archive output).
- build.sh: build and upload the archive for pr/ci; record its URL in the
  env file alongside the local image ref.
- test/sideload-image.sh: instance startup-script that downloads the archive
  and imports it into the k8s.io containerd namespace once containerd is up.

Requires a companion test-infra change to the ci-/pull-npd-e2e-node jobs
(--instance-metadata=startup-script<test/sideload-image.sh,npd-image-url=...
and --prepull-images=false). That change is backward compatible and can land
first; until both are in, the e2e prepull still pulls from a registry.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 5, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dims
Once this PR has been reviewed and has the lgtm label, please assign tallclair for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 5, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@dims: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-npd-e2e-node 992da07 link true /test pull-npd-e2e-node

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@dims dims closed this Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants