Skip to content

Cloak and condition the obfuscated test binaries#4603

Merged
NikolaMilosavljevic merged 1 commit intodotnet:mainfrom
NikolaMilosavljevic:ros.ob
Feb 2, 2026
Merged

Cloak and condition the obfuscated test binaries#4603
NikolaMilosavljevic merged 1 commit intodotnet:mainfrom
NikolaMilosavljevic:ros.ob

Conversation

@NikolaMilosavljevic
Copy link
Copy Markdown
Member

Obfuscated files will block the source tarball signing.

Copilot AI review requested due to automatic review settings February 2, 2026 17:28
@dotnet-policy-service dotnet-policy-service bot requested a review from a team February 2, 2026 17:28
@NikolaMilosavljevic NikolaMilosavljevic requested review from 333fred, MichaelSimons, ellahathaway, mmitche and mthalman and removed request for a team February 2, 2026 17:28
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.

Pull request overview

Updates Roslyn test resources to avoid including obfuscated test binaries in VMR source tarball/signing scenarios.

Changes:

  • Adds an exclude pattern for Roslyn obfuscated test DLLs in source-mappings.json
  • Conditions the Obfuscated/Obfuscated2 resource APIs out of TestResources when building from VMR
  • Conditions embedding of the obfuscated DLL resources (and defines a build symbol) in the resources .csproj

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.

File Description
src/source-mappings.json Excludes obfuscated Roslyn test binaries from source mapping to unblock tarball signing
src/roslyn/src/Compilers/Test/Resources/Core/TestResources.cs Conditionally removes accessors for obfuscated test resources in VMR builds
src/roslyn/src/Compilers/Test/Resources/Core/Microsoft.CodeAnalysis.Compiler.Test.Resources.csproj Defines DOTNET_BUILD_FROM_VMR and conditionally embeds obfuscated resources

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NikolaMilosavljevic NikolaMilosavljevic merged commit 694de4a into dotnet:main Feb 2, 2026
14 of 17 checks passed
@dotnet-policy-service dotnet-policy-service bot requested a review from a team February 2, 2026 20:16
@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

/backport to release/10.0.1xx

@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

/backport to release/10.0.2xx

@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

/backport to release/11.0.1xx-preview1

@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

@mmitche @premun do you know why /backport would not be working anymore?

@akoeplinger
Copy link
Copy Markdown
Member

@NikolaMilosavljevic this was due to the GitHub Actions / Azure outage yesterday, the action run didn't get a machine: https://github.com/dotnet/dotnet/actions/runs/21605659435?pr=4603+%28comment%29

it should work again now

@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

/backport to release/11.0.1xx-preview1

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 3, 2026

Started backporting to release/11.0.1xx-preview1 (link to workflow run)

@NikolaMilosavljevic
Copy link
Copy Markdown
Member Author

/backport to release/10.0.1xx

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 3, 2026

Started backporting to release/10.0.1xx (link to workflow run)

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.

5 participants