Skip to content

Improve KinD E2E failure diagnostics - #800

Open
kahirokunn wants to merge 1 commit into
knative-extensions:mainfrom
kahirokunn:test/kind-e2e-diagnostics
Open

Improve KinD E2E failure diagnostics#800
kahirokunn wants to merge 1 commit into
knative-extensions:mainfrom
kahirokunn:test/kind-e2e-diagnostics

Conversation

@kahirokunn

@kahirokunn kahirokunn commented Aug 14, 2026

Copy link
Copy Markdown
Member

Why

KinD E2E failures were difficult to diagnose because test namespaces could be deleted before postmortem collection, one failed kubectl command could stop collection, and logs were not uploaded as bounded artifacts.

Proposed Changes

  • keep failed test namespaces available for postmortem collection
  • save bounded cluster state and current/previous container logs without dumping Secrets or Pod environment values
  • retain failure diagnostics as artifacts for seven days

Release Note

NONE

Signed-off-by: kahirokunn <okinakahiro@gmail.com>
@knative-prow
knative-prow Bot requested a review from aliok August 14, 2026 04:26
@knative-prow

knative-prow Bot commented Aug 14, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kahirokunn
Once this PR has been reviewed and has the lgtm label, please assign dsimansk for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@knative-prow
knative-prow Bot requested a review from upodroid August 14, 2026 04:26
@knative-prow knative-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 14, 2026
@kahirokunn

Copy link
Copy Markdown
Member Author

/ok-to-test

@knative-prow knative-prow Bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Aug 14, 2026
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.57%. Comparing base (2c86680) to head (4554fb7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #800      +/-   ##
==========================================
+ Coverage   43.50%   43.57%   +0.07%     
==========================================
  Files          68       68              
  Lines        4259     4259              
==========================================
+ Hits         1853     1856       +3     
+ Misses       2282     2278       -4     
- Partials      124      125       +1     

☔ View full report in Codecov by Harness.
📢 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.

@kahirokunn

Copy link
Copy Markdown
Member Author

@astelmashenko Hi ✋ PTAL. Thank you 🙏

@astelmashenko

astelmashenko commented Aug 24, 2026

Copy link
Copy Markdown
Member

@kahirokunn , shell script is hard too read and has custom functions, it is always hard to maintain shell scripts.
Current approach was the same across projects, e.g. rabbitmq broker https://github.com/knative-extensions/eventing-rabbitmq/blob/main/.github/workflows/kind-e2e.yaml

I'd also doublecheck reusable actions if there is something to reuse https://github.com/knative/actions/tree/main/.github/workflows

retain failure diagnostics as artifacts for seven days

I'm not sure if I can decide such things. I support codebase. Regarding infrastructure things it is better to ask @Cali0707, @dprotaso or @pierDipi

@kahirokunn

kahirokunn commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@kahirokunn , shell script is hard too read and has custom functions, it is always hard to maintain shell scripts. Current approach was the same across projects, e.g. rabbitmq broker https://github.com/knative-extensions/eventing-rabbitmq/blob/main/.github/workflows/kind-e2e.yaml

I'd also doublecheck reusable actions if there is something to reuse https://github.com/knative/actions/tree/main/.github/workflows

retain failure diagnostics as artifacts for seven days

I'm not sure if I can decide such things. I support codebase. Regarding infrastructure things it is better to ask @Cali0707, @dprotaso or @pierDipi

Thanks for the feedback. I originally based this on the approach used by eventing-kafka-broker:

WDYT?

@Cali0707

Copy link
Copy Markdown
Member

I can take a look at this next week

/assign @Cali0707

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

Labels

ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants