Skip to content

Managed ilasm: use time-based nondeterministic PDB IDs in nondeterministic builds - #136399

Merged
jkoritzinsky merged 1 commit into
dotnet:mainfrom
jkoritzinsky:dev/jkoritzinsky/feature-ilasm-pdb-identity
Oct 26, 2026
Merged

jkoritzinsky merged 1 commit into
dotnet:mainfrom
jkoritzinsky:dev/jkoritzinsky/feature-ilasm-pdb-identity

Conversation

@jkoritzinsky

Copy link
Copy Markdown
Member

Summary

Addresses the managed PDB ID portion of item 5 of #135314: use BlobContentId.GetTimeBasedProvider() for nondeterministic PDB IDs, giving a random GUID and time-based stamp instead of the constant stamp 0x04030201. Preserve deterministic IDs and content hashing.

The PdbChecksum debug-directory timestamp intentionally remains zero, following SRM rather than native ilasm. This does not fix the native-only issues #135211 or #135214. This branch is independently based on main and does not include the debug-attribute change.

Validation already run

$env:DOTNET_ROLL_FORWARD='LatestMajor'
$env:DOTNET_HOST_PATH='E:\copilot-worktrees\runtime\dev-jkoritzinsky-glowing-meme\artifacts\bin\testhost\net11.0-windows-Debug-x64\dotnet.exe'
.\.dotnet\dotnet.exe test src\tools\ilasm\tests\ILAssembler.Tests --filter 'FullyQualifiedName~CompilerOptionsTests' -- "RunConfiguration.DotNetHostPath=$env:DOTNET_HOST_PATH"

Result: branch rebuilt; 44 passed, 0 failed/skipped. The common corrected-reader testhost was reused, not added to this branch. No new test runs were performed for PR publication.

Note

This pull request description and code changes were prepared with GitHub Copilot assistance.

Keep SRM's zero PdbChecksum stamp and content-based deterministic IDs unchanged.

Co-authored-by: Copilot App <[email protected]>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib
See info in area-owners.md if you want to be subscribed.

@jkoritzinsky jkoritzinsky changed the title Managed ilasm: use time-based nondeterministic PDB IDs Managed ilasm: use time-based nondeterministic PDB IDs in nondeterministic builds Oct 23, 2026
@jkoritzinsky

Copy link
Copy Markdown
Member Author

/ba-g existing profiler outerloop failure that has since been fixed.

@jkoritzinsky
jkoritzinsky merged commit 82f8c6a into dotnet:main Oct 26, 2026
63 of 65 checks passed
@github-project-automation github-project-automation Bot moved this to Done in AppModel Oct 26, 2026
@jkoritzinsky
jkoritzinsky deleted the dev/jkoritzinsky/feature-ilasm-pdb-identity branch October 26, 2026 17:12
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants