Skip to content

ci: upload kubectl-ko-log when check-restarts step fails#6321

Merged
oilbeater merged 1 commit intomasterfrom
feat/check-restarts-upload-logs
Feb 23, 2026
Merged

ci: upload kubectl-ko-log when check-restarts step fails#6321
oilbeater merged 1 commit intomasterfrom
feat/check-restarts-upload-logs

Conversation

@oilbeater
Copy link
Copy Markdown
Collaborator

Summary

  • Add id: check-restarts to all 26 "Check kube ovn pod restarts" steps in the CI workflow
  • Add conditional log collection and upload steps after each check-restarts step, triggered only when the restart check itself fails
  • Use -restarts-ko-log artifact name suffix to avoid conflicts with existing e2e failure log artifacts

Motivation

Previously, kubectl-ko-log was only uploaded when e2e tests or installation failed. If the pod restart check failed independently (e.g., e2e passed but unexpected pod restarts were detected), no logs were available for debugging. This change ensures logs are always collected when restart checks fail.

Test plan

  • Verify YAML syntax is valid
  • Confirm all 26 check-restarts steps have id: check-restarts
  • Confirm each check-restarts step is followed by conditional log upload steps
  • Confirm artifact names don't conflict with existing ones

🤖 Generated with Claude Code

Add log collection and upload steps after each "Check kube ovn pod
restarts" step in the CI workflow. Previously, logs were only uploaded
when e2e tests or installation failed, but not when the pod restart
check itself failed. This makes it easier to diagnose issues when pods
restart unexpectedly.

Each check-restarts step now has an `id: check-restarts` so the
subsequent log upload steps can conditionally trigger on its failure.
Artifact names use `-restarts-ko-log` suffix to avoid conflicts with
existing e2e failure log artifacts.

Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. ci github_actions Pull requests that update GitHub Actions code labels Feb 23, 2026
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 22297646190

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 23.057%

Totals Coverage Status
Change from base Build 22295922323: 0.0%
Covered Lines: 12533
Relevant Lines: 54357

💛 - Coveralls

@oilbeater oilbeater merged commit 73a05d0 into master Feb 23, 2026
146 of 148 checks passed
@oilbeater oilbeater deleted the feat/check-restarts-upload-logs branch February 23, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci github_actions Pull requests that update GitHub Actions code size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants