Rate a release move of a component or a GitLab include low

What this changes

Two kinds of dependency bot merge request in gitlab-org/gitlab had no way to rate low under the MR Risk Labeler's rules. Both now can, when the change is one release number moved to a higher one and nothing else.

Change Area Before Now
A root *_VERSION file, such as GITLAB_ZOEKT_VERSION from 1.20.2 to 1.20.3 deps medium, as a pin no check reads low
A pinned include of a gitlab-org/ or gitlab-com/ project or component under .gitlab/, such as ref: 13.2.1 to ref: 13.2.2 tooling high, as an include from outside the repository low

A release is three numbers, with or without a leading v. A one or two part version follows the latest release that matches, so it does not count. A component counts whether its address starts gitlab.com/ or $CI_SERVER_FQDN/, which is how most of the pinned components in gitlab-org/gitlab are written.

Only instructions/278964/deps.md and instructions/278964/tooling.md change. The flow reads them from main at run time, so this applies on merge with no release tag.

Why

The switch of gitlab-org/gitlab to this flow (gitlab-org/gitlab#638236) is meant to keep what gitlab-bot approves today. Of the 30 dependency bot merge requests it approved there since 28 October, 25 were lockfile or manifest bumps, 1 was a root *_VERSION file and 4 were pipeline-common include pins. The last two kinds would stop being approved: neither could rate low.

Lockfile bumps are not touched. They rate low only when the upstream check reads the two published versions and finds nothing, which is the check doing its job.

What keeps the tier it had

  • *_VERSION: a branch name, a commit SHA or a pre-release on either side, a move down, or more than the one line. GITALY_SERVER_VERSION and GITLAB_KAS_VERSION hold commit SHAs on master, so a bump of either stays medium.
  • Includes: a new include; a changed project:, file: list or inputs:; a ref: or @ version that is or becomes a branch name, a commit SHA or ~latest, or that moves down; an include from any other owner; and every CI image, service and runner tag.
  • The other pins in deps (.tool-versions, .ruby-version, .nvmrc, mise.toml, Pipfiles) stay medium.

The rubrics do not list these one by one: each excepts "the release move under low", and the low clause's own conditions decide what is one.

What reviewers should weigh

  • It trusts the release, not the diff. What a new pipeline-common or component release runs is not in the merge request. The rubric says so, and rests on the release having been reviewed in the GitLab project that tagged it.
  • The rating model makes this call from the diff. No bin/eval suite covers the MR Risk Labeler's rules, so this is not scored. make check holds the two rubrics to the size and line limits and confirms the step that assembles the prompt drops nothing.
  • It moves a tier, so the catalogue's own rules rate it high and it needs a code owner of instructions/.

How to see it working

gitlab-org/gitlab is in test mode, so after this merges the next dependency bot bump of a root *_VERSION file or a pipeline-common pin should carry test-deps-risk::low or test-tooling-risk::low and test-gitlab-bot::auto-approve. Nothing is approved on a test- label.

For gitlab-bot to approve the include pins once the project is live, its dependency scope also has to accept the tooling area: that is in gitlab-org/quality/triage-ops!4551 (merged).

🤖 Generated with Claude Code

Edited by Connor Sanders

Merge request reports

Loading
Loading