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

System.Runtime.Tests.WorkItemExecution "crash" on tvOS #106319

Open
CarnaViire opened this issue Aug 13, 2024 · 11 comments
Open

System.Runtime.Tests.WorkItemExecution "crash" on tvOS #106319

CarnaViire opened this issue Aug 13, 2024 · 11 comments
Labels
area-Codegen-LLVM-mono Known Build Error Use this to report build issues in the .NET Helix tab os-tvos Apple tvOS
Milestone

Comments

@CarnaViire
Copy link
Member

CarnaViire commented Aug 13, 2024

The whole Helix WorkItem shows as "crashed", but there's actually just a failed test (System.Tests.DecimalTests+BigIntegerAdd.Test) which is already tracked in #106256. It is impossible to see which test is failing in the available CI logs though, I can only see that in Test Results page in AzDO.

The actual Known Issue is properly linked to the PR, but the Build Analysis is red, as the "crash" is considered to be a separate issue. cc @JulieLeeMSFT FYI

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=773271
Build error leg or test failing: System.Runtime.Tests.WorkItemExecution
Pull request: #106269

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["--target tvos-device", "System.Runtime.Tests", "XHarness exit code: 1 (TESTS_FAILED)"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=773271
Error message validated: [--target tvos-device System.Runtime.Tests XHarness exit code: 1 (TESTS_FAILED)]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/13/2024 12:41:45 PM UTC

Report

Build Definition Test Pull Request
879438 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109584
876708 dotnet/runtime System.Runtime.Tests.WorkItemExecution #110083
871770 dotnet/runtime System.Runtime.Tests.WorkItemExecution
871592 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109861
871361 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109861
870807 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109861
870755 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109832
870187 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109832
870136 dotnet/runtime System.Runtime.Tests.WorkItemExecution #104637
869930 dotnet/runtime System.Runtime.Tests.WorkItemExecution #104097
866332 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109608
866093 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109690
862721 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109507
862027 dotnet/runtime System.Runtime.Tests.WorkItemExecution #107961
858045 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109399
857959 dotnet/runtime System.Runtime.Tests.WorkItemExecution
857334 dotnet/runtime System.Runtime.Tests.WorkItemExecution #109405

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 17
@CarnaViire CarnaViire added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 13, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 13, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Aug 13, 2024
@CarnaViire CarnaViire added os-tvos Apple tvOS and removed untriaged New issue has not been triaged by the area owner labels Aug 13, 2024
Copy link
Contributor

Tagging subscribers to 'os-tvos': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@CarnaViire CarnaViire added the untriaged New issue has not been triaged by the area owner label Aug 13, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime
See info in area-owners.md if you want to be subscribed.

@matouskozak matouskozak added area-Codegen-LLVM-mono and removed area-System.Runtime needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Aug 14, 2024
Copy link
Contributor

Tagging subscribers to this area: @lambdageek, @steveisok
See info in area-owners.md if you want to be subscribed.

@matouskozak
Copy link
Member

The failing test can be found thru the net.dot... log file in the artifacts tab like this @CarnaViire:
image

I don't understand why it required this PR to get the BuildAnalysis to green because the PR got correctly matched to the original tracking issue #106256
image

My guess is that it considered the System.Tests.DecimalTests+BigIntegerAdd.Test as a separate test from the System.Runtime.Tests even though the BigInteger is a part of the System.Runtime.Tests suit. @missymessa do you know if this is expected behavior of BA?

@matouskozak matouskozak removed the untriaged New issue has not been triaged by the area owner label Aug 14, 2024
@missymessa
Copy link
Member

@matouskozak when the error is in Helix we just have one log per workitem, not individual logs for test, and we read the whole log, so it can match all the tests failing in the workitem

@matouskozak
Copy link
Member

@matouskozak when the error is in Helix we just have one log per workitem, not individual logs for test, and we read the whole log, so it can match all the tests failing in the workitem

Do you know then why it wasn't sufficient that it matched the failing workitem in #106256 and this Known Build Error issue was required?

The Test tab shows:
image
but the job shows only a single workitem
image

Perhaps it's something wrong in Mobile/XHarness reporting?

@AlitzelMendez
Copy link
Member

can you expand more on: it wasn't sufficient to match the workitem? were you still having the error on the pull request? I see the build: 773271 in both issues, so I want to know which was the gap

@matouskozak
Copy link
Member

can you expand more on: it wasn't sufficient to match the workitem? were you still having the error on the pull request? I see the build: 773271 in both issues, so I want to know which was the gap

I was just going based on the issue description saying:

The actual Known Issue is properly linked to the PR, but the Build Analysis is red, as the "crash" is considered to be a separate issue.

Based on my understanding, the System.Tests.DecimalTests+BigIntegerAdd.Test failure got matched correctly with #106256 but the System.Runtime.Tests remained unmatched even though the System.Tests.DecimalTests+BigIntegerAdd.Test is a part of System.Runtime.Tests. Consequently, they had to create this separate issue to match System.Runtime.Tests failure to make BA green. @CarnaViire do you have more context on this please?

@CarnaViire
Copy link
Member Author

Based on my understanding, the System.Tests.DecimalTests+BigIntegerAdd.Test failure got matched correctly with #106256 but the System.Runtime.Tests remained unmatched even though the System.Tests.DecimalTests+BigIntegerAdd.Test is a part of System.Runtime.Tests. Consequently, they had to create this separate issue to match System.Runtime.Tests failure to make BA green.

@matouskozak @AlitzelMendez Yes, that's exactly what had happened.

After the CI executed, BA was red, and I could see that there are:

  • 1 Known Issue -- System.Tests.DecimalTests+BigIntegerAdd.Test
  • 1 unmatched "Helix crash" in System.Runtime.Tests

Because the namespace doesn't match (it is System.Tests.DecimalTests and not System.Runtime.Tests.DecimalTests), it was not even clear to me whether these two are related or not. 🥲

So I went to the logs to try to see what it was about. I usually can navigate to specific test run log through the pipeline Job logs (esp. when tests are failing, the logs are usually nicely linked from there) -- but I guess that's not the case with mobile platforms. So the only available log there was the WorkItem log, which didn't say much to me, beside that it is not a crash 😅

And as I mentioned, I wasn't able to find the actual test logs (a bit more on that is below under the cut). I actually had to search the source code to verify that System.Tests.DecimalTests+BigIntegerAdd.Test actually IS part of System.Runtime.Tests, so it was really the failing test in question. 😅

So yeah, after that I could either skip the BA validation, since I've found the root cause and it's already tracked -- or still open the issue; and this false-negative looked inconvenient enough so I thought it's better to raise awareness.


Re: test logs location

BTW

The failing test can be found thru the net.dot... log file in the artifacts tab like this

The tab wasn't (and still isn't) loading for me in this case for some reason. (It did load for other libs on other runs, so it was working in general)

image

UPD:

Yay, it actually started loading after reloading the page multiple times and some other very random actions I did 🤦‍♀️ (note that I was so persistent only because now I knew they should be there 😅) So i don't know what exactly "fixed" it, what the problem was, and why it persisted from before (since Aug 13, through computer and browser restarts, through staying on the page and waiting) until now. 🤷‍♀️

@vitek-karas vitek-karas added this to the 10.0.0 milestone Sep 10, 2024
@jeffschwMSFT jeffschwMSFT removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Sep 27, 2024
@jeffschwMSFT
Copy link
Member

removing 'blocking-clea-ci' since it has not failed in 30 days

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

@matouskozak
Copy link
Member

can you expand more on: it wasn't sufficient to match the workitem? were you still having the error on the pull request? I see the build: 773271 in both issues, so I want to know which was the gap

I was just going based on the issue description saying:

The actual Known Issue is properly linked to the PR, but the Build Analysis is red, as the "crash" is considered to be a separate issue.

Based on my understanding, the System.Tests.DecimalTests+BigIntegerAdd.Test failure got matched correctly with #106256 but the System.Runtime.Tests remained unmatched even though the System.Tests.DecimalTests+BigIntegerAdd.Test is a part of System.Runtime.Tests. Consequently, they had to create this separate issue to match System.Runtime.Tests failure to make BA green. @CarnaViire do you have more context on this please?

@AlitzelMendez do you have any insights into why this happened? Did we create the Known Failure issue incorrectly or is this a bug on BA side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Codegen-LLVM-mono Known Build Error Use this to report build issues in the .NET Helix tab os-tvos Apple tvOS
Projects
None yet
Development

No branches or pull requests

6 participants