Skip to content

fix: lockfile and auto-merge failures from the Count's first run on his own repository - #108

Merged
sweepies merged 13 commits into
mainfrom
fix/dogfood-run-1
Oct 31, 2026
Merged

sweepies merged 13 commits into
mainfrom
fix/dogfood-run-1

Conversation

@sweepies

@sweepies sweepies commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Fixes the failures from the Count's first run on his own repository (run 41140623174), plus the two follow-ups from the PRs it opened (#98–#101 and #102–#105). One commit per bug.

# Failure Root cause Fix
1 base64-0.x: cargo failed to select a version --precise on the old 0.22.1 entry, which jsonwebtoken still requires A bump across a semver-incompatible boundary runs cargo update --workspace (adds only what the edited manifests need), then --precise to the target if cargo locked a newer release
2 zstd-sys-2.x: lockfile did not resolve … 2.1.2 Lock records 2.1.2+zstd.1.5.7; the advisory's fixed version has no build metadata; the check compared strings A request without build metadata matches any build; one with it must match exactly
3 rust-1.x: no existing platforms to preserve core:rust records no platforms.* Lock for the platforms the rest of the lockfile records; no --platform when it records none
4 node-26.x, usage-7.x: did not resolve The lock job merged every mise.toml under the lock's directory, so tests/corpus/tools/mise/mise.toml (node = "24", usage at latest) overrode the root Read only the lock's directory and its ancestors, as mise does; a nested mise.toml has a lock of its own
7 specifiers = ["latest"] in #98–#101 Same root cause as 4 Same fix, plus a post-lock check that each entry's specifiers come from the manifest's request
5 webpki-root-certs: Pull request is in clean status GitHub offers auto-merge only on a PR that cannot be merged yet Not an error: the Count's own merge takes over on a later run, behind the same receipt, release-age and check gate
8 #102–#105: aube ci lockfile out of date aube-lock.yaml was not a recognised lockfile, so the PR was manifest-only Recognised, regenerated in place by name, read back for locked versions and advisories; unsupported Python locks (pdm.lock, pylock.toml, Pipfile.lock) hold as lockfile-pending with the lockfile named

Not changed: the rustup $HOME warnings (6). They are harmless: with -y, rustup-init prints them and proceeds. Setting RUSTUP_HOME and CARGO_HOME does not avoid them; only the internal RUSTUP_INIT_SKIP_SUDO_CHECK=yes test hook does, and rustup says only the test runner should set it.

Tests: each fix has a test that fails without it. Local checks were clippy, fmt, and the manager, update and engine test suites; the corpus extraction snapshot is unchanged.

View guided diff Turn on auto-fix

…th cargo update --workspace

A manifest moving base64 0.22 to =0.23.1 left the old 0.22.1 entry in use by
jsonwebtoken, so --precise on that entry failed to select a version. A target
that Cargo treats as incompatible with the locked version is a new entry:
lock it with --workspace, then pin it with --precise if Cargo chose a newer
release.
zstd-sys 2.1.2 is locked as 2.1.2+zstd.1.5.7, so the post-lock check that the
lock records the requested version rejected a correct lock. SemVer build
metadata does not order versions: a request without it matches any build, and
one with it still has to match exactly.
core:rust writes no platforms.* entries, so a lockfile with a rust entry failed
with 'no existing platforms to preserve'. mise lock handles it (it writes the
version and specifiers and skips every platform): lock such a tool for the
platforms the rest of the lockfile records, and without --platform when the
lockfile records none.
The lock job gathered every mise.toml under the lock's directory, so
tests/corpus/tools/mise/mise.toml (node = "24", usage and hk at latest)
overrode the root declarations. node 26.13.0 and usage 7.1.3 were locked as
24.22.2 and latest, failing the resolved-version check. mise itself reads the
directory and its ancestors for a lock; a nested mise.toml has a lock of its
own, so a dependency there no longer finds an ancestor's mise.lock.
…manifest's

mise records the manifest's request as an entry's specifiers and calls a lock
that disagrees out of date ('[email protected] is not in the lockfile'). Check every
selected tool's specifiers against the declaration the lock job was given, so a
lock for the wrong request fails the branch instead of shipping.
…a PR clean

enablePullRequestAutoMerge answers a PR that can already be merged with 'Pull
request is in clean status', since GitHub offers auto-merge only on a PR that
cannot be merged yet. The Count reported that as an error for the
webpki-root-certs PR. Treat it as native auto-merge being off for that PR: leave
it to the Count's own merge on a later run, which still needs a stored receipt,
policy, release age and every check passing.
… beside lockfiles nothing regenerates

A package.json beside only an aube-lock.yaml found no lockfile, so the update
was a manifest-only PR and aube ci then failed with 'lockfile is out of date'.
Treat aube-lock.yaml as an aube-owned Node lockfile like pnpm-lock.yaml: find
it, regenerate it in place by name, and keep the 'aube wrote aube-lock.yaml'
error for a lockfile aube was not asked to keep.

Python locks of tools nothing here runs (pdm.lock, pylock.toml, Pipfile.lock)
now hold the update as lockfile-pending, as bun.lockb already did, and the
pending reason names the lockfile.
An aube-lock.yaml is pnpm's v9 format. Give direct npm dependencies the version
it locked (so the post-lock check can prove the requested version, as it does
for package-lock.json) and list the registry packages beneath them as
lockfile-only packages for advisory checks. package-lock.json and bun.lock keep
precedence for a dependency they already resolved; the corpus extraction
snapshot is unchanged.
@deepsource-io

deepsource-io Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 3b54ff0...fe460be 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 ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Rust Oct 31, 2026 12:02a.m. Review ↗
JavaScript Oct 31, 2026 12:02a.m. Review ↗
Shell Oct 31, 2026 12:02a.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.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 30, 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 ec8ba12 Commit Preview URL

Branch Preview URL
Oct 30 2026, 11:56 PM

@context7

context7 Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Docs7 for sweepies/count-patchula

Result Status Action
Deployment ➖ Not used —
Content review ➖ Did not run. This site has no agent runs available this month. Wait for the monthly reset or check your Docs7 plan. —

Commit fe460be

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 19 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread crates/manager/src/locked.rs Resolved
Comment thread crates/update/src/lockfiles/mise.rs Resolved
Comment thread crates/manager/src/lib.rs Resolved
Comment thread crates/update/src/lockfiles.rs Resolved
Comment thread crates/update/src/lockfiles/mise.rs Resolved
Comment thread crates/manager/src/locked.rs Resolved
Comment thread crates/update/src/lockfiles.rs Resolved
Comment thread crates/update/src/lockfiles/python.rs Resolved
Comment thread crates/update/src/lockfiles/mise.rs Resolved
Comment thread crates/update/src/lockfiles/tests.rs Resolved
…ries

The scanner's npm file list omitted aube-lock.yaml, so the engine never fetched
it and the locked-version reader got nothing in a real run; the earlier test
fed the file in directly. Select it, and test through the scanner's own file
selection. An importer entry that is a workspace link, file or Git reference
(link:../shared) is no locked version and is no longer recorded as one.
… and every declared request

The configuration filter used the strict 'under', so services/api/mise.toml was
excluded for services/api/mise.lock and the tool had no declaration. Include the
lock's own directory. The specifiers check read a mise array of tables as no
requests and rejected valid declarations, and accepted a lock that answered
only some of a multi-version declaration; read each table's version and require
the recorded requests to equal the declared ones.
A root Pipfile.lock held updates to packages/app even though packages/app/uv.lock
governs that project. Compare the nearest supported and unsupported lockfiles
and hold only when the unsupported one is at least as close.
…ith a range

The lockfile table gave one aube command for aube-lock.yaml and pnpm-lock.yaml;
it runs once per lockfile with default-lockfile set to its name. The Cargo
cross-boundary test now declares a range (0.23), the requirement under which
cargo locks a release newer than the target and the --precise pin follows.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 7 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread crates/update/src/lockfiles/tests.rs Resolved
@sweepies
sweepies merged commit f3952e5 into main Oct 31, 2026
16 checks passed
@sweepies
sweepies deleted the fix/dogfood-run-1 branch October 31, 2026 00:07
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