Skip to content

[release-1.22] test/e2e: make collectNodes log dump best-effort#6267

Merged
k8s-ci-robot merged 2 commits into
kubernetes-sigs:release-1.22from
k8s-infra-cherrypick-robot:cherry-pick-6265-to-release-1.22
May 2, 2026
Merged

[release-1.22] test/e2e: make collectNodes log dump best-effort#6267
k8s-ci-robot merged 2 commits into
kubernetes-sigs:release-1.22from
k8s-infra-cherrypick-robot:cherry-pick-6265-to-release-1.22

Conversation

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

This is an automated cherry-pick of #6265

/assign mboersma

NONE

mboersma added 2 commits May 2, 2026 00:06
The collectNodes helper runs from [AfterEach] to dump per-node logs and
descriptions for the workload cluster. It currently uses
Expect(...).To(Succeed()) when listing nodes, which turns any transient
inability to reach the workload cluster API server into a hard spec
failure during teardown.

In practice the workload cluster's Azure load balancer / API server is
sometimes briefly unreachable while the spec is being torn down, which
has been causing otherwise-successful runs of the apiversion-upgrade job
to fail in [AfterEach] with i/o timeout against
*.cloudapp.azure.com:6443.

Match the pattern already used a few lines above for streaming pod logs:
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-none Denotes a PR that doesn't merit a release note. label May 2, 2026
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 2, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.49%. Comparing base (43d66f8) to head (4e9a11f).
⚠️ Report is 4 commits behind head on release-1.22.

Additional details and impacted files
@@              Coverage Diff              @@
##           release-1.22    #6267   +/-   ##
=============================================
  Coverage         44.49%   44.49%           
=============================================
  Files               280      280           
  Lines             25357    25357           
=============================================
  Hits              11282    11282           
  Misses            13261    13261           
  Partials            814      814           

☔ 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.

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 2, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 14fb3efe47c929fa5e79184cfc3e254fee7ae5c3

@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 2, 2026
@k8s-ci-robot k8s-ci-robot merged commit 2f13868 into kubernetes-sigs:release-1.22 May 2, 2026
21 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in CAPZ Planning May 2, 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-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants