Skip to content

Update mirrored universal DBI source - #6162

Merged
max-charlamb merged 1 commit into
mainfrom
automation/sync-dbi
Oct 27, 2026
Merged

max-charlamb merged 1 commit into
mainfrom
automation/sync-dbi

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Updates the universal DBI and its private PAL from dotnet/runtime@9f06f271b8aa0cbb073b2bb6f85b16da576e6eaa.

The imported paths come from runtime's src/coreclr/dlls/mscordbi_universal/SourceManifest.props.

Note

This pull request was generated by GitHub Copilot automation.

@github-actions
github-actions Bot requested a review from a team as a code owner October 27, 2026 15:02
@max-charlamb

Copy link
Copy Markdown
Member

/ba-g mirror change

@max-charlamb
max-charlamb merged commit 0bcf621 into main Oct 27, 2026
3 of 13 checks passed
@max-charlamb
max-charlamb deleted the automation/sync-dbi branch October 27, 2026 15:05
max-charlamb added a commit that referenced this pull request Oct 28, 2026
## Summary

- build `mscordbi_universal` directly from the mirrored dotnet/runtime
source instead of consuming `Microsoft.DotNet.Cdac.Transport`
- remove the transport package download and its six RID-specific
dependency-flow entries from diagnostics
- keep the DBI in a separate CMake graph so its Unix build retains a
private runtime PAL
- integrate the source build with the existing Windows and Unix native
build orchestration and copy the DBI and symbols into the normal
diagnostics native output
- use the mirrored runtime snapshot's CMake `try_run` cache when
cross-compiling the DBI
- align glibc Linux DBI builds with runtime's current cross images and
static libc++/libstdc++ ABI configuration

The standalone CMake entry point reproduces the runtime PAL, debug, and
DLL directory scopes while excluding unrelated PAL products. It does not
include CoreCLR's in-process crash-report implementation because
universal DBI has no crash-report callers.

The runtime source closure is maintained separately by the automated
mirror. #6162 updated the mirror to runtime commit
`9f06f271b8aa0cbb073b2bb6f85b16da576e6eaa`, including the full debugger
source closure needed by this build.

The resulting Windows and Linux DBI compiler commands match the normal
dotnet/runtime universal DBI build after normalizing source,
intermediate, object, PDB, and dependency-file paths.

## Validation

- clean integrated Windows x64 Debug native build passed:
  - `.\build.cmd -skipmanaged -architecture x64 -configuration Debug`
  - universal DBI completed all 200 clean build steps
  - built and installed `mscordbi_universal.dll` SHA256 hashes matched
- Linux x64 cross-style Debug configure and build passed under WSL:
- configured through diagnostics' cross toolchain with the mirrored
runtime `tryrun.cmake`
  - universal DBI completed all 342 build steps
- produced `libmscordbi_universal.so` and `libmscordbi_universal.so.dbg`
- verified the original Linux cross configuration fails with the same
`HAVE_CLOCK_THREAD_CPUTIME_EXITCODE` error reported by CI, while the
updated configuration succeeds
- Linux old-system-header compatibility build passed:
- forced an `<elf.h>` without `EM_RISCV` and a `<linux/membarrier.h>`
without the private expedited command identifiers
- CMake detected the missing identifiers and supplied their stable ELF
and Linux UAPI values
  - `aotminipal` and `mscordbi_universal` completed all 364 build steps
- Linux current-system-header control build passed:
  - both capability checks succeeded
  - neither compatibility definition was emitted
  - `aotminipal` and `mscordbi_universal` completed all 362 build steps
- Linux x64 build passed in the exact updated CI container:
  - `azurelinux-3.0-net10.0-cross-amd64`
- `./build.sh -skipmanaged -cross -architecture x64 -configuration
Debug`
- full diagnostics native build completed, including `cxxexception.cpp`
and `libmscordbi_universal.so`
- Linux arm64 build passed in the exact updated CI container:
  - `azurelinux-3.0-net10.0-cross-arm64`
- `./build.sh -skipmanaged -cross -architecture arm64 -configuration
Debug`
- full diagnostics native cross build completed, including
`cxxexception.cpp` and `libmscordbi_universal.so`
- Linux-musl x64 build passed in its existing CI container:
- libc++ settings were correctly excluded based on the `linux-musl-x64`
target RID
- full diagnostics native build completed, including
`libmscordbi_universal.so`
- Windows x64 Debug runtime CoreCLR and universal DBI build passed:
- `cmake --build artifacts\obj\coreclr\windows.x64.Debug --target
coreclr mscordbi_universal`
- Linux x64 Release runtime CoreCLR and universal DBI build passed:
- `cmake --build artifacts/obj/coreclr/linux.x64.Release --target
coreclr mscordbi_universal`
- Windows compile comparison: 179 runtime commands, 179 diagnostics
commands, zero semantic differences
- Linux compile comparison: 329 runtime commands, 329 diagnostics
commands; all remaining compile commands are unchanged from the
previously equivalent graphs
- runtime and diagnostics universal DBI graphs contain zero crash-report
commands; runtime CoreCLR retains all seven
- Linux runtime and diagnostics target graphs contain zero LTTng
event-provider commands
- diagnostics contains no remaining `Microsoft.DotNet.Cdac.Transport` or
`CdacTransport` references
- all 1,926 mirrored runtime files are tracked, with zero ignored or
untracked snapshot files
- all 1,926 mirrored blobs exactly match runtime commit
`9f06f271b8aa0cbb073b2bb6f85b16da576e6eaa`
- `git diff --check` passed for the authored PR changes

> [!NOTE]
> This pull request description was generated with GitHub Copilot.

---------

Co-authored-by: Max Charlamb <[email protected]>
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 6297d10c-2f94-48bb-b897-bc0b3e1a855f
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.

1 participant