Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NativeAOT] Do not root platform assembly #18885

Merged

Conversation

simonrozsival
Copy link
Contributor

Closes #18779

Based on testing several MAUI samples, there doesn't seem to be a reason to root the whole platform assembly anymore.

Copy link
Contributor

@ivanpovazan ivanpovazan left a comment

Choose a reason for hiding this comment

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

Thank you!

PS Additionally this would also complete #18584

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@simonrozsival simonrozsival marked this pull request as ready for review August 31, 2023 10:23
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@simonrozsival
Copy link
Contributor Author

The MonoTouchFixtures.ARKit.ARConfigurationTest.Subclasses test (#5348) is failing:

[Test]
public void Subclasses ()
{
// note: this can be run on any xcode / OS version since it's reflection only
// all subclasses of ARConfiguration must (re)export 'GetSupportedVideoFormats'
var c = typeof (ARConfiguration);
foreach (var sc in c.Assembly.GetTypes ()) {
if (!sc.IsSubclassOf (c))
continue;
var m = sc.GetMethod ("GetSupportedVideoFormats", BindingFlags.Static | BindingFlags.Public);
Assert.NotNull (m, sc.FullName);
}
}

I think this can be expected when we don't root the whole assembly. I'm not sure what the correct fix is and if this test is even necessary in the NativeAOT configuration 🤔

@rolfbjarne
Copy link
Member

The MonoTouchFixtures.ARKit.ARConfigurationTest.Subclasses test (#5348) is failing:

[Test]
public void Subclasses ()
{
// note: this can be run on any xcode / OS version since it's reflection only
// all subclasses of ARConfiguration must (re)export 'GetSupportedVideoFormats'
var c = typeof (ARConfiguration);
foreach (var sc in c.Assembly.GetTypes ()) {
if (!sc.IsSubclassOf (c))
continue;
var m = sc.GetMethod ("GetSupportedVideoFormats", BindingFlags.Static | BindingFlags.Public);
Assert.NotNull (m, sc.FullName);
}
}

I think this can be expected when we don't root the whole assembly. I'm not sure what the correct fix is and if this test is even necessary in the NativeAOT configuration 🤔

This should fix it: #18908

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build] Windows Integration Tests passed 💻

All Windows Integration Tests passed.

Pipeline on Agent
Hash: 0028b0c067e543a8fd77eaa70dc5437ea4767539 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build] Tests on macOS M1 - Mac Ventura (13.0) passed 💻

All tests on macOS M1 - Mac Ventura (13.0) passed.

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻

All tests on macOS M1 - Mac Big Sur (11.5) passed.

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Failed to compare API and create generator diff 🔥

Failed to run apidiff

Pipeline on Agent
Hash: 0028b0c067e543a8fd77eaa70dc5437ea4767539 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build] Test results 🚀

Test results

✅ All tests passed on VSTS: simulator tests.

🎉 All 233 tests passed 🎉

Tests counts

✅ bcl: All 69 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests: All 1 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 7 tests passed. Html Report (VSDrops) Download
✅ framework: All 8 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ generator: All 2 tests passed. Html Report (VSDrops) Download
✅ interdependent_binding_projects: All 7 tests passed. Html Report (VSDrops) Download
✅ install_source: All 1 tests passed. Html Report (VSDrops) Download
✅ introspection: All 8 tests passed. Html Report (VSDrops) Download
✅ linker: All 65 tests passed. Html Report (VSDrops) Download
✅ mac_binding_project: All 1 tests passed. Html Report (VSDrops) Download
✅ mmp: All 2 tests passed. Html Report (VSDrops) Download
✅ mononative: All 6 tests passed. Html Report (VSDrops) Download
✅ monotouch: All 39 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ mtouch: All 1 tests passed. Html Report (VSDrops) Download
✅ xammac: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 8 tests passed. Html Report (VSDrops) Download
✅ xtro: All 2 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: 0028b0c067e543a8fd77eaa70dc5437ea4767539 [PR build]

@rolfbjarne rolfbjarne linked an issue Sep 7, 2023 that may be closed by this pull request
@rolfbjarne rolfbjarne merged commit aef2c91 into xamarin:net8.0 Sep 7, 2023
78 checks passed
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.

NativeAOT: Do not root the framework assembly
4 participants