Skip to content

fix(manager): move the test:tools pins with the Count's default tools - #140

Merged
sweepies merged 6 commits into
mainfrom
fix/default-tool-bumps
Oct 31, 2026
Merged

sweepies merged 6 commits into
mainfrom
fix/default-tool-bumps

Conversation

@sweepies

@sweepies sweepies commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Since #129 the Count bumps crates/update/src/lockfiles/defaults.toml. His PRs (#131–#134, #136–#138) fail "Tests: unit (update)", and aube and bun also fail "Tests: real lockfile tools".

Root causes

  1. Hard-coded versions in tests. lockfiles/tests.rs expected [email protected], [email protected], [email protected], the pinned mise and others literally.
  2. test:tools pins. tasks.toml pins the same tools, a unit test requires the two to match, and the Count never edited tasks.toml. A defaults bump could not pass the guard. The real-tools job runs the task-scoped old tool while the code asks for the new one ([email protected] is not installed).

Changes

  • mise manager reads a task's own tools (documented mise feature): [tasks.<name>].tools in a config file and <name>.tools in an included TOML task file. Tests in crates/manager/tests/extract.rs, docs in guide/managers.md.
  • patchula.pkl adds tasks.toml to the mise files, so a tool moves in defaults.toml and tasks.toml on one branch. Yarn Berry in tasks.toml stays manual (rule active = false): defaults.toml keeps Berry under [yarn], which the Count does not read, so moving one without the other would break the guard.
  • mise.lock regeneration now locks the tools tasks install (the repo's mise.lock already records them); without this the new tasks.toml declarations would fail the lock job with "no literal project declaration". Test mise_lock_follows_the_tools_tasks_install, docs in guide/lockfiles.md.
  • Tests derive from defaults.toml via default_version/default_spec/berry_spec. Fixtures that stand for a repository's own pin (bun/node in the all-tools test) now use versions unlike the defaults, so the test proves the repo pin wins. The guard is unchanged.

Verification

  • Dry run on this checkout: patchula/aube-2.x plans 2+ files, defaults.toml and tasks.toml; the same for bun, dotnet, node, python, ruby, uv.
  • With aube 2.8.4 and bun 1.4.4 applied to both files and no test edit, the update suite and mise run test:tools pass.
  • Unit (update, manager), clippy -D warnings, fmt, hk check.

Not covered: a tool declared in a task file the update does not change is not read by the mise.lock job, and the union of two different versions has no test.

View guided diff Turn on auto-fix

The Count's PRs bumping crates/update/src/lockfiles/defaults.toml failed CI
two ways: tests hard-coded the default versions, and the test:tools task in
tasks.toml pins the same tools, which the Count never touched. A defaults bump
therefore failed the pin guard, and the real lockfile tools job ran the old
tools while the code asked for the new ones.

- mise manager: read a task's own `tools`, under `[tasks.<name>]` and in
  included TOML task files, where tasks are top-level tables.
- patchula.pkl: add tasks.toml to the mise files; Yarn Berry's pin in
  tasks.toml stays manual, because defaults.toml keeps it where the Count does
  not read it.
- mise.lock: lock the tools tasks install beside the project's tools.
- tests: derive every default-tool expectation from defaults.toml; fixtures
  that stand for a repository's own pin use versions unlike the defaults.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 31, 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 0d0eba0 Commit Preview URL

Branch Preview URL
Oct 31 2026, 06:48 AM

@deepsource-io

deepsource-io Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 5515da7...75f69e0 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 7:13a.m. Review ↗
JavaScript Oct 31, 2026 7:13a.m. Review ↗
Shell Oct 31, 2026 7:13a.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/config/tests/config.rs Resolved

@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

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
Comment thread crates/manager/src/mise.rs Resolved
Comment thread crates/update/src/lockfiles/mise.rs Resolved
Comment thread crates/update/src/lockfiles/mise.rs Resolved
Comment thread crates/manager/src/mise.rs Resolved

@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

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/mise.rs Resolved
Comment thread docs/src/content/docs/guide/managers.md Resolved
@context7

context7 Bot commented Oct 31, 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 879fbbf

@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 9 files

Requires human review: Auto-approval blocked because this review re-detected 4 unresolved issues already reported by Cubic.

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

Comment thread docs/src/content/docs/guide/managers.md Resolved
Comment thread crates/manager/src/mise.rs Resolved
Review of the task-tools support:

- A file is a task file when a scanned config includes it with
  task_config.includes, by file, glob or directory, and then every top-level
  table is a task, so a task named `tools` is no longer the tool section.
  Includes resolve from the including file's directory, with `..` allowed
  inside the repository only. Dependencies record the config that includes
  them.
- The lock job for a task file's tool is the mise.lock beside the including
  config, and mise.lock reads task files found the same way, from the commit
  when the update leaves them alone.
- A task declaring a tool with other options than the configuration does is
  refused: mise locks the same version with other options as a separate entry.
- Pointers escape `~` and `/` in task and tool names.
- Docs: name mise.toml and .mise.toml, and keep the default patterns in the
  files example.

@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 34 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/mise.rs Resolved
Comment thread crates/manager/src/mise.rs Resolved
Comment thread crates/update/src/lockfiles/mise.rs Resolved
…tory root

- mise.lock compares a task's options as parsed values, so quoting and array
  spacing no longer look like a conflict.
- A tool with options that a task requests at another version is locked at
  both, as one table per version; mise accepts an array of tables, not an
  array in `version`.
- A `.` or `./` include is the repository root: every TOML file below it, but
  not what mise reads as configuration (hidden files, mise.toml and
  mise.local.toml); a file named outright is always read.

@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 4 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/manager/src/mise.rs Resolved
mise's task walk prunes hidden directories as well as hidden files, so a
root or directory include no longer reads .hidden/tasks.toml. Naming a
hidden directory as the include still reads it, as mise does.
@sweepies
sweepies merged commit 66b4e56 into main Oct 31, 2026
15 checks passed
@sweepies
sweepies deleted the fix/default-tool-bumps branch October 31, 2026 07:18
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