Skip to content

feat(manager): APM manifests and apm.lock.yaml - #43

Merged
sweepies merged 3 commits into
mainfrom
capy/apm-manager
Oct 26, 2026
Merged

sweepies merged 3 commits into
mainfrom
capy/apm-manager

Conversation

@sweepies

Copy link
Copy Markdown
Owner

Adds an apm manager for APM manifests, matching the scope of Renovate's apm docs.

Extraction. apm.yml / apm.yaml: string entries under dependencies.apm and devDependencies.apm (kinds production / development), written [host/]owner/repo[/path]#ref. GitHub entries use github-tags; GitLab, Codeberg, Gitea and Forgejo hosts use forge-tags. A full-SHA pin is tracked through its # tag comment. Entries the Count can't update go on the report's skipped list with a reason: no #ref, branches or non-version tags, short SHAs, SHAs with no tag comment, URL / object / registry / marketplace entries, and hosts with no tag source (Bitbucket, Azure DevOps, custom ports). Local paths, MCP and LSP are ignored.

Security defaults, same as Actions. APM entries go through the Actions tag/digest path (tagged_action()). That means commit pinning through the actionDigests default, the 24h release-age wait, and no auto-merge. New tags are written exactly as upstream tagged them, through exact_tag_ref(). The edit reuses the Actions replacement with # as the ref separator, so quoting and the rest of a comment are kept.

Lockfile. apm.lock.yaml beside an apm.yml is refreshed with apm lock (--update for maintenance), APM 0.35.0 from the tool store, in the existing sandboxed runner. This is APM's lock-only mode: it resolves and downloads into apm_modules/ to hash, but deploys nothing to agent directories. Under strace it spawned only git. apm_modules is excluded from the collected tree, and apm.lock.yaml is added to writable(). Git gets https:file for this tool only, because APM clones from its own local bare cache.

Departures (departures.md): apm lock instead of Renovate's apm install; commit pins on by default instead of behind pinDigests; no generic git-tags source.

Tests. Extraction, edit and lockfile-runner unit tests; a real offline apm lock test (apm added to the test task's tools); an engine test replaying a new fixtures/engine/apm.json cassette (gitlab.com forge tags, pin plus minor update with commit digests). The corpus gains tools/apm from microsoft/apm (MIT), and the snapshot diff is one row.

Docs. managers.md, lockfiles.md (command, tool store pin), compatibility.md (apm taken off the missing list), departures.md, README and the index.

Open in Capy

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula 7b878b0 Commit Preview URL

Branch Preview URL
Oct 26 2026, 07:18 AM

@deepsource-io

deepsource-io Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 16d8947...cb80f1e on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

Important

Some issues found as part of this review are outside of the diff in this pull request and aren't shown in the inline review comments due to GitHub's API limitations. You can see those issues on the DeepSource dashboard.

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Rust Oct 26, 2026 7:34a.m. Review ↗
JavaScript Oct 26, 2026 7:34a.m. Review ↗
Shell Oct 26, 2026 7:34a.m. Review ↗
Secrets Oct 26, 2026 7:34a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

Comment thread crates/manager/src/apm.rs Resolved
@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Reviews (5) · Last reviewed commit: "refactor(manager): read the APM entry li..." · Reviewed by Greptile

Comment thread crates/manager/src/apm.rs Resolved
Comment thread crates/manager/src/actions.rs Resolved
Comment thread crates/update/src/lockfiles/tests.rs Resolved
Comment thread crates/manager/src/apm.rs Resolved
Comment thread crates/manager/src/apm.rs Resolved
Extract the Git-pinned entries under dependencies.apm and devDependencies.apm
in apm.yml, looked up as GitHub tags or forge tags. Like actions, tags are
pinned to commits with the tag kept in a comment by default, and new tags are
written exactly as tagged. Entries with no ref, branches, untagged commit pins,
URL, object and registry entries, and hosts with no tag source are listed as
skipped with a reason.

apm.lock.yaml is refreshed with apm lock, APM's lock-only mode, from the tool
store; apm_modules never enters the commit.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Comment thread crates/manager/src/apm.rs Resolved
Comment thread crates/manager/src/lib.rs Resolved
sweepies and others added 2 commits October 26, 2026 07:27
…ases

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@sweepies
sweepies merged commit 28150c1 into main Oct 26, 2026
11 checks passed
@sweepies
sweepies deleted the capy/apm-manager branch October 26, 2026 07:37
@sweepies sweepies mentioned this pull request Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant