-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Test task on Windows image 20230517.1 fails #7683
Comments
@gioce90 hey there! Can you provide some additional information for investigation? Such as repro steps and logs. Or you may try proposed workaround. We'll wait your response. |
Hi @erik-bershel . I tried to substitute my DotNetCoreCLI@2 task with the two suggested in that link you posted (VisualStudioTestPlatformInstaller@1 and VSTest@2). Moreover the VSTest task raises some new kind of errors, as you can see: (to be honest, I would rather use the "DotNetCoreCLI@2 task" instead of switching to using VSTest) I don't know which repro steps you need, as already said I just runs a old commit on a branch that always worked, but when the Azure DevOps Pipeline Agent is with version 20230517.1 (or newest) the test just run indefinitely. If you need logs I can send you privately. |
Upon further investigation, I was able to isolate the problematic portion of the code. Once figured out which assembly I noticed the problem in the code (consist in a "sync over async" antipattern): This is of course bad code, but is there from the year 2020, and so far it has never given any problems. Now, I fixed it (right side of the screen) and ran all the tests: the run is successful, finally. The strange thing is that, as already reiterated, we haven't changed anything in the last few months. Of course, I think we can close this issue because is not a specific problem of this project. Anyway thank you for your time. |
Hello @gioce90! |
Hi again @gioce90! After weeks of waiting for a response from the teams involved in the development of the task you used, I have to admit that an answer to the question of what specific changes led to this result is not expected in the near future. I have requested my colleagues to try to conclude the investigation, but the outcome is not guaranteed. If and when such a response is received, I will add it here for reference. |
Description
Hi, I hope this is the right place where to ask help.
In my Azure DevOps Pipeline, I have this pipeline definition:
This pipeline for years worked well. Tests usually run successful in less than 2-3 minutes.
Now, in my company we noticed that, starting from 2-3 days, the pipeline randomly fails, because the 'dotnet test' Task is longer than 60 minutes.
The strange things is that for some runs on the same branch and the same commit this doesn't happen and the run is successful.
After a short analysis, I noticed that the only different things is the agent machine configurations:
Run with this config always run successfully ('dotnet test' Task short as usual):
Run with this config always fails ('dotnet test' Task too longer):
So my opinion is that the
20230508.3
version or oldests were okay and the new20230517.1
version have something wrong.Here, in this project, I found the difference between these two versions, and maybe is something related the new version of MSBuild, I don't know. Can you help me with that, maybe prioritizing the release of a new image version?
Platforms affected
Runner images affected
Image version and build link
Image: windows-2022
Version: 20230517.1
Included Software: https://github.com/actions/runner-images/blob/win22/20230517.1/images/win/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20230517.1
Is it regression?
20230508.3
Expected behavior
The pipeline's runs should all run successful because nothing changed in code or other (same branch, same commit)
Actual behavior
The pipeline's runs based on same branch and same commit sometimes fails. The only difference is the windows image version.
Repro steps
I just run the pipeline based on the same code (same branch and commit).
When the machine configuration mount the image version
20230508.3
(or older) it works, but when the machine mount the new image version20230517.1
always fails because the tests are indefinitely longer.The text was updated successfully, but these errors were encountered: