从 TeamCity 作为单个命令运行时 StatLight 挂起

发布于 2024-12-07 03:08:37 字数 1307 浏览 0 评论 0原文

我在 Windows Server 上运行 TeamCity 6.5,并在同一台服务器上运行几个构建代理(全部作为服务以系统用户身份运行)。我之前一直在 Jenkins 下构建 SilverLight 项目并运行 StatLight(v 1.4.4147)测试,没有出现任何问题。在 Jenkins 上,我在自定义脚本中调用了 StatLight 测试,如下所示:

StatLight.exe -x="Tests.xap"
StatLight.exe -x="MoreTests.xap"
StatLight.exe -x="EvenMoreTests.xap"

... 等等,但是当我将构建作业迁移到 TeamCity 时,我还将它们更改为单个命令行步骤,如下所示:

StatLight.exe --teamcity -x="Tests.xap" -x="MoreTests.xap" -x="EvenMoreTests.xap"

这大约适用于 50%时间,但是当它失败时,构建日志中没有输出告诉我原因 - 我只是得到:

[11:41:18]: [MyProject\bin\Release\MoreTests.xap] Tests.ExtensionsTests.WatchObservableCollection
[11:41:18]: [MyProject\bin\Release\MoreTests.xap] Tests.SubscribingModelBaseTests.DisposeIsCalled
[11:41:18]: [MyProject\bin\Release\MoreTests.xap] --- Completed Test Run at: 28/09/2011 11:41:18. Total Run Time: 00:00:11.8125000
[11:41:19]: [MyProject\bin\Release\MoreTests.xap] Test run results: Total 6, Successful 6, Failed 0, 
[11:41:19]: [Step 5/6] MyProject\bin\Release\EvenMoreTests.xap (9m:42s)

...然后就没有更多了。最后一行中报告的时间一直在增加,直到我终止构建作业。将 --debug 开关添加到 StatLight 也不会改善上述输出。

现在,我已经将 TeamCity 构建步骤切换为单独调用每个测试,就像在 Jenkins 中一样,但这更多的是一种解决方法,而不是正确的解决方案。当然,我可能仍然会遇到上述问题——我还没有找到答案。

我想知道我可以采取哪些步骤来正确调试此问题,或者是否存在可能导致上述行为的已知问题?

I'm running TeamCity 6.5 on a Windows Server, with a couple of build agents on the same server (all running as the system user as services). I had been building SilverLight projects and running the StatLight (v 1.4.4147) tests previously under Jenkins with no problems. On Jenkins, I called the StatLight test in a custom script as follows:

StatLight.exe -x="Tests.xap"
StatLight.exe -x="MoreTests.xap"
StatLight.exe -x="EvenMoreTests.xap"

... etc., but when I migrated my build jobs to TeamCity, I also changed these into a single command line step as follows:

StatLight.exe --teamcity -x="Tests.xap" -x="MoreTests.xap" -x="EvenMoreTests.xap"

This works about 50% of the time, but when it fails, there's no output in the build log to tell me why - I just get:

[11:41:18]: [MyProject\bin\Release\MoreTests.xap] Tests.ExtensionsTests.WatchObservableCollection
[11:41:18]: [MyProject\bin\Release\MoreTests.xap] Tests.SubscribingModelBaseTests.DisposeIsCalled
[11:41:18]: [MyProject\bin\Release\MoreTests.xap] --- Completed Test Run at: 28/09/2011 11:41:18. Total Run Time: 00:00:11.8125000
[11:41:19]: [MyProject\bin\Release\MoreTests.xap] Test run results: Total 6, Successful 6, Failed 0, 
[11:41:19]: [Step 5/6] MyProject\bin\Release\EvenMoreTests.xap (9m:42s)

... and then nothing more. The time reported in that last line just goes up and up until I kill the the build job. Adding the --debug switch to StatLight doesn't improve the above output either.

Right now, I've switched the TeamCity build step to call each test individually as I was in Jenkins, but this is more of a workaround than a proper solution. And of course, I may still run into the above problem - I've yet to find out.

What I'd like to know is what steps I can take to debug this issue properly, or whether there are known issues that can cause the above behaviour?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

同展鸳鸯锦 2024-12-14 03:08:37

1.5 版本中修复了一个与 teamcity 有关的问题。 http://statlight.codeplex.com/workitem/13654

我不确定它是否会修复您的问题,但您介意升级、尝试并报告吗?

There was one issue fixed in the 1.5 version relating to teamcity. http://statlight.codeplex.com/workitem/13654

I'm not sure it will fix your issue, but would you mind upgrading, trying and reporting back?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文