Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
08afdb88
Commit
08afdb88
authored
Sep 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
19515cd4
1cb0fa18
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
53 deletions
+23
-53
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+22
-25
lib/gitlab/metrics/samplers/ruby_sampler.rb
lib/gitlab/metrics/samplers/ruby_sampler.rb
+1
-1
lib/system_check/incoming_email/foreman_configured_check.rb
lib/system_check/incoming_email/foreman_configured_check.rb
+0
-25
lib/system_check/incoming_email_check.rb
lib/system_check/incoming_email_check.rb
+0
-2
No files found.
doc/ci/yaml/README.md
View file @
08afdb88
...
...
@@ -1801,7 +1801,8 @@ and bring back the old behavior.
### `needs`
> Introduced in GitLab 12.2.
> - Introduced in GitLab 12.2.
> - In GitLab 12.3, maximum number of jobs in `needs` array raised from five to 50.
The
`needs:`
keyword enables executing jobs out-of-order, allowing you to implement
a
[
directed acyclic graph
](
../directed_acyclic_graph/index.md
)
in your
`.gitlab-ci.yml`
.
...
...
@@ -1852,30 +1853,26 @@ This example creates three paths of execution:
#### Requirements and limitations
1.
If
`needs:`
is set to point to a job that is not instantiated
because of
`only/except`
rules or otherwise does not exist, the
job will fail.
1.
Note that on day one of the launch, we are temporarily limiting the
maximum number of jobs that a single job can need in the
`needs:`
array. Track
our
[
infrastructure issue
](
https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/7541
)
for details on the current limit.
1.
If you use
`dependencies:`
with
`needs:`
, it's important that you
do not mark a job as having a dependency on something that won't
have been run at the time it needs it. It's better to use both
keywords in this case so that GitLab handles the ordering appropriately.
1.
It is impossible for now to have
`needs: []`
(empty needs),
the job always needs to depend on something, unless this is the job
in the first stage (see
[
gitlab-ce#65504
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/65504
)
).
1.
If
`needs:`
refers to a job that is marked as
`parallel:`
.
the current job will depend on all parallel jobs created.
1.
`needs:`
is similar to
`dependencies:`
in that it needs to use jobs from
prior stages, meaning it is impossible to create circular
dependencies or depend on jobs in the current stage (see
[
gitlab-ce#65505
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/65505
)
).
1.
Related to the above, stages must be explicitly defined for all jobs
that have the keyword
`needs:`
or are referred to by one.
1.
For self-managed users, the feature must be turned on using the
`ci_dag_support`
feature flag. The
`ci_dag_limit_needs`
option, if set, will limit the number of
jobs that a single job can need to
`50`
. If unset, the limit is
`5`
.
-
If
`needs:`
is set to point to a job that is not instantiated
because of
`only/except`
rules or otherwise does not exist, the
pipeline will be created with YAML error.
-
We are temporarily limiting the maximum number of jobs that a single job can
need in the
`needs:`
array:
-
For GitLab.com, the limit is five. For more information, see our
[
infrastructure issue
](
https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/7541
)
.
-
For self-managed instances, the limit is:
-
Five by default (
`ci_dag_limit_needs`
feature flag is enabled).
-
50 if the
`ci_dag_limit_needs`
feature flag is disabled.
-
It is impossible for now to have
`needs: []`
(empty needs),
the job always needs to depend on something, unless this is the job
in the first stage (see
[
gitlab-ce#65504
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/65504
)
).
-
If
`needs:`
refers to a job that is marked as
`parallel:`
.
the current job will depend on all parallel jobs created.
-
`needs:`
is similar to
`dependencies:`
in that it needs to use jobs from
prior stages, meaning it is impossible to create circular
dependencies or depend on jobs in the current stage (see
[
gitlab-ce#65505
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/65505
)
).
-
Related to the above, stages must be explicitly defined for all jobs
that have the keyword
`needs:`
or are referred to by one.
### `coverage`
...
...
lib/gitlab/metrics/samplers/ruby_sampler.rb
View file @
08afdb88
...
...
@@ -6,7 +6,7 @@ module Gitlab
module
Metrics
module
Samplers
class
RubySampler
<
BaseSampler
GC_REPORT_BUCKETS
=
[
0.00
1
,
0.002
,
0.005
,
0.01
,
0.05
,
0.1
,
0.5
].
freeze
GC_REPORT_BUCKETS
=
[
0.00
5
,
0.01
,
0.02
,
0.04
,
0.07
,
0.1
,
0.5
].
freeze
def
initialize
(
interval
)
GC
::
Profiler
.
clear
...
...
lib/system_check/incoming_email/foreman_configured_check.rb
deleted
100644 → 0
View file @
19515cd4
# frozen_string_literal: true
module
SystemCheck
module
IncomingEmail
class
ForemanConfiguredCheck
<
SystemCheck
::
BaseCheck
set_name
'Foreman configured correctly?'
def
check?
path
=
Rails
.
root
.
join
(
'Procfile'
)
File
.
exist?
(
path
)
&&
File
.
read
(
path
)
=~
/^mail_room:/
end
def
show_error
try_fixing_it
(
'Enable mail_room in your Procfile.'
)
for_more_information
(
'doc/administration/reply_by_email.md'
)
fix_and_rerun
end
end
end
end
lib/system_check/incoming_email_check.rb
View file @
08afdb88
...
...
@@ -14,8 +14,6 @@ module SystemCheck
if
Rails
.
env
.
production?
checks
<<
SystemCheck
::
IncomingEmail
::
InitdConfiguredCheck
checks
<<
SystemCheck
::
IncomingEmail
::
MailRoomRunningCheck
else
checks
<<
SystemCheck
::
IncomingEmail
::
ForemanConfiguredCheck
end
SystemCheck
.
run
(
'Reply by email'
,
checks
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment