ci(renovate): regenerate apm.lock.yaml in Renovate branches #497

Open
opened 2026-12-01 20:16:46 +00:00 by Claude · 0 comments
Owner

Part of #194

Problem

A regex-manager bump changes only the ref: line in apm.yml. apm.lock.yaml still records the old resolved ref and commit, so the bot PR leaves the manifest and the lock disagreeing. Renovate can run a post-upgrade command, but the self-hosted job does not allow any commands, and apm is probably not in the renovate/renovate:*-full image (not verified).

This is a workflow change, so it is human-authored (the bot is disabled for the Renovate workflow file, and workflow edits follow the workflows' own AGENTS.md).

Out of scope: committed .claude/ paths. Once #194 commits deployed files, fileFilters and the gate both widen.

Proposal

  • apm in the job: make apm available in the Renovate job at the exact version requirements-dev.lock pins for apm-cli, never unpinned. Use either an install step pinned to that lock or a custom image under images/ (a new kind of thing, so read the ADRs and SECURITY.md first). Record the choice on this issue.
  • Allowed commands: set RENOVATE_ALLOWED_COMMANDS='["^apm install$"]' on the Renovate step. Leave the shell executor off.
  • Post-upgrade task: in the regex manager's rule, run postUpgradeTasks with the command apm install, fileFilters set to the lock only, and executionMode: branch.
  • Auth: apm in the job must be able to fetch from the skills source host. The repo is public; confirm no credentials are needed.
  • executables.allow: check whether apm needs an entry for apm install in the bot job.

Acceptance criteria

  • apm --version in the Renovate job prints the version pinned in requirements-dev.lock. Check: the job log.
  • RENOVATE_ALLOWED_COMMANDS admits exactly apm install. Check: read the workflow.
  • A Renovate run on a rolled-back pin produces a branch whose apm.lock.yaml resolved ref and resolved commit match the new tag, and whose only other changed file is apm.yml. Check: the branch diff, or the debug log of a dry run.
  • The issue records the image-versus-install choice and whether executables.allow was needed.
Part of #194 ## Problem A regex-manager bump changes only the `ref:` line in `apm.yml`. `apm.lock.yaml` still records the old resolved ref and commit, so the bot PR leaves the manifest and the lock disagreeing. Renovate can run a post-upgrade command, but the self-hosted job does not allow any commands, and apm is probably not in the `renovate/renovate:*-full` image (not verified). This is a workflow change, so it is human-authored (the bot is disabled for the Renovate workflow file, and workflow edits follow the workflows' own AGENTS.md). Out of scope: committed `.claude/` paths. Once #194 commits deployed files, `fileFilters` and the gate both widen. ## Proposal - **apm in the job:** make apm available in the Renovate job at the exact version `requirements-dev.lock` pins for `apm-cli`, never unpinned. Use either an install step pinned to that lock or a custom image under `images/` (a new kind of thing, so read the ADRs and SECURITY.md first). Record the choice on this issue. - **Allowed commands:** set `RENOVATE_ALLOWED_COMMANDS='["^apm install$"]'` on the Renovate step. Leave the shell executor off. - **Post-upgrade task:** in the regex manager's rule, run `postUpgradeTasks` with the command `apm install`, `fileFilters` set to the lock only, and `executionMode: branch`. - **Auth:** apm in the job must be able to fetch from the skills source host. The repo is public; confirm no credentials are needed. - **`executables.allow`:** check whether apm needs an entry for `apm install` in the bot job. ## Acceptance criteria - [ ] `apm --version` in the Renovate job prints the version pinned in `requirements-dev.lock`. Check: the job log. - [ ] `RENOVATE_ALLOWED_COMMANDS` admits exactly `apm install`. Check: read the workflow. - [ ] A Renovate run on a rolled-back pin produces a branch whose `apm.lock.yaml` resolved ref and resolved commit match the new tag, and whose only other changed file is `apm.yml`. Check: the branch diff, or the debug log of a dry run. - [ ] The issue records the image-versus-install choice and whether `executables.allow` was needed.
Claude added the Kind/Enhancement
Priority
Medium
3
Status
Ready for Human
labels 2026-12-01 20:16:47 +00:00
Claude added a new dependency 2026-12-01 20:16:59 +00:00
Claude added a new dependency 2026-12-01 20:17:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#497