Repository navigation
Add the openharmony RIDs and skip repo-side NativeAOT for openharmony - #69952
Conversation
|
Thanks for your PR, @springmin. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
|
Thanks @akoeplinger. The root fix is in dotnet/arcade#17723 ( For the test assets, I imported Note This comment was drafted with AI assistance (agent tooling) under the author's direction. |
|
@akoeplinger added Note This comment was drafted with AI assistance (agent tooling) under the author's direction. |
a7de88c to
d25a59d
Compare
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
|
Status update after re-checking the current CI and dependency flow:
The current red checks are:
Could @akoeplinger or @dotnet/aspnet-build rerun Note This comment was drafted with AI assistance (agent tooling) under the author's direction. |
- Directory.Build.props: add openharmony-x64/arm64 to the shared-framework supported RIDs, and set NativeAotSupported=false for openharmony: the repo's bundled tools and E2E AOT harnesses do not have the OpenHarmony cross-AOT toolchain wired up. This does not affect user AOT publishing, which uses the runtime ILCompiler pack. - Directory.Packages.props: add the openharmony runtime and crossgen2 packages to the explicit runtime package list. - src/Tools/Directory.Build.props: add the openharmony RIDs to the bundled tool RIDs. - The E2E NativeAOT harnesses skip PublishAot for openharmony.
Import NativeAotSupported.props in the testassets Directory.Build.props, gate the E2E PublishAot on the property, and skip the NativeAOT E2E test project when the target does not support NativeAOT. The root override remains temporary until dotnet/arcade#17723 flows.
d25a59d to
0328421
Compare
|
@akoeplinger friendly ping — I rebased the branch onto current main ( The AOT test assets still import the property and use The latest CI run has 31 passing checks and 0 failures, including IIS and the Blazor E2E legs. I also replied to the five review threads. Could you take a fresh look and resolve the threads if the current code looks good? Thanks! |
Summary
Add
openharmony-arm64/openharmony-x64to the shared-framework supportedRIDs, the explicit runtime/crossgen2 package list, and the bundled-tool RIDs.
Skip repo-side NativeAOT for openharmony: the repository's bundled tools and
E2E AOT harnesses do not have the OpenHarmony cross-AOT toolchain wired up.
This does not affect user AOT publishing, which uses the runtime ILCompiler
pack.
Changes
Directory.Build.props: add the two openharmony RIDs toSupportedRuntimeIdentifiers, and setNativeAotSupported=falsewhen thetarget OS or runtime identifier is openharmony (repo-side tools and E2E
harnesses only).
Directory.Packages.props: addMicrosoft.NETCore.App.Runtime.openharmony-*and
Microsoft.NETCore.App.Crossgen2.openharmony-*to the explicit runtimepackage list.
src/Tools/Directory.Build.props: add the openharmony RIDs toBundledToolTargetRuntimeIdentifiers.src/Components/Testing/testassets/NativeAotTestApp/NativeAotTestApp.csprojand
.../PackageConsumer/App/PackageConsumer.App.csproj: skipPublishAotfor openharmony in the E2E AOT harnesses.
Impact
is skipped only for the repository's own tools and E2E harnesses; user AOT
publishing is served by the runtime ILCompiler pack.
Follow-up
Repo-side AOT for openharmony can be enabled once the runtime ILCompiler pack
for the pinned version and the OpenHarmony cross-AOT toolchain (NDK/lld, see
the prereqs image discussion) are available to the build.
Test
openharmony-arm64: the shared framework and bundled toolsresolve the openharmony RIDs; repo-side NativeAOT is not attempted.
PublishAoton openharmony.Note
This PR was authored with AI assistance (agent tooling) under the author's direction.