Skip to content

ci: set fetch-depth for containerd to 0 for version parsing#12855

Merged
estesp merged 1 commit intocontainerd:mainfrom
akhilerm:fix-fetch-tag
Feb 3, 2026
Merged

ci: set fetch-depth for containerd to 0 for version parsing#12855
estesp merged 1 commit intocontainerd:mainfrom
akhilerm:fix-fetch-tag

Conversation

@akhilerm
Copy link
Copy Markdown
Member

@akhilerm akhilerm commented Feb 3, 2026

image volume e2e tests in k/k uses containerd version to trigger tests for some features. ref: https://github.com/kubernetes/kubernetes/blob/bfafa32d90958a8fe7a2ce09ed553fdfef4edd98/test/e2e_node/image_volume.go#L64

The current CI builds have only the SHA as the version in the node e2e tests since the tags are not present. setting fetch-depth makes sure the tags are present and will be used while testing.

The issue occured now because as part of kubernetes/kubernetes#136530, the ImageVolume feature now started testing in the github actions e2e node tests.

image volume e2e tests in k/k uses containerd version
to trigger tests for some features. ref: https://github.com/kubernetes/kubernetes/blob/bfafa32d90958a8fe7a2ce09ed553fdfef4edd98/test/e2e_node/image_volume.go#L64

The current CI builds have only the SHA as the version since
the tags are not present. setting fetch-depth makes sure the tags
are present and will be used while testing.

Signed-off-by: Akhil Mohan <[email protected]>
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Feb 3, 2026
@akhilerm akhilerm requested review from chrishenzie and dims February 3, 2026 12:59
@dosubot dosubot Bot added the github_actions Pull requests that update GitHub Actions code label Feb 3, 2026
@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Feb 3, 2026

Could we also set fetch-tags?

# Whether to fetch tags, even if fetch-depth > 0.
# Default: false
fetch-tags: ''

Copy link
Copy Markdown
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

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

Should fix CI issue, we can test changing to a different option later

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Feb 3, 2026
@estesp estesp added this pull request to the merge queue Feb 3, 2026
Merged via the queue into containerd:main with commit 9609392 Feb 3, 2026
94 of 96 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Feb 3, 2026
@mikebrow
Copy link
Copy Markdown
Member

mikebrow commented Feb 3, 2026

Thanks @akhilerm

@akhilerm akhilerm deleted the fix-fetch-tag branch February 4, 2026 02:38
@akhilerm
Copy link
Copy Markdown
Member Author

akhilerm commented Feb 4, 2026

Could we also set fetch-tags?

# Whether to fetch tags, even if fetch-depth > 0.
# Default: false
fetch-tags: ''

fetch-tags with shallow clone does not work currently. Its fixed in v6.0.2 which is currently not marked as latest release, when that bump is done, we can use fetch-tags in both containerd and k/k checkout.

@akhilerm
Copy link
Copy Markdown
Member Author

akhilerm commented Feb 9, 2026

/cherry-pick release/2.2

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown

@akhilerm: new pull request created: #12875

Details

In response to this:

/cherry-pick release/2.2

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/2.2.x PR commits are cherry-picked into release/2.2 branch github_actions Pull requests that update GitHub Actions code size/XS

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

9 participants