JetBrains / meta-runner-power-pack

A set of Meta-runners for TeamCity
Apache License 2.0
257 stars 125 forks source link

Meta runner fails to start xunit.console.exe after the package version update #122

Open ghost opened 6 years ago

ghost commented 6 years ago

We use the xUnit + dotCover as one of the build steps in a TeamCity configuration. The step started failing consistently around 7/17/2018 on some of the branches with the following message: ##teamcity[buildStatus text='Cannot find path 'C:\BuildAgent\work\a089c236b45ffff1\xunit.runner.console.2.3.1\tools\net452\xunit.console.exe C:\BuildAgent\work\a089c236b45ffff1\xunit.runner.console.2.4.0\tools\net452\xunit.console.exe.config' because it does not exist.' status='FAILURE'] We use git and 'Automatically on server' checkout mode for the version control.

Upon further investigation, we discovered the following:

Is this a bug in the meta runner code? Or is it something wrong with the configuration we use? It seems like meta runner code should account for having multiple version of the xunit.runner.console package in the working folder and only use the most recent one. Or even better, the version of the xunit.runner.console package should be a configurable parameter.

codekaizen commented 6 years ago

The fix to #123 will partially fix this, but not if there are more than 1 xunit packages found, since the wrong xunit might be selected.