Commit e8390f63 authored by Stan Hu's avatar Stan Hu

Merge branch 'ce-to-ee-2018-10-28' into 'master'

CE upstream - 2018-10-28 19:21 UTC

See merge request gitlab-org/gitlab-ee!8121
parents 472aa1e0 ae303175
......@@ -52,7 +52,8 @@ class CommitStatus < ActiveRecord::Base
runner_system_failure: 4,
missing_dependency_failure: 5,
runner_unsupported: 6,
stale_schedule: 7
stale_schedule: 7,
job_execution_timeout: 8
}.merge(EE_FAILURE_REASONS)
##
......
......@@ -8,7 +8,8 @@ class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
runner_system_failure: 'There has been a runner system failure, please try again',
missing_dependency_failure: 'There has been a missing dependency failure',
runner_unsupported: 'Your runner is outdated, please upgrade your runner',
stale_schedule: 'Delayed job could not be executed by some reason, please try again'
stale_schedule: 'Delayed job could not be executed by some reason, please try again',
job_execution_timeout: 'The script exceeded the maximum execution time set for the job'
}.freeze
private_constant :CALLOUT_FAILURE_MESSAGES
......
---
title: Add failure reason for execution timeout
merge_request: 22224
author:
type: changed
......@@ -11,7 +11,8 @@ module Gitlab
runner_system_failure: 'runner system failure',
missing_dependency_failure: 'missing dependency failure',
runner_unsupported: 'unsupported runner',
stale_schedule: 'stale schedule'
stale_schedule: 'stale schedule',
job_execution_timeout: 'job execution timeout'
}.freeze
private_constant :REASONS
......
......@@ -811,6 +811,15 @@ describe API::Runner, :clean_gitlab_redis_shared_state do
it { expect(job).to be_unknown_failure }
end
context 'when failure_reason is job_execution_timeout' do
before do
update_job(state: 'failed', failure_reason: 'job_execution_timeout')
job.reload
end
it { expect(job).to be_job_execution_timeout }
end
end
context 'when trace is given' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment