Repository navigation
fix(tools,manager): yarnrc restore, mise lock store lock, and a cleanup pass - #306
Merged
Merged
Conversation
- `mise lock` runs through `Runner::tool`: the shared store lock, the install timeout, `clear_unproven` and usage records now apply to it. - Yarn resolves its invocation before writing the sanitised `.yarnrc.yml`, so an early error can no longer leave the sanitised copy behind. - A tool that held registry credentials reports how it failed (timeout or exit status), never its output; GitHub authentication errors keep their cause. - A corrupt or unreadable tool usage record is logged. - Store seeding and usage records run off the async runtime. - The tool cache docs describe all three partitions. - Cleanups: shared helpers for unchanged-lock errors, numeric versions, default versions, lock-file opening, credential folding and the dotnet walk; named constants; private visibility; Cargo run arguments as structs; real-tool tests assert what they produce; shared test helpers.
- Delete the test-only proposal oracle and its comparison test; each descriptor states the fields where it differs from `Proposing::BASE`, covered by behaviour tests per descriptor. - Percent escapes decode through `percent-encoding` (`%+A` stays as written), and `web_host` drops only its own scheme's default port. - One `ACTIONS_LOCK`, one `roles::leaf`, `Job::new`, `Prepared::per_file`, yaml descriptors as statics, `Unread::Failed.reason` and `commit_hash` reused, one unread warning per YAML file, and the refresh order covers every ecosystem at compile time. - Lookup computes `proposing()` and the Pin policy once per evaluation, shares `same_track`, merges its `impl Evaluator` blocks and no longer expects a dated release. - A `testing` feature gives other crates' tests one `Dependency` builder. - Comments state the present rule; state hashes are refreshed.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 276066a | Commit Preview URL Branch Preview URL |
Nov 14 2026, 04:11 AM |
…tion - `clear_unproven` never uninstalls the pinned mise package: version lookups install and run it without recording a use, so on a store that was never prewarmed the first `mise lock` removed it from under them. - The `packages.lock.json` walk follows symlinked directories and matches names as bytes again, and the NuGet config walk keeps its own rules, as before they were merged. - The `extract` and `files` states go to version 6: the public verdicts, the Cargo leaf match and the single unread-YAML warning change what an extraction stores. Their rows, and the config rows that read the same sources, list `percent-encoding`; the other rows are rehashed.
Merged
sweepies
added a commit
that referenced
this pull request
Nov 14, 2026
sweepies
added a commit
that referenced
this pull request
Nov 14, 2026
… a cleanup pass (#307) * fix(datasource,github): sloppiness pass over the datasource and GitHub crates Behaviour fixes: - datasource: one realm-trust rule for registry token services. A realm off the registry's origin must be on port 443 and be Docker Hub's auth.docker.io/token, gitlab.com/jwt/auth for registry.gitlab.com, or a self-hosted GitLab's <instance>/jwt/auth (tokens only); anything else is refused before any request. - notes: owns its error type; a failed read returns its own error the first time and its kind and message when memoised. GitHub and forge notes share one release budget (newest versions first, 32 releases, 12,000 bytes, stop when spent) and one finish step. - http: a local cooldown past the longest wait is Error::Throttled, not a fake 429; corrupt cached metadata is Error::Metadata; transport errors keep a redacted kind (timeout, connect), which GitHub errors keep too. - github: the governor parses a body only for a rate-limit status or a GraphQL answer; installation ids are bounded like every other id; redirect loops are Error::Redirect; mints lock per mint and scoped mints cache the repository id. - config: settings validation names the failing field, registry key included; an unreadable secret file keeps its io error. Cleanups: the retired +<build> cleanup is migration 014; Docker Hub's pull window moves into the datasource rules and the http tests no longer copy them; shared helpers replace duplicates (Version::new, one tag-tree builder, the parity harness and file walker in testkit, hex, base headers, queue SQL consts); named constants replace magic numbers; history-narrating and stale comments are rewritten. * fix(datasource,github): review fixes for the realm rule, mirror fallback and scoped mints - datasource: a self-hosted GitLab registry on a port of its instance (registry_external_url 'https://gitlab.example.com:5050') takes tokens from the instance's /jwt/auth again, with token trust only. The guide names the layout that stays refused: a token service on another port of the registry's host. - datasource: when the batched release read for mirror misses fails, the warm heads it read are kept and only the cold misses are asked again, concurrently. - github: a scoped mint must come back narrowed to the repository asked for; a mismatch forgets the cached id, reads it again and mints once more, and a second mismatch is an error. - mise: the io helper no longer splits a doc comment from its constant. * chore: rehash state rows after rebasing onto #306
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A cleanup pass over code written during the refactor, covering
crates/tools,crates/manager,crates/lookup,crates/lockfilesandcrates/words. Two commits: the tools fixes, then the manager/lookup/lockfiles refactor.Behaviour fixes (each with a test that failed before)
.yarnrc.ymlis always restored. The invocation is built before the sanitised copy is written, so an early return can no longer leave the sanitised copy behind.mise lock: it now runs through the shared tool path, so it takes the store lock and gets the install timeout and usage records like every other tool. Its failures now readmise: ….percent-encoding, so%+Ais no longer read as a newline.web_host: drops only its own scheme's default port.http://host:443is no longer judged public.8..100is no longer accepted.Plannedand a changed lock where the fixture must change. The oldPlanned | Skippedassertion hid that the APM and Go fixtures change nothing; those now assert "already current", which proves the tool ran.Cleanup (no behaviour change)
Proposing::BASE.canonical, thesha1-prefix stripping and the "not onboarded" message;roles::leaf), the unread reason,excluded, the commit-hash check,same_track;Job::newconstructor, andACTIONS_LOCKin one place.proposing()and the pin policy are computed once per evaluation, and the threeimpl Evaluatorblocks are merged into one.test_runnerhelper replaces 79 identical setups, the real-tool test helpers are shared, and atesting::dependencyfixture builder is added.Review fixes
extractandfilescache states go from 5 to 6, because the public-registry verdicts they store change (web_host, percent decoding).Follow-up
crates/updateandcrates/engine, so that fix follows in a separate PR.