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

Limit the number of pipeline artifacts that are published where possible #1407

Open
mthalman opened this issue Aug 20, 2024 · 3 comments
Open

Comments

@mthalman
Copy link
Member

When using 1ES pipeline templates, each time a pipeline artifact is published, it executes a set of auto-injected steps to scan the artifact (8 of these steps, currently). In the publishing pipeline, multiple artifacts are published even from the same job. For example, both the build and publish jobs publish two artifacts each and some upcoming changes to the publish stage will increase that one to three. So there are multiple sets of these steps that get injected into the pipeline. This is problematic for a few reasons:

  • It makes it difficult to find a specific step in the UI because of all the noise from these auto-injected steps.
  • It increases the risk of a random failure occurring from one of these steps, forcing a retry.
  • It's likely not efficient from a performance perspective to execute these steps across multiple artifacts when it could execute them once on a consolidated artifact.

We should consider trying to consolidate the files we want to store as artifacts and publish them only once. I expect that there are some cases where this might not be possible based on other constraints.

Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

1 similar comment
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@lbussell
Copy link
Contributor

lbussell commented Aug 20, 2024

Completely agree. Also related is #1331 (specifically #1331 (comment)). Disabling SBOM generation for most/all artifacts that don't ship to users will greatly cut down on the number of extra steps and extra artifacts that are produced by the pipeline.

@lbussell lbussell moved this from Backlog to Current Release in .NET Docker Aug 26, 2024
@lbussell lbussell moved this from Current Release to Sprint in .NET Docker Sep 11, 2024
@lbussell lbussell moved this from Sprint to Post Release in .NET Docker Sep 23, 2024
@lbussell lbussell moved this from Post Release to Current Release in .NET Docker Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Current Release
Development

No branches or pull requests

2 participants