Skip to content

Check shipping packages for poison#47176

Merged
mthalman merged 4 commits intodotnet:mainfrom
NikolaMilosavljevic:poison.nupkgs
Mar 3, 2025
Merged

Check shipping packages for poison#47176
mthalman merged 4 commits intodotnet:mainfrom
NikolaMilosavljevic:poison.nupkgs

Conversation

@NikolaMilosavljevic
Copy link
Copy Markdown
Member

Fixes: dotnet/source-build#4921

Shipping packages are in a repo-named sub-directory.

Copilot AI review requested due to automatic review settings February 27, 2025 23:46
@NikolaMilosavljevic NikolaMilosavljevic requested review from a team as code owners February 27, 2025 23:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Feb 27, 2025
<!-- Include shipping nuget packages. -->
<PoisonFileToCheck Include="$(ArtifactsShippingPackagesDir)*.nupkg" />
<ShippingPackageToCheck Include="$(ArtifactsShippingPackagesDir)**/*.nupkg" />
<Error Condition="'@(ShippingPackageToCheck)' == ''" Text="No shipping packages will be poison checked - this is unexpected!" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add another similar check for PoisonFileToCheck?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, good idea - thanks!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking at the end would never work as the new check I'm adding for shipping packages would fail first. But, I can add a check for assets, i.e. the value of PoisonFileToCheck, right before adding shipping packages.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with deb765a

I've added a check for assets.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, can we divide these categories of files into separate item groups that we can then validate individually? For example, defined an item group for the PSB artifacts and a separate one for the SBRPs. Check that each of those item groups are non-empty, just as you do for the separate item group of the shipping packages. Then at the end, add them all to PoisonFileToCheck.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was also thinking of that and it does make sense. Best time to do it is now 👍

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with 5d80078

@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

@MichaelSimons @mmitche can you help me merge this? The failure is unrelated to my changes.

@mthalman mthalman merged commit 335c7db into dotnet:main Mar 3, 2025
36 of 39 checks passed
@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

/backport to release/9.0.1xx

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 3, 2025

Started backporting to release/9.0.1xx: https://github.com/dotnet/sdk/actions/runs/13635815357

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

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[source-build] Poison check should scan all shipping packages

6 participants