Skip to content

Test coverage output should be omitted from the final container image #71

@webbnh

Description

@webbnh

Dustin and I did a little investigation: the coverage file is generated in the first phase of the container build; it is propagated to the final container image; the CI later pulls the image from Quay, creates a container from it (but doesn't start it running), pulls coverage file from it, and then deletes the container; the CI then processes and uploads the coverage data as an artifact so that it can be viewed later.

Thus, there is no compelling need for the coverage file to be in the final container image, other than as a mechanism for making it available to CI; and, the desire to minimize the size of the container image is motivation for not including it in the final image.

Instead, the initial build phase should export the coverage file (either by writing it to a mapped directory, or by having the CI extract it after the image is built, as it does with the final image, today), so that we don't propagate it to the final image. The CI can then process and upload the artifact.

Originally posted by @webbnh in arcalot/arcaflow-plugin-pcp#34 ("conversations" link, "files" link)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions