Skip to content

Fix promotion timeout when prow diff contains no digests#1798

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
saschagrunert:fix/empty-prow-diff-manifests
Mar 27, 2026
Merged

Fix promotion timeout when prow diff contains no digests#1798
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
saschagrunert:fix/empty-prow-diff-manifests

Conversation

@saschagrunert
Copy link
Copy Markdown
Member

@saschagrunert saschagrunert commented Mar 27, 2026

What type of PR is this?

/kind bug

What this PR does / why we need it:

When --use-prow-manifest-diff is enabled and the triggering commit only modifies promoter-manifest.yaml (without touching images.yaml), diffProwFiles returns an empty digest list. The filtering in ParseThinManifestFromFile was skipped for empty lists, causing the promoter to load all images across all staging projects. The subsequent sequential provenance verification for 900+ images caused the job to hit the 4h timeout.

This was observed in kubernetes/k8s.io#9260, which blocked all subsequent post-k8sio-image-promo runs.

The fix returns early with an empty manifest set when prow diff mode is active but no digests are found, and stops the pipeline cleanly when ParseManifests returns no manifests.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fix promotion timeout when prow diff contains no image digests

When --use-prow-manifest-diff is enabled and the triggering commit
only modifies promoter-manifest.yaml (without touching images.yaml),
diffProwFiles returns an empty digest list. The filtering in
ParseThinManifestFromFile was skipped for empty lists, causing the
promoter to load all images across all staging projects. The
subsequent sequential provenance verification for 900+ images caused
the job to hit the 4h timeout.

Return early with an empty manifest set when prow diff mode is active
but no digests are found. Also stop the pipeline cleanly when
ParseManifests returns no manifests.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Mar 27, 2026
@k8s-ci-robot k8s-ci-robot added area/artifacts Issues or PRs related to the hosting of release artifacts for subprojects approved Indicates a PR has been approved by an approver from all required OWNERS files. area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. 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 Mar 27, 2026
saschagrunert added a commit to saschagrunert/test-infra that referenced this pull request Mar 27, 2026
Use the staging latest image to pick up the fix for the promotion
timeout when prow diff contains no digests (kubernetes-sigs/promo-tools#1798).

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 27, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, saschagrunert

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [cpanato,saschagrunert]

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 merged commit 6ee43ac into kubernetes-sigs:main Mar 27, 2026
5 checks passed
@saschagrunert saschagrunert deleted the fix/empty-prow-diff-manifests branch March 27, 2026 16:27
@saschagrunert saschagrunert mentioned this pull request Mar 27, 2026
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/artifacts Issues or PRs related to the hosting of release artifacts for subprojects area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. 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.

3 participants