Skip to content

[release-1.23] test/e2e: make collectPodLogs log dump best-effort#6318

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:release-1.23from
k8s-infra-cherrypick-robot:cherry-pick-6315-to-release-1.23
May 18, 2026
Merged

[release-1.23] test/e2e: make collectPodLogs log dump best-effort#6318
k8s-ci-robot merged 1 commit into
kubernetes-sigs:release-1.23from
k8s-infra-cherrypick-robot:cherry-pick-6315-to-release-1.23

Conversation

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

This is an automated cherry-pick of #6315

/assign mboersma

test/e2e: make collectPodLogs log dump best-effort

The collectPodLogs helper runs from [AfterEach] to dump pod descriptions
and container logs for the workload cluster. It currently uses
Expect(...).To(Succeed()) when listing pods, which turns any transient
inability to reach the workload cluster API server into a hard spec
failure during teardown.

This is the same bug pattern that was fixed for the sibling collectNodes
helper in 4a8e9f1 (kubernetes-sigs#6265). With collectNodes now returning gracefully
on i/o timeout, collectPodLogs is the next call in the AfterEach log
collection path and hits the same transient unreachability against
*.cloudapp.azure.com:6443, causing otherwise-successful runs of the
apiversion-upgrade job to fail in [AfterEach].

Match the pattern already used a few lines below for streaming container
logs (and now used in collectNodes): log the error and continue instead
of failing the spec.

Signed-off-by: Matt Boersma <Matt.Boersma@microsoft.com>
@k8s-ci-robot k8s-ci-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 18, 2026
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 18, 2026
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 18, 2026
Copy link
Copy Markdown
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 18, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 2990dadbcc379a9ba1a6074230831eb5560cd7c5

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mboersma

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:

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 18, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.74%. Comparing base (36f5e0f) to head (c03eef6).
⚠️ Report is 5 commits behind head on release-1.23.

Additional details and impacted files
@@              Coverage Diff              @@
##           release-1.23    #6318   +/-   ##
=============================================
  Coverage         43.74%   43.74%           
=============================================
  Files               289      289           
  Lines             25475    25475           
=============================================
  Hits              11145    11145           
  Misses            13527    13527           
  Partials            803      803           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mboersma
Copy link
Copy Markdown
Contributor

/test pull-cluster-api-provider-azure-ci-entrypoint-v1beta1

@mboersma
Copy link
Copy Markdown
Contributor

/retest

Odd auth failure again.

@k8s-ci-robot k8s-ci-robot merged commit 3b67c11 into kubernetes-sigs:release-1.23 May 18, 2026
21 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in CAPZ Planning May 18, 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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants