Repository navigation
fix(manager): move the test:tools pins with the Count's default tools - #140
Conversation
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.
Deploying with
|
| 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 |
|
|
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.
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
|
Docs7 for sweepies/count-patchula
Commit |
There was a problem hiding this comment.
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
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.
There was a problem hiding this comment.
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
…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.
There was a problem hiding this comment.
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
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.
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
lockfiles/tests.rsexpected[email protected],[email protected],[email protected], the pinned mise and others literally.test:toolspins.tasks.tomlpins the same tools, a unit test requires the two to match, and the Count never editedtasks.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
tools(documented mise feature):[tasks.<name>].toolsin a config file and<name>.toolsin an included TOML task file. Tests incrates/manager/tests/extract.rs, docs inguide/managers.md.patchula.pkladdstasks.tomlto the mise files, so a tool moves indefaults.tomlandtasks.tomlon one branch. Yarn Berry intasks.tomlstays manual (ruleactive = false):defaults.tomlkeeps Berry under[yarn], which the Count does not read, so moving one without the other would break the guard.mise.lockalready records them); without this the newtasks.tomldeclarations would fail the lock job with "no literal project declaration". Testmise_lock_follows_the_tools_tasks_install, docs inguide/lockfiles.md.defaults.tomlviadefault_version/default_spec/berry_spec. Fixtures that stand for a repository's own pin (bun/nodein the all-tools test) now use versions unlike the defaults, so the test proves the repo pin wins. The guard is unchanged.Verification
patchula/aube-2.xplans 2+ files,defaults.tomlandtasks.toml; the same for bun, dotnet, node, python, ruby, uv.mise run test:toolspass.-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.