-
- Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Address lingering AOT warnings #15506
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
| ||||||||||||
| CI failures are unrelated to this PR: //dotnet/test/common:BiDi/Script/EvaluateParametersTest-firefox //dotnet/test/common:PageLoadingTest-firefox //dotnet/test/common:BiDi/Storage/StorageTest-edgeFormatting failure is unrelated to .NET: index 8b019db..e02d602 100644 --- a/rust/tests/BUILD.bazel +++ b/rust/tests/BUILD.bazel @@ -1,5 +1,5 @@ load("@crates//:defs.bzl", "all_crate_deps") -load("//rust:defs.bzl", "rust_library", "rust_test_suite", "rustfmt_config") +load("//rust:defs.bzl", "rust_test_suite", "rustfmt_config") |
User description
Unlike other analyzers, AOT warnings are user-facing. It is important to address them on our side, for a clear and AOT-safe user experience.
Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
Added AOT-specific attributes to
CloseDevToolsSessionfor compatibility.Refactored JSON serialization logic in
Commandclass.TypeInfoResolvertoTypeInfoResolverChain.ParametersAsJsonStringproperty logic.CommandJsonSerializerContext.Enhanced
FileUtilities.GetCurrentDirectoryfor better null handling.Changes walkthrough 📝
ChromiumDriver.cs
Add AOT-specific attributes to `CloseDevToolsSession`dotnet/src/webdriver/Chromium/ChromiumDriver.cs
[RequiresUnreferencedCode]and[RequiresDynamicCode]attributes.CloseDevToolsSession.Command.cs
Refactor JSON serialization and deserialization logicdotnet/src/webdriver/Command.cs
TypeInfoResolverwithTypeInfoResolverChain.ParametersAsJsonStringproperty logic.CommandJsonSerializerContext.JsonSourceGenerationOptionsfor custom converters.FileUtilities.cs
Enhance null handling in `GetCurrentDirectory`dotnet/src/webdriver/Internal/FileUtilities.cs
executingAssembly.Location.GetCurrentDirectoryfor better readability.