dotnet / docker-tools

This is a repo to house some common tools for our various docker repos.
MIT License
122 stars 46 forks source link

Trim matrix based on image cache state #1449

Open mthalman opened 1 day ago

mthalman commented 1 day ago

Contributes to #1417

This adds trimming logic to Image Builder's matrix generation. This trimming will optimize the number of build jobs that get created. It prevents scenarios of spinning up jobs that are essentially no-ops because the images they process may all be cached.

It trims the set of Dockerfiles based on whether cached images already exist for those Dockerfiles. Once that set of Dockerfiles is determined, then it proceeds with its usual logic, potentially expanding the set of Dockerfiles that get included. So the final matrix result may include images which are cached, but those are necessary to be included based on the build requirements.

dotnet-issue-labeler[bot] commented 1 day ago

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

dotnet-issue-labeler[bot] commented 1 day ago

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