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

[generator] Use new ObsoletedOSPlatformAttribute for generated code #15941

Merged
merged 12 commits into from
Oct 6, 2022

Conversation

chamons
Copy link
Contributor

@chamons chamons commented Sep 12, 2022

@chamons
Copy link
Contributor Author

chamons commented Sep 12, 2022

I reviewed examples of the generated code and found no changes in legacy and what looked reasonable in NET builds.

@chamons chamons added the notes-mention Deserves a mention in release notes label Sep 12, 2022
@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.

@vs-mobiletools-engineering-service2

This comment has been minimized.

src/generator-attributes.cs Show resolved Hide resolved
src/generator-attributes.cs Show resolved Hide resolved
src/generator-attributes.cs Outdated Show resolved Hide resolved
@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.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne self-requested a review September 19, 2022 16:12
@vs-mobiletools-engineering-service2

This comment has been minimized.

Copy link
Member

@rolfbjarne rolfbjarne left a comment

Choose a reason for hiding this comment

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

The changes look correct, but it seems a number of tests have to be updated as well.

Some of the monotouch-test tests are unrelated - you can fix those by merging net7.0 into your branch. (the fix isn't in net7.0 yet). There's at least one that is related though ("DelegateAndDataSourceAllowsNull: 2 failing types").

@chamons
Copy link
Contributor Author

chamons commented Sep 20, 2022

I'll fix DelegateAndDataSourceAllowsNull up and wait for you to tell me net7.0 is fixed.

@chamons
Copy link
Contributor Author

chamons commented Sep 20, 2022

[13:55:30.4847390] 	[FAIL] DelegateAndDataSourceAllowsNull : 2 failing types
[13:55:30.4848160] 2 failing types:
[13:55:30.4848270] GameKit.GKAchievementViewController: Could not initialize an instance of the type 'GameKit.GKAchievementViewController': the native 'init' method returned nil.
[13:55:30.4848380] It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
[13:55:30.4848470] GameKit.GKLeaderboardViewController: Could not initialize an instance of the type 'GameKit.GKLeaderboardViewController': the native 'init' method returned nil.
[13:55:30.4848550] It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
[13:55:30.4848630]

@rolfbjarne
Copy link
Member

@chamons the unrelated failing monotouch-test tests should be fixed now.

The other test failures (cecil, introspection, xtro) all look related to the changes in this PR.

@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.

@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.

@stephen-hawley
Copy link
Contributor

👀

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent XAMBOT-1042.Monterey'
Hash: b8c9a98b656b88a80a8e7512d5170966b16de34e [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: b8c9a98b656b88a80a8e7512d5170966b16de34e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

Legacy Xamarin (No breaking changes)
  • iOS (no change detected)
  • tvOS (no change detected)
  • watchOS (no change detected)
  • macOS (no change detected)
.NET (No breaking changes)

✅ API diff vs stable

Legacy Xamarin (No breaking changes)
.NET (No breaking changes)
Legacy Xamarin (stable) vs .NET

ℹ️ Generator diff

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

Pipeline on Agent
Hash: b8c9a98b656b88a80a8e7512d5170966b16de34e [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [CI Build] Test results 🔥

Test results

❌ Tests failed on VSTS: simulator tests

0 tests crashed, 13 tests failed, 210 tests passed.

Failures

❌ bcl tests

11 tests failed, 58 tests passed.
  • [NUnit] Mono BCL tests group 1/tvOS - simulator/Debug: LaunchTimedOut
  • [NUnit] Mono BCL tests group 2/tvOS - simulator/Debug: LaunchTimedOut
  • [xUnit] Mono BCL tests group 3/tvOS - simulator/Debug: LaunchTimedOut
  • [xUnit] Mono BCL tests group 4/tvOS - simulator/Debug: LaunchTimedOut
  • [xUnit] Mono BCL tests group 5/tvOS - simulator/Debug: LaunchTimedOut
  • mscorlib Part 1/tvOS - simulator/Debug: LaunchTimedOut
  • mscorlib Part 2/tvOS - simulator/Debug: LaunchTimedOut
  • mscorlib Part 3/tvOS - simulator/Debug: LaunchTimedOut
  • [xUnit] Mono SystemCoreXunit Part 1/tvOS - simulator/Debug: LaunchTimedOut
  • [xUnit] Mono SystemCoreXunit Part 2/tvOS - simulator/Debug: LaunchTimedOut
  • [xUnit] Mono SystemXunit/tvOS - simulator/Debug: LaunchTimedOut

Html Report (VSDrops) Download

❌ framework tests

2 tests failed, 6 tests passed.
  • framework-test/tvOS - simulator/Debug [dotnet]: LaunchTimedOut
  • framework-test/tvOS - simulator/Debug: LaunchTimedOut

Html Report (VSDrops) Download

Successes

✅ 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
✅ 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 12 tests passed. Html Report (VSDrops) Download
✅ monotouch: All 23 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: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build] Test results 🚀

Test results

✅ All tests passed on VSTS: simulator tests.

🎉 All 223 tests passed 🎉

Tests counts

✅ bcl: All 69 tests passed. [attempt 2] 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 12 tests passed. Html Report (VSDrops) Download
✅ monotouch: All 23 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: [PR build]

@chamons chamons merged commit 83ed66e into xamarin:net7.0 Oct 6, 2022
@chamons chamons deleted the net7.0_obsolete_attribute branch October 6, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-mention Deserves a mention in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants