Loading
Add Renovate config for Duo Workflows pinned dependencies
What does this MR do and why?
Adds renovate/gitlab/duo-workflows.config.js so Renovate opens weekly version-bump MRs in gitlab-org/gitlab for the pins Duo Agent Platform workloads use. Today these are bumped by hand, and several bumps were reverted after testing missed the new binary.
| MR | Pins | Reviewer |
|---|---|---|
| duo-cli and workflow-generic-image | DUO_CLI_VERSION, IMAGE_PATH tag in start_workflow_service.rb |
Roulette, agent foundations stage |
| glab | GlabSetup::VERSION in glab_setup.rb |
Roulette, Agent Developer |
How it behaves
- One MR per row, always on the latest version. A newer release updates the open MR instead of opening another. Major versions don't get a separate MR.
- Weekly. Before 05:00 UTC on Mondays. An open MR only changes inside that window, so a test run isn't invalidated mid-week.
minimumReleaseAge: 1 day, which gives the duo-cli package upload time to land.- A post-upgrade script (
duo-workflows-post-upgrade.sh) updates what Renovate can't:- glab: rewrites
GlabSetup::CHECKSUMSfrom the release'schecksums.txt. Without this, every glab MR would break the install. - duo-cli: the
curldownload version inimages.mdandoffline_deployment.md. - image: the
FROMtags in both docs, and the duo-cli and glab rows of theimages.mdinventory tables, taken from the image'sDockerfileat the new tag.
- glab: rewrites
- Testing instructions in each MR body. They cover the pitfalls of past bumps:
- The default image preinstalls
duoand glab, so the install step skips the pinned version. - Plain custom images such as
python:3.12have nosrt, so flows run without the sandbox. That is how the 9.29.0 sandbox regression (INC-15070) got through.
- The default image preinstalls
Why the image's own Renovate config doesn't cover this
gitlab-org/duo-workflow/default-docker-image bumps duo-cli and glab inside the image. Nothing bumps the pins in gitlab-org/gitlab.
How to set up and validate locally
yarn test: newduo-workflows.test.jschecks each regex finds exactly one value, and that theallowedCommandsentry rejects injected commands.- The script, run against copies of the Rails files on macOS and Debian: digests match
shasumof the real release archive. - Generated changes applied to a GDK checkout:
glab_setup_spec.rb+start_workflow_service_spec.rb219 examples, 0 failures.markdownlint-cli2andvaleclean on both docs. - Renovate dry-run in this MR (with the schedule removed): 3 of 3 pins found, and the script ran inside Renovate for all three dependencies without errors.
Not verifiable before merge: the MR bodies. The dry-run stops before creating MRs.
Edited by Thomas Schmidt