Skip to content

Commit 5eba9c0

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 7b2f941 commit 5eba9c0

File tree

9 files changed

+54
-8
lines changed

9 files changed

+54
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- name: "Converting an instance (shared) runner to a project (specific) runner is deprecated"
2+
announcement_milestone: "14.5" # The milestone when this feature was first announced as deprecated.
3+
announcement_date: "2021-11-22"
4+
removal_milestone: "15.0" # the milestone when this feature is planned to be removed
5+
body: | # Do not modify this line, instead modify the lines below.
6+
In GitLab 15.0, we will remove the feature that enables you to convert an instance (shared) runner to a project (specific) runner. Users who need to add a runner to only a particular project can register a runner to the project directly.
7+
8+
stage: Verify
9+
tiers: [Core, Premium, Ultimate]
10+
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/345347
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- name: "Package pipelines in API payload is paginated" # The name of the feature to be deprecated
2+
announcement_milestone: "14.5" # The milestone when this feature was first announced as deprecated.
3+
announcement_date: "2021-11-22" # The date of the milestone release when this feature was first announced as deprecated. This should almost always be the 22nd of a month (YYYY-MM-22), unless you did an out of band blog post.
4+
removal_milestone: "15.0" # The milestone when this feature is planned to be removed
5+
body: | # Do not modify this line, instead modify the lines below.
6+
A request to the API for `/api/v4/projects/:id/packages` returns a paginated result of packages. Each package lists all of its pipelines in this response. This is a performance concern, as it's possible for a package to have hundreds or thousands of associated pipelines.
7+
8+
In milestone 15.0, we will remove the `pipelines` attribute from the API response.
9+
stage: package
10+
tiers: Free
11+
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/289956

doc/api/graphql/reference/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -8704,6 +8704,7 @@ Represents the total number of issues and their weights for a particular day.
87048704
| <a id="ciminutesnamespacemonthlyusageminutes"></a>`minutes` | [`Int`](#int) | Total number of minutes used by all projects in the namespace. |
87058705
| <a id="ciminutesnamespacemonthlyusagemonth"></a>`month` | [`String`](#string) | Month related to the usage data. |
87068706
| <a id="ciminutesnamespacemonthlyusageprojects"></a>`projects` | [`CiMinutesProjectMonthlyUsageConnection`](#ciminutesprojectmonthlyusageconnection) | CI minutes usage data for projects in the namespace. (see [Connections](#connections)) |
8707+
| <a id="ciminutesnamespacemonthlyusagesharedrunnersduration"></a>`sharedRunnersDuration` | [`Int`](#int) | Total numbers of minutes used by the shared runners in the namespace. |
87078708

87088709
### `CiMinutesProjectMonthlyUsage`
87098710

doc/ci/review_apps/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
stage: Release
3-
group: Release
2+
stage: Verify
3+
group: Testing
44
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
55
type: reference
66
---

doc/update/deprecations.md

+14
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ dramatically slow down GitLab instances. For this reason, they are being removed
5858

5959
Announced: 2021-09-22
6060

61+
### Converting an instance (shared) runner to a project (specific) runner is deprecated
62+
63+
In GitLab 15.0, we will remove the feature that enables you to convert an instance (shared) runner to a project (specific) runner. Users who need to add a runner to only a particular project can register a runner to the project directly.
64+
65+
Announced: 2021-11-22
66+
6167
### Deprecate `Versions` on base `PackageType`
6268

6369
As part of the work to create a [Package Registry GraphQL API](https://gitlab.com/groups/gitlab-org/-/epics/6318), the Package group deprecated the `Version` type for the basic `PackageType` type and moved it to [`PackageDetailsType`](https://docs.gitlab.com/ee/api/graphql/reference/index.html#packagedetailstype).
@@ -102,6 +108,14 @@ Note that we are not deprecating the Kerberos SPNEGO integration, only the old p
102108

103109
Announced: 2021-09-22
104110

111+
### Package pipelines in API payload is paginated
112+
113+
A request to the API for `/api/v4/projects/:id/packages` returns a paginated result of packages. Each package lists all of its pipelines in this response. This is a performance concern, as it's possible for a package to have hundreds or thousands of associated pipelines.
114+
115+
In milestone 15.0, we will remove the `pipelines` attribute from the API response.
116+
117+
Announced: 2021-11-22
118+
105119
### REST API Runner will not contain `paused`
106120

107121
Runner REST API will not return `paused` as a status in GitLab 15.0.

doc/user/admin_area/settings/terms.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ To enforce acceptance of a Terms of Service and Privacy Policy:
2828
For each update to the terms, a new version is stored. When a user accepts or declines the terms,
2929
GitLab records which version they accepted or declined.
3030

31+
Existing users must accept the terms on their next GitLab interaction.
32+
If a signed-in user declines the terms, they are signed out.
33+
3134
When enabled, it adds a mandatory checkbox to the sign up page for new users:
3235

3336
![Sign up form](img/sign_up_terms.png)
3437

35-
Existing users must accept the terms on their next GitLab interaction.
36-
If a logged-in user declines the terms, they are signed out.
37-
3838
<!-- ## Troubleshooting
3939
4040
Include any troubleshooting steps that you can foresee. If you know beforehand what issues

doc/user/application_security/dast/browser_based.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The browser-based crawler can be configured using CI/CD variables.
5454
| `DAST_BROWSER_SCAN` | boolean | `true` | Configures DAST to use the browser-based crawler engine. |
5555
| `DAST_BROWSER_ALLOWED_HOSTS` | List of strings | `site.com,another.com` | Hostnames included in this variable are considered in scope when crawled. By default the `DAST_WEBSITE` hostname is included in the allowed hosts list. |
5656
| `DAST_BROWSER_EXCLUDED_HOSTS` | List of strings | `site.com,another.com` | Hostnames included in this variable are considered excluded and connections are forcibly dropped. |
57+
| `DAST_BROWSER_EXCLUDED_ELEMENTS` | selector | `a[href='2.html'],css:.no-follow` | Comma-separated list of selectors that are ignored when scanning. |
5758
| `DAST_BROWSER_IGNORED_HOSTS` | List of strings | `site.com,another.com` | Hostnames included in this variable are accessed but not reported against. |
5859
| `DAST_BROWSER_MAX_ACTIONS` | number | `10000` | The maximum number of actions that the crawler performs. For example, clicking a link, or filling a form. |
5960
| `DAST_BROWSER_MAX_DEPTH` | number | `10` | The maximum number of chained actions that the crawler takes. For example, `Click -> Form Fill -> Click` is a depth of three. |

jest.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const baseConfig = require('./jest.config.base');
44

55
// TODO: Remove existsSync once jh has added jest.config.js
66
if (IS_JH && fs.existsSync('./jh/jest.config.js')) {
7-
// eslint-disable-next-line global-require, import/no-unresolved
7+
// We can't be explicit with eslint-disable rules because in JH it'll pass import/no-unresolved
8+
// eslint-disable-next-line
89
module.exports = require('./jh/jest.config');
910
} else {
1011
module.exports = {

lib/backup/manager.rb

+9-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ def remove_old
9999
# - 1495527122_gitlab_backup.tar
100100
# - 1495527068_2017_05_23_gitlab_backup.tar
101101
# - 1495527097_2017_05_23_9.3.0-pre_gitlab_backup.tar
102-
next unless file =~ /^(\d{10})(?:_\d{4}_\d{2}_\d{2}(_\d+\.\d+\.\d+((-|\.)(pre|rc\d))?(-ee)?)?)?_gitlab_backup\.tar$/
102+
matched = backup_file?(file)
103+
next unless matched
103104

104-
timestamp = Regexp.last_match(1).to_i
105+
timestamp = matched[1].to_i
105106

106107
if Time.at(timestamp) < (Time.now - keep_time)
107108
begin
@@ -192,6 +193,10 @@ def skipped?(item)
192193

193194
private
194195

196+
def backup_file?(file)
197+
file.match(/^(\d{10})(?:_\d{4}_\d{2}_\d{2}(_\d+\.\d+\.\d+((-|\.)(pre|rc\d))?(-ee)?)?)?_gitlab_backup\.tar$/)
198+
end
199+
195200
def non_tarred_backup?
196201
File.exist?(File.join(backup_path, 'backup_information.yml'))
197202
end
@@ -314,3 +319,5 @@ def google_provider?
314319
end
315320
end
316321
end
322+
323+
Backup::Manager.prepend_mod

0 commit comments

Comments
 (0)