Skip to content

test(e2e): capture container logs on test failure#545

Open
IrvingMg wants to merge 1 commit intourunc-dev:mainfrom
IrvingMg:e2e-capture-container-logs-on-failure
Open

test(e2e): capture container logs on test failure#545
IrvingMg wants to merge 1 commit intourunc-dev:mainfrom
IrvingMg:e2e-capture-container-logs-on-failure

Conversation

@IrvingMg
Copy link
Copy Markdown
Contributor

Description

When a detached e2e test fails, container logs are now captured and attached to the Ginkgo report before cleanup removes the container

Related issues

How was this tested?

Manually verified by temporarily making pingTest always return an error and running make test_nerdctl_Hvt-mirage-net. The container-logs report entry appeared in the Ginkgo output.

LLM usage

N/A

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

Signed-off-by: Irving Mondragón <mirvingr@gmail.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 59b9685
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/69cb824fff26830008390797

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve error handling in e2e tests and get container's logs in case of failure

1 participant