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

Check shipping packages for poison #47176

Merged
merged 4 commits into from
Mar 3, 2025

Conversation

NikolaMilosavljevic
Copy link
Member

Fixes: dotnet/source-build#4921

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

@Copilot Copilot bot 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
Contributor

@Copilot 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.

@dotnet-issue-labeler dotnet-issue-labeler bot 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
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
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
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
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
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
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
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
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
Member Author

/backport to release/9.0.1xx

Copy link
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
5 participants