Skip to content

Add Native AOT smoke coverage for upgrade paths - #539

Open
JusterZhu wants to merge 2 commits into
masterfrom
justerzhu-generalupdate-native-aot
Open

JusterZhu wants to merge 2 commits into
masterfrom
justerzhu-generalupdate-native-aot

Conversation

@JusterZhu

@JusterZhu JusterZhu commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Use generated JSON metadata for Bowl crash reports instead of reflection.
  • Publish and run a .NET 10 Native AOT smoke executable on Windows and Linux CI, covering manifest, version API, OSS, reporting, encrypted IPC, crash reports, and BSDiff.
  • Document the verified scope and exclusions; correct StorageManager JSON metadata documentation.

Validation

  • CI published and ran the Native AOT smoke executable successfully for win-x64 and linux-x64; Windows and Ubuntu build-and-test jobs passed.
  • Bowl serialization and crash reporter tests: 15 passed locally. The smoke scenarios also passed locally with reflection-based JSON disabled (managed execution).
  • Local win-x64 native linking was unavailable due to the missing Visual C++ linker; CI supplied the native toolchains. Other RIDs and .NET 8 are not verified.
  • Native publish emits IL2026 for Core and Bowl tracing: stack-frame method names are best-effort after trimming. SignalR push, full upgrade orchestration and external Bowl monitoring/rollback are outside this smoke test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 22, 2026 15:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The README heading includes an extra hash that renders the title as “GeneralUpdate #” and should be removed to preserve the project title.

1 open issue
What changed in this PR

Adds .NET 10 Native AOT smoke coverage for selected GeneralUpdate upgrade components, without claiming end-to-end upgrade validation.

Changes:

  • Uses generated JSON metadata for Bowl crash reports and updates storage tests.
  • Adds a smoke executable and Windows/Linux CI jobs to publish and run it natively.
  • Documents coverage and exclusions, and corrects StorageManager’s metadata documentation.
File Description
tests/​BowlTest/​FileSystem/​StorageHelperTests.cs Updates JSON tests to use crash models and generated metadata.
tests/​AotSmoke/​Program.cs Exercises manifest, version API, OSS, reporting, IPC, crash-report, and BSDiff paths.
tests/​AotSmoke/​AotSmoke.csproj Configures a .NET 10 Native AOT executable with JSON reflection disabled.
src/​GeneralUpdate.Core/​FileSystem/​StorageManager.cs Corrects documentation about required JSON metadata; no behavior change.
src/​GeneralUpdate.Bowl/​Internal/​CrashReporter.cs Passes generated crash metadata to serialization.
src/​GeneralUpdate.Bowl/​GeneralUpdate.Bowl.csproj Grants the smoke executable access to Bowl internals.
src/​GeneralUpdate.Bowl/​FileSystem/​StorageHelper.cs Requires explicit JSON metadata for serialization.
README.md Links to Native AOT verification documentation.
docs/​native-aot.md Documents publish instructions, covered paths, and limitations.
.github/​workflows/​ci.yml Replaces the analyzer-only check with native publish-and-run jobs for Windows and Linux x64.

Review effort: Balanced

Comment thread README.md
![](./imgs/LOGO白1.png)

# GeneralUpdate #
# GeneralUpdate # #
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

2 participants