Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"comments": [
"Workaround for NDISTest 6.5 GlitchFreeDevice test incompatibility with NDIS Poll Mode"
],
"tests_config": [
Comment on lines +2 to +5

Choose a reason for hiding this comment

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

critical

This new JSON file has two critical issues:

  1. Invalid JSON: There is a missing comma between the comments block and the tests_config property, which makes the JSON file unparseable.
  2. Unsupported Property: The Extension model, defined as a Sorbet T::Struct in lib/models/extension.rb, does not have a comments property. When this JSON file is loaded, the application will attempt to initialize an Extension object with an unknown property, which will raise a runtime error and cause a crash.

JSON does not have a standard syntax for comments. This kind of metadata should be included in commit messages or pull request descriptions. Please remove the comments field to fix both issues.

Suggested change
"comments": [
"Workaround for NDISTest 6.5 GlitchFreeDevice test incompatibility with NDIS Poll Mode"
],
"tests_config": [
"tests_config": [

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not true. Sorbet allows for loading objects from JSON with extra fields

{
"tests": [
"NDISTest 6.5 - \\[2 Machine\\] - GlitchFreeDevice"
],
"pre_test_commands": [
{
"desc": "Disable Poll Mode for NetKVM driver to work around GlitchFreeDevice test issues",
"guest_run": "Set-NetAdapterAdvancedProperty -Name SupportDevice0 -DisplayName 'Ndis Poll Mode' -RegistryValue 0"
}
],
"post_test_commands": [
{
"desc": "Re-enable Poll Mode for NetKVM driver after test completion",
"guest_run": "Set-NetAdapterAdvancedProperty -Name SupportDevice0 -DisplayName 'Ndis Poll Mode' -RegistryValue 1"
}
]
}
]
}
Loading