即使每 1-2 分钟记录一次所有作业的输出,Travis Build 也会在 49 分钟后失败

Travis Build fails after 49 min even when logging output for all jobs every 1-2 min

我有一个 Ionic 项目的构建及其使用 SauceLabs 的 E2E 测试。构建在 49 分 17 秒(50 分钟)后超时。我所有的工作都 运行 很好,并且至少每 1-2 分钟频繁记录一次输出。超时持续发生在 50 分钟。

我的构建符合上述所有要求 here 不会超时。此外,如文档中所述,构建没有超时。所以构建不应该像在这种情况下发生的那样超时。此问题有任何解决方案吗?

以下是一些日志:

您的构建以这条消息结束:

The job exceeded the maximum time limit for jobs, and has been terminated.

这是预期的行为。存在 50 分钟的限制 here and here:

Build Timeouts #

It is very common for test suites or build scripts to hang. Travis CI has specific time limits for each job, and will stop the build and add an error message to the build log in the following situations:

  • A job produces no log output for 10 minutes
  • A job on travis-ci.org takes longer than 50 minutes
  • A job running on OS X infrastructure takes longer than 50 minutes - (applies to travis-ci.org or travis-ci.com)
  • A job on Linux infrastructure on travis-ci.com takes longer than 120 minutes
  • Some common reasons why builds might hang:

Waiting for keyboard input or another kind of human interaction Concurrency issues (deadlocks, livelocks and so on) Installation of native extensions that take very long time to compile There is no timeout for a build; a build will run as long as all the jobs do as long as each job does not timeout.

您的构建之前没有完成,因为您的构建中存在特定cific 问题。

我会问另一个关于您的代码和语言的问题node_js但不在此限制内。


我开发本机应用程序,所以我无法帮助解决这个问题,但我发现了这个 ticket:

他们似乎将 Node.js 更新为 6.X,使用 Travis-ci 对其进行了测试,但失败了,目前他们不使用 Travis-ci,所以我会在他们的论坛中直接向 MoodleHQ 提问。

jleyva Juan Leyva added a comment - 03/Nov/16 6:05 PM Dani, can you enable in your Travis account your moodlemobile2 repository so we can see if Travis is working with the new dependencies? I already changed the tracker fields so Travis is aware of the branch (but it requires first you to enable you forked moodlemobile2 repo)

jleyva Juan Leyva added a comment - 03/Nov/16 7:31 PM Builds are failing: https://travis-ci.org/dpalou/moodlemobile2/builds/172896611 Protractor or Jasmine or whatever is not working with this dependency set


您还可以使用以下方式检查 related issues and compare, this configuration 作品:

node_modules/.bin/protractor e2e-tests/protractor.conf.js --directConnect

in protractor-conf.js change chromeOnly to directConnect