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

Tests | Activate "ActiveIssue" tests #3012

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

MichelZ
Copy link
Contributor

@MichelZ MichelZ commented Nov 18, 2024

This PR activates a couple of tests that were marked with "ActiveIssue"
Upon trying them out, they seem to run fine.

Also does some minor improvements on a few tests or disable some tests on specific platform

Fixes #3035

This also fixes and allows to close the following ActiveIssue's in AzDO:

  • 5531
  • 5533
  • 5535
  • 5536
  • 5541
  • 5540
  • 6643
  • 9196
  • 12161
  • 12161
  • 14588
  • 14325
  • 14590
  • 20245
  • 21707
  • 25147
  • 25421
  • 31754 (Partly - 2 tests activated, at least one remains)

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.95%. Comparing base (46e8714) to head (1034f92).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3012      +/-   ##
==========================================
+ Coverage   72.66%   72.95%   +0.29%     
==========================================
  Files         283      283              
  Lines       58975    58975              
==========================================
+ Hits        42853    43027     +174     
+ Misses      16122    15948     -174     
Flag Coverage Δ
addons 92.58% <ø> (ø)
netcore 75.79% <ø> (+0.35%) ⬆️
netfx 71.18% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ErikEJ
Copy link
Contributor

ErikEJ commented Nov 18, 2024

@MichelZ Maybe worth mentioning that this PR includes a product change?

Copy link
Contributor

@edwardneal edwardneal left a comment

Choose a reason for hiding this comment

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

Thanks. The corefx issues were moved to runtime, so accessing dotnet/corefx/issues/ID will redirect appropriately. This doesn't actually help though, none of the IDs seem to correspond to issues in corefx, runtime or SqlClient.

I've added a few comments, but I can't validate whether any of the ActiveIssue removals are valid because I can't tell where to look. Where we need to retain the ActiveIssue attributes, I'd suggest using this PR to set & enforce a code standard where identifiers in these attribute include a reference to the bug tracking system in question. The runtime repo uses the issue URLs, which seems like a sensible starting point...

Co-authored-by: Edward Neal <[email protected]>
@MichelZ
Copy link
Contributor Author

MichelZ commented Nov 18, 2024

Thanks. The corefx issues were moved to runtime, so accessing dotnet/corefx/issues/ID will redirect appropriately. This doesn't actually help though, none of the IDs seem to correspond to issues in corefx, runtime or SqlClient.

I've added a few comments, but I can't validate whether any of the ActiveIssue removals are valid because I can't tell where to look. Where we need to retain the ActiveIssue attributes, I'd suggest using this PR to set & enforce a code standard where identifiers in these attribute include a reference to the bug tracking system in question. The runtime repo uses the issue URLs, which seems like a sensible starting point...

Yes, but I have not found any "valid" issue ID's (I have checked a few)

@David-Engel
Copy link
Contributor

The issue IDs correspond to issues filed in our internal AzDO system. They are still valid, just not visible publicly. Interesting that the serialization issue fixed itself. 😄 The original exception from 2020 was

Error message
System.Runtime.Serialization.SerializationException : Member 'ClassName' was not found.


Stack trace
   at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType)
   at System.Runtime.Serialization.SerializationInfo.GetString(String name)
   at System.Exception..ctor(SerializationInfo info, StreamingContext context)
   at lambda_method(Closure , Object[] )
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializable(JsonReader reader, JsonISerializableContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializableItem(JToken token, Type type, JsonISerializableContract contract, JsonProperty member)
   at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type)
   at System.Exception..ctor(SerializationInfo info, StreamingContext context)
   at Microsoft.Data.SqlClient.SqlException..ctor(SerializationInfo si, StreamingContext sc) in /home/dotnet/ci-agent2/_work/2/s/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlException.cs:line 36
   at lambda_method(Closure , Object[] )
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializable(JsonReader reader, JsonISerializableContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Microsoft.Data.SqlClient.Tests.SqlExceptionTest.SerializationTest() in /home/dotnet/ci-agent2/_work/2/s/src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlExceptionTest.cs:line 19

@MichelZ
Copy link
Contributor Author

MichelZ commented Nov 19, 2024

The issue IDs correspond to issues filed in our internal AzDO system. They are still valid, just not visible publicly.
Ah. Would it be a good idea to:

  • A) Use the full URL to the issue in AzDO so it's immediately clear they are not publicly visible
  • B) Maybe add a small comment to the Test describing the issue so we don't need the private ticket information

or my favourite:

  • C) Use a public GitHub issue as the ActiveIssue and have additional private information linked from there

@MichelZ MichelZ changed the title Activate "ActiveIssue" tests Tests | Activate "ActiveIssue" tests Nov 25, 2024
@mdaigle mdaigle added ➕ Code Health Issues/PRs that are targeted to source code quality improvements. Area\Tests Issues that are targeted to tests or test projects and removed ➕ Code Health Issues/PRs that are targeted to source code quality improvements. labels Nov 25, 2024
@benrr101
Copy link
Contributor

benrr101 commented Dec 2, 2024

@MichelZ can you address the concern @ErikEJ raised about this including a product change?

@MichelZ
Copy link
Contributor Author

MichelZ commented Dec 3, 2024

@benrr101 I guess @ErikEJ was talking about the change to DeprecatedKeywordsCount which was reverted here:
8fb9d0b

Only test files are touched now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area\Tests Issues that are targeted to tests or test projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix XmlReader Test on ARM
7 participants