-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
[dotnet] Address lingering AOT warnings #15506
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-edge Formatting 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
CloseDevToolsSession
for compatibility.Refactored JSON serialization logic in
Command
class.TypeInfoResolver
toTypeInfoResolverChain
.ParametersAsJsonString
property logic.CommandJsonSerializerContext
.Enhanced
FileUtilities.GetCurrentDirectory
for 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 logic
dotnet/src/webdriver/Command.cs
TypeInfoResolver
withTypeInfoResolverChain
.ParametersAsJsonString
property logic.CommandJsonSerializerContext
.JsonSourceGenerationOptions
for custom converters.FileUtilities.cs
Enhance null handling in `GetCurrentDirectory`
dotnet/src/webdriver/Internal/FileUtilities.cs
executingAssembly.Location
.GetCurrentDirectory
for better readability.