Skip to content

Binary tooling #18726

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

Merged
merged 42 commits into from
Mar 12, 2024
Merged

Binary tooling #18726

merged 42 commits into from
Mar 12, 2024

Conversation

ellahathaway
Copy link
Member

@ellahathaway ellahathaway commented Feb 21, 2024

Related to dotnet/source-build#4089 and dotnet/source-build#4108

This PR introduces tooling to detect, validate, and remove binaries. This tooling can be used on any given TargetDirectory, and it is integrated into prep-source-build.sh.

This tool follows the file globbing parameters as specified in https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.filesystemglobbing.matcher?view=dotnet-plat-ext-8.0#remarks. The allowed-binaries.txt file was modified in this PR to comply with those patterns.

Sample run (updated 3/1/24): https://dev.azure.com/dnceng/internal/_build/results?buildId=2391859&view=results (internal link)

@ellahathaway
Copy link
Member Author

@MichaelSimons @mthalman - This is still a work in progress, but I wanted to get your thoughts on the configuration of this tool. Ideally, the tool will work by running dotnet msbuild -t:BinaryToolTask with the necessary parameters. This requires distro maintainers to have dotnet, which is installed as part of the prep script. The part I'm concerned about is the package references... I'm unsure of how this would work with SB. What are your thoughts?

@ellahathaway ellahathaway marked this pull request as ready for review February 24, 2024 00:40
@ellahathaway ellahathaway requested review from a team as code owners February 24, 2024 00:40
@ellahathaway ellahathaway requested a review from ViktorHofer March 7, 2024 01:47
@ellahathaway ellahathaway merged commit b764409 into dotnet:main Mar 12, 2024
@ellahathaway ellahathaway deleted the binarytooling branch March 12, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants