-
Notifications
You must be signed in to change notification settings - Fork 326
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
[solved] TestPlatform 17.7.0 fails to run in Azure DevOps pipeline #4645
Comments
Seeing the same issue
|
@jsdeshazer We also use Azure DevOps. How did you pin the version to 17.6. Are you using the VSTest task? The docs show the VSTest task only accepts major version for the |
We also just hit this issue. Had to change every test pipeline to use specific version 17.6.3. |
For Azure DevOps, you can include the preview version, 17.8.0-preview-23371-04 doesn't have this problem |
@frek818 Sorry it should be 17.6.3 in the Test Platform Version |
You can use the VisualStudioTestPlatformInstaller task to specify a version installed on the agent, then have the test task set |
My pipelines are also failing due to the same |
I just unlisted 17.7.0 from Nuget, please someone let me know if it helped. |
Looks like the same issue from June? |
Unlisting has fixed my pipeline. It now pulls 17.6.3
|
Yes, I was just looking for that issue. The version generator was changed in the meantime to output semver v1 versions that the logic in DTA Host can handle. Or so we thought. Apparently it does not work for final versions. Honestly I don't know why this was released on Friday evening, and I am sorry that it broke you. If someone can let me know that hiding the package helped I will got back to my dinner and do post-mortem on Monday 🙏 |
Thanks @mslukebo. I will have another look later if there are more issues reported. I did not want to hide too many packages. |
This is not likely the same issue. The linked issue was caused by the prelease suffix at the end of the version string. This error is happening when using the latest stable release, which does not contain a suffix. |
The callstack looks very similar if not the same, at least to my tired eyes. 😅 |
Same callstack, but the input is malformed in different ways. For the prelease bug, the version parsing is unhappy about the If I inspect the logs for the VSTest, I notice the following: 17.6.3 says 17.7.0 says So the issue is that 17.7.0's version number contains the git hash (+246832ceaa77ef978eebaeac5199bc56731747a1) as a suffix, causing version parsing to fail. |
The preview version mentioned in the older issue contains a git hash as well: A previous post here indicated that 17.8.0-preview-23371-04 version worked without error; seems the "+" preceding the hash or the separators "." might be the issue. I haven't tested with 17.8 preview though |
Thanks for the pointers. The code in the original issue was unhappy about the extra I know where the code is so I can have a look on monday. I also saw in docs of Arcade (our build system) that + part should not be emitted when option for semver1 is used (which we are using). One way or another we will have to fix on our side, and hope for future fix in DTA host. |
Had a look on the code, it splits the version to 3 parts, the last part is "0+aaaaabbbbbcccc" which is not convertible to We now build through Arcade build system, which caused us this issue and so we might need to await a fix from them, if there is not a clean way to force the version. |
How Do you do that? Trying to get my yml pipeline using 17.8 |
You would use Test platform installer task to install a selected version of TP, and then the vstest task would be configured to pick it up: steps:
- task: VisualStudioTestPlatformInstaller@1
displayName: 'Visual Studio Test Platform Installer'
inputs:
versionSelector: latestPreRelease # <------------------
- task: VSTest@3
displayName: 'VsTest - testAssemblies'
inputs:
vsTestVersion: toolsInstaller # <------------------ Docs for the installer task are here, you can also choose specific version. Or a different nuget feed than NuGet.org |
This was fixed in 17.8 |
Description
Steps to reproduce
What steps can reproduce the defect?
My Azure build pipeline has the Visual Studio Test Platform Installer task and was always pulling the newest version.
The build started failing a little bit after 17.7.0 got updated. When trying to run the latest installer in the test assemblies task.
After changing the version to be specifically 17.6.3 it worked.
Expected behavior
Not to fail during the build.
Actual behavior
Failed to create a TestPlatformVersion object
The text was updated successfully, but these errors were encountered: