Skip to content

[tests] Don't let run-bare's recursive make trip the RUNTIMEIDENTIFIER guard. - #26360

Open
rolfbjarne wants to merge 1 commit into
mainfrom
dev/rolf/tests-rid-fix
Open

[tests] Don't let run-bare's recursive make trip the RUNTIMEIDENTIFIER guard.#26360
rolfbjarne wants to merge 1 commit into
mainfrom
dev/rolf/tests-rid-fix

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

The makefile exports RUNTIMEIDENTIFIER (or RUNTIMEIDENTIFIERS) from RID. The
'$(MAKE) delete-saved-state' recursion in run-bare inherited that exported
value and tripped the guard that forbids setting RUNTIMEIDENTIFIER(S)
directly, so run-bare failed after the test app exited successfully. Clear
the variables for the run-bare target, mirroring what run-old already does.

…R guard.

The makefile exports RUNTIMEIDENTIFIER (or RUNTIMEIDENTIFIERS) from RID. The
'$(MAKE) delete-saved-state' recursion in run-bare inherited that exported
value and tripped the guard that forbids setting RUNTIMEIDENTIFIER(S)
directly, so run-bare failed after the test app exited successfully. Clear
the variables for the run-bare target, mirroring what run-old already does.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 30, 2026 07:51
@rolfbjarne rolfbjarne added copilot ready-to-review This PR is ready to review/merge. labels Jul 30, 2026

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.

Pull request overview

This PR fixes run-bare in the .NET test makefile so that its recursive $(MAKE) delete-saved-state invocation doesn’t inherit exported RUNTIMEIDENTIFIER(S) values (derived from RID) and trip the makefile guard that forbids setting RUNTIMEIDENTIFIER(S) directly.

Changes:

  • Clear exported RUNTIMEIDENTIFIER and RUNTIMEIDENTIFIERS for the run-bare target to prevent sub-make guard failures.
  • Add an explanatory comment documenting why those exports are cleared.

Comment thread tests/common/shared-dotnet.mk
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 549a674004568ba5f8b59089e7cce2cd177d0dd9 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #549a674] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 2 tests failed, 201 tests passed.

Failures

❌ monotouch tests (iOS)

1 tests failed, 18 tests passed.

Failed tests

  • monotouch-test/iOS - simulator/Debug (PrepareAssemblies): Failed

Html Report (VSDrops) Download

❌ Tests on macOS Tahoe (26) tests

1 tests failed, 4 tests passed.

Failed tests

  • MacCatalyst/maccatalyst-arm64 monotouch-test: Failed (exit code 1)
    • [FAIL] CreateResponseAuth : ObjCRuntime.RuntimeException : Failed to lookup the required marshalling information.

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 19 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 549a674004568ba5f8b59089e7cce2cd177d0dd9 [PR build]

@rolfbjarne
rolfbjarne enabled auto-merge (squash) July 30, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot ready-to-review This PR is ready to review/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants