diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-21 06:12:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-21 06:12:30 +0300 |
commit | bfb5557b15d66fc1c22aeec5c345241946b103a3 (patch) | |
tree | 66ec8a0d6b648f52e5c63caa9bc5c8106de019d2 /doc | |
parent | 5e396cd53ef1686fbc02b446a6a44d8a69ce8755 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc')
-rw-r--r-- | doc/architecture/blueprints/runner_tokens/index.md | 12 | ||||
-rw-r--r-- | doc/ci/variables/index.md | 6 | ||||
-rw-r--r-- | doc/ci/yaml/index.md | 17 | ||||
-rw-r--r-- | doc/update/deprecations.md | 22 | ||||
-rw-r--r-- | doc/user/group/import/index.md | 6 |
5 files changed, 47 insertions, 16 deletions
diff --git a/doc/architecture/blueprints/runner_tokens/index.md b/doc/architecture/blueprints/runner_tokens/index.md index fefebf71f3a..7f59f8639f8 100644 --- a/doc/architecture/blueprints/runner_tokens/index.md +++ b/doc/architecture/blueprints/runner_tokens/index.md @@ -183,17 +183,14 @@ CREATE TABLE ci_runners ( ) ``` -A new `p_ci_runner_machine_builds` table joins the `ci_runner_machines` and `ci_builds` tables, to avoid -adding more pressure to those tables. +The `ci_builds_metadata` table shall reference `ci_runner_machines`. We might consider a more efficient way to store `contacted_at` than updating the existing record. ```sql -CREATE TABLE p_ci_runner_machine_builds ( - partition_id bigint DEFAULT 100 NOT NULL, - build_id bigint NOT NULL, +CREATE TABLE ci_builds_metadata ( + ... runner_machine_id bigint NOT NULL -) -PARTITION BY LIST (partition_id); +); CREATE TABLE ci_runner_machines ( id bigint NOT NULL, @@ -378,7 +375,6 @@ scope. | GitLab Rails app | `%15.9` | Use runner token + `system_id` JSON parameters in `POST /jobs/request` request in the [heartbeat request](https://gitlab.com/gitlab-org/gitlab/blob/c73c96a8ffd515295842d72a3635a8ae873d688c/lib/api/ci/helpers/runner.rb#L14-20) to update the `ci_runner_machines` cache/table. | | GitLab Rails app | `%15.9` | Enable runner creation workflow (`create_runner_workflow`) [with a flag](../../../administration/feature_flags.md) named `flag_name`. | | GitLab Rails app | `%15.9` | Implement `create_{instance|group|project}_runner` permissions. | -| GitLab Rails app | `%15.9` | Replace `ci_builds_metadata.runner_machine_id` with a new join table. | | GitLab Rails app | `%15.9` | Rename `ci_runner_machines.machine_xid` column to `system_xid` to be consistent with `system_id` passed in APIs. | | GitLab Rails app | `%15.10` | Drop `ci_runner_machines.machine_xid` column. | | GitLab Rails app | `%15.11` | Remove the ignore rule for `ci_runner_machines.machine_xid` column. | diff --git a/doc/ci/variables/index.md b/doc/ci/variables/index.md index ec5c6c240a6..9d134f0f2d4 100644 --- a/doc/ci/variables/index.md +++ b/doc/ci/variables/index.md @@ -19,6 +19,12 @@ or have them [prefilled in manual pipelines](../pipelines/index.md#prefill-varia Variable names are limited by the [shell the runner uses](https://docs.gitlab.com/runner/shells/index.html) to execute scripts. Each shell has its own set of reserved variable names. +To ensure consistent behavior, you should always put variable values in single or double quotes. +Variables are internally parsed by the [Psych YAML parser](https://docs.ruby-lang.org/en/master/Psych.html), +so quoted and unquoted variables might be parsed differently. For example, `VAR1: 012345` +is interpreted as an octal value, so the value becomes `5349`, but `VAR1: "012345"` is parsed +as a string with a value of `012345`. + > For more information about advanced use of GitLab CI/CD: > > - <i class="fa fa-youtube-play youtube" aria-hidden="true"></i> Get to productivity faster with these [7 advanced GitLab CI workflow hacks](https://about.gitlab.com/webcast/7cicd-hacks/) diff --git a/doc/ci/yaml/index.md b/doc/ci/yaml/index.md index 5d5a1f9e8fe..0d6cad4f86d 100644 --- a/doc/ci/yaml/index.md +++ b/doc/ci/yaml/index.md @@ -4365,18 +4365,19 @@ child3: ### `variables` -Use `variables` to define [CI/CD variables](../variables/index.md#define-a-cicd-variable-in-the-gitlab-ciyml-file), -which are configurable values that are passed to jobs. - -Variables are always available in `script`, `before_script`, and `after_script` commands. -You can also use variables as inputs in some job keywords. +Use `variables` to define [CI/CD variables](../variables/index.md#define-a-cicd-variable-in-the-gitlab-ciyml-file) for jobs. **Keyword type**: Global and job keyword. You can use it at the global level, and also at the job level. -If you define `variables` at the global level, each variable is copied to -every job configuration when the pipeline is created. If the job already has that -variable defined, the [job-level variable takes precedence](../variables/index.md#cicd-variable-precedence). +If you define `variables` as a [global keyword](#keywords), it behaves like default variables +for all jobs. Each variable is copied to every job configuration when the pipeline is created. +If the job already has that variable defined, the [job-level variable takes precedence](../variables/index.md#cicd-variable-precedence). + +Variables defined at the global-level cannot be used as inputs for other global keywords +like [`include`](includes.md#use-variables-with-include). These variables can only +be used at the job-level, in `script`, `before_script`, and `after_script` sections, +as well as inputs in some job keywords like [`rules`](../jobs/job_control.md#cicd-variable-expressions). **Possible inputs**: Variable name and value pairs: diff --git a/doc/update/deprecations.md b/doc/update/deprecations.md index 099dfe097d4..93fbc3615c1 100644 --- a/doc/update/deprecations.md +++ b/doc/update/deprecations.md @@ -278,6 +278,28 @@ To be prepared for this change, you should do the following before GitLab 16.0: <div class="deprecation removal-160 breaking-change"> +### Legacy Praefect configuration method + +Planned removal: GitLab <span class="removal-milestone">16.0</span> <span class="removal-date"></span> + +WARNING: +This is a [breaking change](https://docs.gitlab.com/ee/development/deprecation_guidelines/). +Review the details carefully before upgrading. + +Previously, Praefect configuration keys were scattered throughout the configuration file. Now, these are in a single configuration structure that matches +Praefect configuration so the previous configuration method is deprecated. + +The single configuration structure available from GitLab 15.9, though backwards compatibility is maintained. Once removed, Praefect must be configured using the single +configuration structure. You should update the configuration of Praefect at your earliest convenience. See +[GitLab 15.9 upgrade information](https://docs.gitlab.com/ee/update/#1590). + +This change brings Praefect configuration in Omnibus GitLab in line with the configuration structure of Praefect. Previously, the hierarchies and configuration keys +didn't match. The change improves consistency between Omnibus GitLab and source installs and enables us to provide better documentation and tooling for both. + +</div> + +<div class="deprecation removal-160 breaking-change"> + ### Legacy URLs replaced or removed Planned removal: GitLab <span class="removal-milestone">16.0</span> <span class="removal-date"></span> diff --git a/doc/user/group/import/index.md b/doc/user/group/import/index.md index d10f6526e96..6e284168c61 100644 --- a/doc/user/group/import/index.md +++ b/doc/user/group/import/index.md @@ -58,6 +58,12 @@ We invite you to leave your feedback about migrating by direct transfer in If you want to move groups instead of copying groups, you can [transfer groups](../manage.md#transfer-a-group) if the groups are in the same GitLab instance. Transferring groups is a faster and more complete option. +### Rate limit + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/386452) in GitLab 15.9. + +Each user can perform up to six migrations per minute. + ### Visibility rules After migration: |