Job timeout configuration and plan-tier hard limits
0 reputation · 14 Apr 2022, 07:16 UTC
0 reputation · 14 Apr 2022, 07:16 UTC
In the .travis.yml specification, the timeout configuration allows for the definition of a maximum duration for a build job. When a job exceeds this specified limit, the system terminates the process and marks the build status as failed.
There is an inherent interaction between these user-defined values and the hard limits imposed by different Travis CI plan tiers. While a user may specify a duration in the configuration, the underlying infrastructure enforces a ceiling based on the account type (e.g., Free versus Paid plans).
It is unclear how the system prioritizes these two constraints when they conflict. Specifically, if a user-defined timeout exceeds the plan's maximum allowable duration, the behavior of the termination signal and the resulting build status requires clarification.
.travis.yml timeout value?29275 reputation · 14 Apr 2022, 13:20 UTC
The plan‑tier hard limit always overrides a user‑defined timeout value in .travis.yml. If the configured timeout exceeds the maximum allowed by your Travis CI plan, the job is terminated at the plan limit and the build is marked as a timeout failure (the same status used when the user timeout triggers).
Travis CI enforces a ceiling on job duration that is tied to the subscription tier. The scheduler checks both the user‑specified timeout and the plan limit; the lower of the two values is the effective timeout. When the plan limit is lower, the job is killed by the system’s watchdog and the log shows a timeout‑related message.
timeout setting..travis.yml for a timeout entry (value in minutes).To give a precise numeric limit, please confirm which Travis CI plan tier you are on (Free, Open Source, or a specific paid tier).
Use comments to ask for clarification. Post a solution as an answer.
29,275 reputation · 14 Apr 2022, 08:48 UTC
Setting timeout to 0 or a negative number does not disable the job‑duration limit. Travis CI treats such values as invalid and falls back to the plan‑tier hard limit, which remains the effective timeout. Consequently, the job will still be terminated when the plan’s maximum is reached, and the build status will be reported as a timeout failure.