Rate release-platform-canary's Renovate bumps against its own rules

What does this MR do and why?

Onboards gitlab-org/software-delivery/release-platform-canary (project 79940646) to the MR Risk Labeler for gitlab-org/gitlab#638927, for its Renovate merge requests only. The release-and-deploy maintainers asked to start there.

These are steps 1 and 2 of the onboarding guide:

  • instructions/79940646/ holds the rules file, one rubric and a README;
  • the project joins the gitlab-org consumer in src/mr-risk/flow.yml.erb, and flows/mr-risk.yml is recompiled;
  • the project gets a row in instructions/README.md.

One area

deps covers what Renovate moves here:

  • .tool-versions, and .gitlab-ci-asdf-versions.yml, which is regenerated from it;
  • .gitlab-ci.yml, for the common-ci-tasks component refs;
  • .pre-commit-config.yaml;
  • Dockerfile, for the UBI base image;
  • go.mod, for the go directive.

go.sum, .mise.toml and .gitlab-ci-other-versions.yml are in the area too. They hold nothing Renovate moves yet, and are there so that a bump adding to them is rated rather than refused.

Any other path refuses the merge request by name, so a person reads it. That includes:

No upstream check has anything to read: go.mod requires no modules, go.sum is empty, and nothing else is a lockfile. A go directive bump gets a not read line naming the directive, which the rubric rates as the go directive.

The rubric rates each bump by where the thing it moves runs:

Where it runs Tools Tier
A developer's machine caproni, colima, lima, mirrord, air, docker-cli, kubectl, helm, fairway low below a major bump
Lint and checks golangci-lint, shellcheck and shfmt, which the pipeline's lint jobs run, and pre-commit with pre-commit-hooks low below a major bump
The pipeline that builds and deploys golang, goreleaser, the common-ci-tasks components and hooks medium
Production the UBI base image, and the Go runtime golang compiles into the binary medium

The pipeline's own fairway and helm come with the release-platform component, so they move with a common-ci-tasks bump rather than with the .tool-versions pins, which feed the chart generator and caproni. CI's validate_mise_tool_versions job and this project's Duo sessions install every pin, the developer tools included.

A major bump of what the pipeline or production runs is high. So is anything in these files beyond a moved version, tag, digest or ref, such as a new include, input, job, hook, Dockerfile instruction or # datasource= annotation, or a variable added, removed or renamed. Every tier is a proposal for the project's maintainers to correct.

Two questions for the maintainers

  • The lint jobs. golangci-lint, shellcheck and shfmt run in the pipeline with the job's token, and their bumps rate low here. gitlab-org/gitlab's rubric rates a dependency used only to develop, lint or test like any other, "because it runs in the pipeline, beside its credentials". Should they be medium here too?
  • Go release lines. Go has no major bumps, so the high rule for a major bump never applies to golang, and a new release line such as 1.27 to 1.28 rates medium, as a patch does. Should a new release line be high, since its runtime ships in production?

Checked against the bot's merge requests here

Through the gate's path logic, using Manifest.area_for and Diffs::REFUSED_SUBJECTS, the bot's merge requests stay inside deps and under the gate's file and area caps, apart from the copier template updates and the bumps above that someone pushed a fix onto.

triage-ops starts the flow only on the bot's merge requests. A person's merge request is rated only when a project member mentions the flow's service account on it or assigns it as a reviewer.

Before this does anything

  • Ruby. This project's Duo session image is gl-infra's duo-workflow-sandbox, which ships no Ruby. gitlab-org/software-delivery/release-platform-canary!299 (merged) installs it in the setup script. Until that merges, a run here ends at its first Ruby step.
  • triage-ops. Renovate here runs as the project's own access-token bot, not @gitlab-dependency-update-bot, so the existing bot_dependency scope never selects its merge requests. gitlab-org/quality/triage-ops!4540 (merged) lets a project name its own dependency bots by user ID, and gitlab-org/quality/triage-ops!4541 (merged) names this project's. It carries consumer_id: 0 until the tag after this merges creates the project's consumer.
  • Labels. The flow creates each test- label as a project label the first time it writes it.

How to set up and validate locally

make check

🤖 Generated with Claude Code

Edited by Connor Sanders

Merge request reports

Loading
Loading