Skip to content

Commit

Permalink
Add latest changes from gitlab-org/gitlab@master
Browse files Browse the repository at this point in the history
  • Loading branch information
GitLab Bot committed Oct 2, 2020
1 parent 91ef4dc commit 251d3d2
Show file tree
Hide file tree
Showing 55 changed files with 225 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .gitlab/ci/docs.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ docs lint:
extends:
- .default-retry
- .docs:rules:docs-lint
image: "registry.gitlab.com/gitlab-org/gitlab-docs/lint:vale-2.3.4-markdownlint-0.23.2"
image: "registry.gitlab.com/gitlab-org/gitlab-docs/lint:vale-2.4.0-markdownlint-0.23.2"
stage: test
needs: []
script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
v-if="showTodoButton"
class="gl-py-4 gl-mb-4 gl-display-flex gl-justify-content-space-between gl-align-items-center gl-border-b-1 gl-border-b-solid gl-border-b-gray-100"
>
<span>{{ __('To-Do') }}</span>
<span>{{ __('To Do') }}</span>
<design-todo-button :design="design" @error="$emit('todoError', $event)" />
</div>
<h2 class="gl-font-weight-bold gl-mt-0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
},
computed: {
buttonLabel() {
return this.isTodo ? __('Mark as done') : __('Add a To-Do');
return this.isTodo ? __('Mark as done') : __('Add a To Do');
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion app/models/analytics/instance_statistics/measurement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Measurement < ApplicationRecord
scope :with_identifier, -> (identifier) { where(identifier: identifier) }

def self.measurement_identifier_values
if Feature.enabled?(:store_ci_pipeline_counts_by_status)
if Feature.enabled?(:store_ci_pipeline_counts_by_status, default_enabled: true)
identifiers.values
else
identifiers.values - EXPERIMENTAL_IDENTIFIERS.map { |identifier| identifiers[identifier] }
Expand Down
16 changes: 13 additions & 3 deletions app/models/ci/build_trace_chunk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ def live?
# no chunk with higher index in the database.
#
def final?
build.pending_state.present? &&
build.trace_chunks.maximum(:chunk_index).to_i == chunk_index
build.pending_state.present? && chunks_max_index == chunk_index
end

def <=>(other)
Expand All @@ -165,7 +164,14 @@ def unsafe_persist_data!(new_store = self.class.persistable_store)
current_size = current_data&.bytesize.to_i

unless current_size == CHUNK_SIZE || final?
raise FailedToPersistDataError, 'Data is not fulfilled in a bucket'
raise FailedToPersistDataError, <<~MSG
data is not fulfilled in a bucket
size: #{current_size}
state: #{build.pending_state.present?}
max: #{chunks_max_index}
index: #{chunk_index}
MSG
end

self.raw_data = nil
Expand Down Expand Up @@ -223,6 +229,10 @@ def current_store
self.class.get_store_class(data_store)
end

def chunks_max_index
build.trace_chunks.maximum(:chunk_index).to_i
end

def lock_params
["trace_write:#{build_id}:chunks:#{chunk_index}",
{ ttl: WRITE_LOCK_TTL,
Expand Down
1 change: 1 addition & 0 deletions app/serializers/test_case_entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class TestCaseEntity < Grape::Entity
expose :status
expose :name
expose :classname
expose :file
expose :execution_time
expose :system_output
expose :stack_trace
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/dashboard/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

= feature_entry(_('LDAP'),
enabled: Gitlab.config.ldap.enabled,
doc_href: help_page_path('administration/auth/ldap'))
doc_href: help_page_path('administration/auth/ldap/index.md'))

= feature_entry(_('Gravatar'),
href: general_admin_application_settings_path(anchor: 'js-account-settings'),
Expand Down
17 changes: 10 additions & 7 deletions app/views/clusters/clusters/_advanced_settings.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@
= link_to _('More information'), help_page_path('user/clusters/management_project.md'), target: '_blank'
= field.submit _('Save changes'), class: 'btn btn-success'

- if @cluster.managed?
.sub-section.form-group
%h4
= s_('ClusterIntegration|Clear cluster cache')
%p
= s_("ClusterIntegration|Clear the local cache of namespace and service accounts. This is necessary if your integration has become out of sync. The cache is repopulated during the next CI job that requires namespace and service accounts.")
= link_to(s_('ClusterIntegration|Clear cluster cache'), clusterable.clear_cluster_cache_path(@cluster), method: :delete, class: 'btn btn-primary')
.sub-section.form-group
%h4
= s_('ClusterIntegration|Clear cluster cache')
%p
= s_("ClusterIntegration|Clear the local cache of namespace and service accounts.")
- if @cluster.managed?
= s_("ClusterIntegration|This is necessary if your integration has become out of sync. The cache is repopulated during the next CI job that requires namespace and service accounts.")
- else
= s_("ClusterIntegration|This is necessary to clear existing environment-namespace associations from clusters previously managed by GitLab.")
= link_to(s_('ClusterIntegration|Clear cluster cache'), clusterable.clear_cluster_cache_path(@cluster), method: :delete, class: 'btn btn-primary')

.sub-section.form-group
%h4.text-danger
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/environments/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
%p.blank-state-text
= html_escape(_("Define environments in the deploy stage(s) in %{code_open}.gitlab-ci.yml%{code_close} to track deployments here.")) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
.text-center
= link_to _("Read more"), help_page_path("ci/environments"), class: "btn btn-success"
= link_to _("Read more"), help_page_path("ci/environments/index.md"), class: "btn btn-success"
- else
.table-holder.gl-overflow-visible
.ci-table.environments{ role: 'grid' }
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/issues/_new_branch.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

%li.droplab-item-ignore.gl-ml-3.gl-mr-3.gl-mt-5
- if can_create_confidential_merge_request?
#js-forked-project{ data: { namespace_path: @project.namespace.full_path, project_path: @project.full_path, new_fork_path: new_project_fork_path(@project), help_page_path: help_page_path('user/project/merge_requests') } }
#js-forked-project{ data: { namespace_path: @project.namespace.full_path, project_path: @project.full_path, new_fork_path: new_project_fork_path(@project), help_page_path: help_page_path('user/project/merge_requests/index.md') } }
.form-group
%label{ for: 'new-branch-name' }
= _('Branch name')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
= _('Expand')
%p
= _('Display alerts from all your monitoring tools directly within GitLab.')
= link_to _('More information'), help_page_path('user/project/operations/alert_management'), target: '_blank', rel: 'noopener noreferrer'
= link_to _('More information'), help_page_path('operations/incident_management/index.md'), target: '_blank', rel: 'noopener noreferrer'
.settings-content
.js-alerts-settings{ data: alerts_settings_data }
5 changes: 5 additions & 0 deletions changelogs/unreleased/233430-design-repo-in-backup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Include Design Management git repositories in GitLab Backup
merge_request: 43947
author:
type: fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Store pipeline counts by status for instance statistics
merge_request: 43857
author:
type: added
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Add API Fuzzing plan limits db column
merge_request: 43934
author:
type: added
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Always show the "Clear cluster cache" button among the advanced Kubernetes cluster configuration options
merge_request: 43619
author:
type: changed
5 changes: 5 additions & 0 deletions changelogs/unreleased/expose-junit-spec-file-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Expose file path from XML Test Report artifact
merge_request: 43594
author:
type: changed
6 changes: 3 additions & 3 deletions config/feature_flags/development/multiline_comments.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: multiline_comments
introduced_by_url:
rollout_issue_url:
group:
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/issues/211255
rollout_issue_url:
group: group::source code
type: development
default_enabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/43027
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/254721
type: development
group: group::analytics
default_enabled: false
default_enabled: true
3 changes: 3 additions & 0 deletions config/initializers/1_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@
Settings.cron_jobs['member_invitation_reminder_emails_worker']['job_class'] = 'MemberInvitationReminderEmailsWorker'

Gitlab.ee do
Settings.cron_jobs['active_user_count_threshold_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['active_user_count_threshold_worker']['cron'] ||= '0 12 * * *'
Settings.cron_jobs['active_user_count_threshold_worker']['job_class'] = 'ActiveUserCountThresholdWorker'
Settings.cron_jobs['adjourned_group_deletion_worker'] ||= Settingslogic.new({})
Settings.cron_jobs['adjourned_group_deletion_worker']['cron'] ||= '0 3 * * *'
Settings.cron_jobs['adjourned_group_deletion_worker']['job_class'] = 'AdjournedGroupDeletionWorker'
Expand Down
9 changes: 9 additions & 0 deletions db/migrate/20200930132319_add_api_fuzzing_to_plan_limits.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class AddApiFuzzingToPlanLimits < ActiveRecord::Migration[6.0]
DOWNTIME = false

def change
add_column :plan_limits, "ci_max_artifact_size_api_fuzzing", :integer, default: 0, null: false
end
end
1 change: 1 addition & 0 deletions db/schema_migrations/20200930132319
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ded640c70d5e569f0f26729c96d2dc27c528bcb045e28f073ed8fce9f918d95
3 changes: 2 additions & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14389,7 +14389,8 @@ CREATE TABLE plan_limits (
generic_packages_max_file_size bigint DEFAULT '5368709120'::bigint NOT NULL,
project_feature_flags integer DEFAULT 200 NOT NULL,
golang_max_file_size bigint DEFAULT 104857600 NOT NULL,
debian_max_file_size bigint DEFAULT '3221225472'::bigint NOT NULL
debian_max_file_size bigint DEFAULT '3221225472'::bigint NOT NULL,
ci_max_artifact_size_api_fuzzing integer DEFAULT 0 NOT NULL
);

CREATE SEQUENCE plan_limits_id_seq
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The following documentation relates to the DevOps **Manage** stage:
| Manage topics | Description |
|:--------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Authentication and<br/>Authorization](administration/auth/README.md) **(CORE ONLY)** | Supported authentication and authorization providers. |
| [GitLab Value Stream Analytics](user/project/cycle_analytics.md) | Measure the time it takes to go from an [idea to production](https://about.gitlab.com/blog/2016/08/05/continuous-integration-delivery-and-deployment-with-gitlab/#from-idea-to-production-with-gitlab) for each project you have. |
| [GitLab Value Stream Analytics](user/analytics/value_stream_analytics.md) | Measure the time it takes to go from an [idea to production](https://about.gitlab.com/blog/2016/08/05/continuous-integration-delivery-and-deployment-with-gitlab/#from-idea-to-production-with-gitlab) for each project you have. |
| [Instance-level Analytics](user/admin_area/analytics/index.md) | Discover statistics on how many GitLab features you use and user activity. |

<div align="right">
Expand Down
2 changes: 1 addition & 1 deletion doc/administration/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ providers:
- [Azure](../../integration/azure.md)
- [Bitbucket Cloud](../../integration/bitbucket.md)
- [CAS](../../integration/cas.md)
- [Crowd](../../integration/crowd.md)
- [Crowd](crowd.md)
- [Facebook](../../integration/facebook.md)
- [GitHub](../../integration/github.md)
- [GitLab.com](../../integration/gitlab.md)
Expand Down
2 changes: 1 addition & 1 deletion doc/administration/geo/replication/multiple_servers.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Configure the following services, again using the non-Geo multi-node
documentation:

- [Configuring Redis for GitLab](../../redis/replication_and_failover.md#example-configuration-for-the-gitlab-application) for multiple nodes.
- [Gitaly](../../high_availability/gitaly.md), which will store data that is
- [Gitaly](../../gitaly/index.md), which will store data that is
synchronized from the **primary** node.

NOTE: **Note:**
Expand Down
4 changes: 2 additions & 2 deletions doc/administration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Learn how to install, configure, update, and maintain your GitLab instance.
- [Environment variables](environment_variables.md): Supported environment
variables that can be used to override their default values to configure
GitLab.
- [Plugins](plugins.md): With custom plugins, GitLab administrators can introduce custom integrations without modifying GitLab's source code.
- [Plugins](file_hooks.md): With custom plugins, GitLab administrators can introduce custom integrations without modifying GitLab's source code.
- [Enforcing Terms of Service](../user/admin_area/settings/terms.md)
- [Third party offers](../user/admin_area/settings/third_party_offers.md)
- [Compliance](compliance.md): A collection of features from across the application that you may configure to help ensure that your GitLab instance and DevOps workflow meet compliance standards.
Expand Down Expand Up @@ -115,7 +115,7 @@ Learn how to install, configure, update, and maintain your GitLab instance.
- [Kerberos authentication](../integration/kerberos.md) **(STARTER ONLY)**
- See also other [authentication](../topics/authentication/index.md#gitlab-administrators) topics (for example, enforcing 2FA).
- [Email users](../tools/email.md): Email GitLab users from within GitLab. **(STARTER ONLY)**
- [User Cohorts](../user/admin_area/user_cohorts.md): Display the monthly cohorts of new users and their activities over time.
- [User Cohorts](../user/admin_area/analytics/user_cohorts.md): Display the monthly cohorts of new users and their activities over time.
- [Audit logs and events](audit_events.md): View the changes made within the GitLab server for:
- Groups and projects. **(STARTER)**
- Instances. **(PREMIUM ONLY)**
Expand Down
2 changes: 1 addition & 1 deletion doc/administration/packages/dependency_proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
GitLab can be utilized as a dependency proxy for a variety of common package managers.

This is the administration documentation. If you want to learn how to use the
dependency proxies, see the [user guide](../../user/group/dependency_proxy/index.md).
dependency proxies, see the [user guide](../../user/packages/dependency_proxy/index.md).

## Enabling the Dependency Proxy feature

Expand Down
4 changes: 2 additions & 2 deletions doc/administration/reference_architectures/10k_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ On each node perform the following:

1. Specify the necessary NFS mounts in `/etc/fstab`.
The exact contents of `/etc/fstab` will depend on how you chose
to configure your NFS server. See the [NFS documentation](../high_availability/nfs.md)
to configure your NFS server. See the [NFS documentation](../nfs.md)
for examples and the various options.

1. Create the shared directories. These may be different depending on your NFS
Expand Down Expand Up @@ -2064,7 +2064,7 @@ advanced code search across your entire GitLab instance.
are recommended over NFS wherever possible for improved performance. If you intend
to use GitLab Pages, this currently [requires NFS](troubleshooting.md#gitlab-pages-requires-nfs).

See how to [configure NFS](../high_availability/nfs.md).
See how to [configure NFS](../nfs.md).

<div align="right">
<a type="button" class="btn btn-default" href="#setup-components">
Expand Down
2 changes: 1 addition & 1 deletion doc/administration/reference_architectures/1k_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ For this default reference architecture, to install GitLab use the standard
NOTE: **Note:**
You can also optionally configure GitLab to use an
[external PostgreSQL service](../postgresql/external.md) or an
[external object storage service](../high_availability/object_storage.md) for
[external object storage service](../object_storage.md) for
added performance and reliability at a reduced complexity cost.

## Configure Advanced Search **(STARTER ONLY)**
Expand Down
4 changes: 2 additions & 2 deletions doc/administration/reference_architectures/25k_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ On each node perform the following:

1. Specify the necessary NFS mounts in `/etc/fstab`.
The exact contents of `/etc/fstab` will depend on how you chose
to configure your NFS server. See the [NFS documentation](../high_availability/nfs.md)
to configure your NFS server. See the [NFS documentation](../nfs.md)
for examples and the various options.

1. Create the shared directories. These may be different depending on your NFS
Expand Down Expand Up @@ -2064,7 +2064,7 @@ advanced code search across your entire GitLab instance.
are recommended over NFS wherever possible for improved performance. If you intend
to use GitLab Pages, this currently [requires NFS](troubleshooting.md#gitlab-pages-requires-nfs).

See how to [configure NFS](../high_availability/nfs.md).
See how to [configure NFS](../nfs.md).

<div align="right">
<a type="button" class="btn btn-default" href="#setup-components">
Expand Down
4 changes: 2 additions & 2 deletions doc/administration/reference_architectures/50k_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ On each node perform the following:

1. Specify the necessary NFS mounts in `/etc/fstab`.
The exact contents of `/etc/fstab` will depend on how you chose
to configure your NFS server. See the [NFS documentation](../high_availability/nfs.md)
to configure your NFS server. See the [NFS documentation](../nfs.md)
for examples and the various options.

1. Create the shared directories. These may be different depending on your NFS
Expand Down Expand Up @@ -2064,7 +2064,7 @@ advanced code search across your entire GitLab instance.
are recommended over NFS wherever possible for improved performance. If you intend
to use GitLab Pages, this currently [requires NFS](troubleshooting.md#gitlab-pages-requires-nfs).

See how to [configure NFS](../high_availability/nfs.md).
See how to [configure NFS](../nfs.md).

<div align="right">
<a type="button" class="btn btn-default" href="#setup-components">
Expand Down
2 changes: 1 addition & 1 deletion doc/administration/troubleshooting/ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@ Some of these errors come from the Excon Ruby gem, and could be generated in cir
where GitLab is configured to initiate an HTTPS session to a remote server
that is serving just HTTP.

One scenario is that you're using [object storage](../high_availability/object_storage.md)
One scenario is that you're using [object storage](../object_storage.md)
which is not served under HTTPS. GitLab is misconfigured and attempts a TLS handshake,
but the object storage will respond with plain HTTP.
2 changes: 1 addition & 1 deletion doc/ci/environments/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Clicking the play button in any view triggers the `deploy_prod` job. The deploym
new environment named `production`.

If your environment's name is `production` (all lowercase), it's recorded in
[Value Stream Analytics](../../user/project/cycle_analytics.md).
[Value Stream Analytics](../../user/analytics/value_stream_analytics.md).

### Configuring dynamic environments

Expand Down
4 changes: 2 additions & 2 deletions doc/ci/yaml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1544,8 +1544,8 @@ docker build:
# - when: never would be redundant here, this is implied any time rules are listed.
```

Keywords such as `branches` or `refs` that are currently available for
`only`/`except` are not yet available in `rules` as they are being individually
Keywords such as `branches` or `refs` that are available for
`only`/`except` are not available in `rules`. They are being individually
considered for their usage and behavior in this context. Future keyword improvements
are being discussed in our [epic for improving `rules`](https://gitlab.com/groups/gitlab-org/-/epics/2783),
where anyone can add suggestions or requests.
Expand Down
4 changes: 2 additions & 2 deletions doc/customization/welcome_message.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
redirect_to: 'branded_login_page.md'
redirect_to: '../user/admin_area/appearance.md#sign-in--sign-up-pages'
---

This document was moved to [another location](branded_login_page.md).
This document was moved to [another location](../user/admin_area/appearance.md#sign-in--sign-up-pages).
2 changes: 1 addition & 1 deletion doc/user/analytics/productivity_analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Track development velocity with Productivity Analytics.
For many companies, the development cycle is a black box and getting an estimate of how
long, on average, it takes to deliver features is an enormous endeavor.

While [Value Stream Analytics](../project/cycle_analytics.md) focuses on the entire
While [Value Stream Analytics](../analytics/value_stream_analytics.md) focuses on the entire
Software Development Life Cycle (SDLC) process, Productivity Analytics provides a way for Engineering Management to drill down in a systematic way to uncover patterns and causes for success or failure at an individual, project, or group level.

Productivity can slow down for many reasons ranging from degrading code base to quickly growing teams. In order to investigate, department or team leaders can start by visualizing the time it takes for merge requests to be merged.
Expand Down
Loading

0 comments on commit 251d3d2

Please sign in to comment.