Skip to content

feat(renovate): deprecate updatecli, enable pre-commit manager - #8351

Open
gurevichdmitry wants to merge 4 commits into
mainfrom
feat/deprecate-updatecli
Open

feat(renovate): deprecate updatecli, enable pre-commit manager#8351
gurevichdmitry wants to merge 4 commits into
mainfrom
feat/deprecate-updatecli

Conversation

@gurevichdmitry

@gurevichdmitry gurevichdmitry commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updatecli has been 401-dead since June 2026 (CLOUDSEC_MACHINE_TOKEN expired). All unique coverage it provided is now handled by Renovate or a dedicated workflow.

  • Delete .github/workflows/updatecli.yml and the unused .ci/updatecli/ pipelines (golang, hermit, mods) — stops the monthly 401 failures
  • Enable Renovate pre-commit manager — covers .pre-commit-config.yaml hook rev pins (last bumped Sept 2025); all updates grouped into one PR; disabled on release branches
  • Add custom regex manager for docs/version.asciidoc :go-version: pin — joins the existing go-version group (was only updated by the deleted golang pipeline; currently stale at 1.26.1 vs .go-version 1.26.6)
  • Keep .ci/updatecli/updatecli.d/update-beats.yml + update-beats.sh — still used by bump-beats-version.yml
  • Add docs/superpowers/ to .gitignore — housekeeping, prevents local planning notes from being accidentally committed
Updatecli pipeline Replacement
mods (go get -u) Renovate gomod (already active)
golang (.go-version + hermit go) Renovate custom manager + go-version group (already active)
golang (docs/version.asciidoc) New regex manager added in this PR
hermit (package bumps) Renovate hermit manager (already active)
hermit (pre-commit autoupdate) Renovate pre-commit manager (enabled in this PR)
beats bump-beats-version.yml (unchanged)

Note on enabledManagers

The pre-commit manager is opt-in in Renovate — it does not run unless explicitly listed in enabledManagers. Because enabledManagers is a replace (not an add), listing only pre-commit would disable all other managers. This PR therefore lists all 10 currently-active managers explicitly to preserve existing behavior.

Trade-off: if Renovate auto-detects a new manager for some future file in the repo, it will not run until added to this list. This is the accepted pattern — elastic-agent and fleet-server use the same approach.

Test plan

  • Confirm bump-beats-version.yml still runs successfully (references kept update-beats.yml + update-beats.sh)
  • After merge: trigger an immediate Renovate run via the Dependency Dashboard
  • After merge: expect a pre-commit group PR bumping hook revs in .pre-commit-config.yaml
  • After merge: expect docs/version.asciidoc bumped from 1.26.11.26.6 in the next go-version group PR
  • After merge: confirm no scheduled Update Dependencies with Updatecli run fires on Oct 1st

Closes https://github.com/elastic/security-team/issues/19161

🤖 Generated with Claude Code

Updatecli has been 401-dead since June 2026 (CLOUDSEC_MACHINE_TOKEN
expired). All unique coverage it provided is now on Renovate:

- golang/.go-version: already on Renovate (custom regex manager)
- hermit packages: already on Renovate (default hermit manager)
- go.mod updates: already on Renovate (gomod manager)
- pre-commit hook revs: now enabled via Renovate pre-commit manager

Changes:
- Enable Renovate pre-commit manager; group all hook rev bumps into one
  PR via a new packageRule; disable pre-commit updates on release branches
  (matching updatecli's main-only behaviour)
- Add custom regex manager for docs/version.asciidoc :go-version: pin
  so it joins the existing go-version group (was only updated by the
  now-deleted updatecli golang pipeline; currently stale at 1.26.1 vs
  .go-version 1.26.6)
- Delete .github/workflows/updatecli.yml and unused .ci/updatecli/
  pipelines/scripts (golang, hermit, mods); keep update-beats.yml and
  update-beats.sh which are still used by bump-beats-version.yml
- Ignore docs/superpowers/ in git (local planning docs)

Resolves: elastic/security-team#19161

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gurevichdmitry

Copy link
Copy Markdown
Collaborator Author

@elastic-renovate-prod dry-run

gurevichdmitry and others added 2 commits September 8, 2026 15:59
pre-commit is opt-in in Renovate and requires explicit listing in
enabledManagers to be activated. "pre-commit": {"enabled": true} alone
is insufficient. List all currently active managers alongside pre-commit
to avoid disabling auto-detected managers (hermit, terraform, etc.).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant