Skip to content

eng/native: pin the OHOS cross-build FIFO probe answers - #136132

Closed
springmin wants to merge 1 commit into
dotnet:mainfrom
springmin:pr/ohos-tryrun
Closed

springmin wants to merge 1 commit into
dotnet:mainfrom
springmin:pr/ohos-tryrun

Conversation

@springmin

Copy link
Copy Markdown
Contributor

OpenHarmony cross builds cannot run the FIFO probes, so pin the two
HAVE_BROKEN_FIFO_* cache answers when the build is identified as OpenHarmony
(OHOS_NDK_HOME is set, which the initial-cache script can read). Other
linux-family cross targets keep their own probe results.

Test

cmake -C eng/native/tryrun.cmake -DCMAKE_SYSTEM_NAME=OHOS with
OHOS_NDK_HOME set pins both answers; -DCMAKE_SYSTEM_NAME=Linux or unset
leaves them unset.

Note

This PR was authored with AI assistance (agent tooling) under the author's direction.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 20, 2026
springmin added a commit to springmin/runtime-ohos that referenced this pull request Oct 20, 2026
Rebased onto b37852e; remote had a stale pr/ohos-tryrun tip, so the
branch was force-with-lease updated after PR creation. In flight:
N3/N4/N8/N9/N14 (N9 approved, awaiting merge).
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Comment thread eng/native/tryrun.cmake Outdated
# OpenHarmony cross builds cannot run the FIFO probes; pin the two answers here
# (the remaining linux-family answers come from the code below). OHOS_NDK_HOME,
# which this initial-cache script can read, identifies the build.
if(DEFINED ENV{OHOS_NDK_HOME} AND NOT "$ENV{OHOS_NDK_HOME}" STREQUAL "")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add this to platform probe below and use the established pattern of this file. That comment is unnecessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — moved the OpenHarmony detection into the platform probe block and set the two cache values in the existing elseif chain, and dropped the comment. Rebased on current main; head is now fe9a4a1d020 (1 file, 5 insertions).

Note

This reply was drafted with AI assistance (agent tooling) under the author's direction.

Ported from the OpenHarmony runtime integration branch.
@am11

am11 commented Oct 20, 2026

Copy link
Copy Markdown
Member

Both of these are unused, so I'm closing it in favor of #136147.

@springmin, as asked before, instead of these tiny few liner PRs, it would be good to push substantial changes in batches so we can see real progress on initial port work, as we have the precedence set by other platform ports.

@springmin

Copy link
Copy Markdown
Contributor Author

Understood — and thanks for the pointer. #136147 removed both configs, so closing #136132 is the right call.

I'll regroup the remaining runtime port work into substantial batches instead of individual small PRs:

  • build/AOT + pack integration (crossgen2 CoreLib, AOT targets, pack/RID wiring)
  • libraries TFM groups + console + shims
  • the System.Native close_range fix

The three PRs already open (#135839, #135840, #135866) are in review and I'll leave them as they are.

Note

This reply was drafted with AI assistance (agent tooling) under the author's direction.

@am11

am11 commented Oct 20, 2026

Copy link
Copy Markdown
Member

The three PRs already open (#135839, #135840, #135866) are in review and I'll leave them as they are.

All those PRs are less than 10 liners and none of them are showing the error they are fixing. All those and whatever work is remaining on native side can be wrapped in a single PR. i.e. description should read "with these changes, dotnet(1) or corerun(1) passes these test suites on the device / VM" or a "hello world app works" etc. These little PRs seem like result of static analysis by confused AI.

@springmin

Copy link
Copy Markdown
Contributor Author

Done — consolidated into #136194 with device validation: hello world, child-process start, network-interface enumeration, and RSA/TLS through the OpenSSL shim on an OpenHarmony device. #135839, #135840, #135866 and #136187 are closed in its favor.

Note

This reply was drafted with AI assistance (agent tooling) under the author's direction.

springmin added a commit to springmin/runtime-ohos that referenced this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Infrastructure community-contribution Indicates that the PR has been added by a community member

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants