Skip to content

Option to leave OCI container alive for debugging after build #1320

@Helveg

Description

@Helveg

Description

When experimenting with the local setup, using cibuildwheel --platform=linux, for example, a container is created. The container is removed after the build finishes. If the build fails, there's no way to debug what caused it except for the logs. The roundtrip time of adding debug logs are pretty high for big software projects. For myself I've commented out these lines:

subprocess.run(
[self.engine, "rm", "--force", "-v", self.name],
stdout=subprocess.DEVNULL,
check=False,
)

But I could PR a proper solution if someone talks me through the requirements, and if everyone agrees this is a good addition for debugging.

Build log

No response

CI config

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions