Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/e2e: Add debug of failed pods #2216

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stevenhorsman
Copy link
Member

Print logs of failed pods and CAA in case of failures to help in case of debugging

@stevenhorsman stevenhorsman added the test_e2e_libvirt Run Libvirt e2e tests label Dec 18, 2024
@stevenhorsman
Copy link
Member Author

Typically - when I want tests to fail they all pass! Re-running...

@stevenhorsman stevenhorsman force-pushed the debug-failed-pods branch 2 times, most recently from 692fef8 to b25dcff Compare December 19, 2024 15:38
@stevenhorsman
Copy link
Member Author

https://github.com/confidential-containers/cloud-api-adaptor/actions/runs/12415908135/job/34663884546?pr=2216 shows an example (with deliberately failing tests of it selecting the correct bit of the CAA log related to the pod that fails.

If a test fails, log debug info for the pod/job
- The log of the pod
- The extract of CAA log related to that pod
- The warning/error events for that pod

Signed-off-by: stevenhorsman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test_e2e_libvirt Run Libvirt e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant