Skip to content

PR validation with caching disabled #2247

Closed

Description

@mthalman

By default, the PR builds have image caching enabled. This is useful because it avoids build and testing images that haven't changed. But this is problematic when we want to use the PR build to validate infrastructure changes. Not building any images or only building a subset may mean that code paths in the infrastructure do not get exercised and leads to a lack of test coverage for the change.

We should consider having a special pipeline defined for PR builds that executes with caching disabled in order to test infrastructure changes. The trigger paths should be set to appropriate values in order to limit when this pipeline runs. It's also not necessary to build the entire portfolio of images but rather just a representative subset that best exercises code paths that should be tested.

Activity

  1. mthalman commented on Oct 6, 2020

    @mthalman
    MemberAuthor

    My proposal of which paths should be run by this pipeline:
    --path 'src/*/3.1/alpine/amd64' --path 'src/*/3.1/alpine/arm64v8' --path 'src/*/5.0/nanoserver-2004/amd64'

    This provides a mix of operating systems, architecture types, and .NET versions. It also focuses on build legs that are fastest in their respective categories.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions