Repository navigation
Conversation
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Oct 27, 2026 9:55p.m. | Review ↗ | |
| JavaScript | Oct 27, 2026 9:55p.m. | Review ↗ | |
| Shell | Oct 27, 2026 9:55p.m. | Review ↗ | |
| Secrets | Oct 27, 2026 9:55p.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.
|
Docs7 for sweepies/count-patchula
Commit |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 32bc6ae | Commit Preview URL Branch Preview URL |
Oct 27 2026, 09:55 PM |
Tasks that run a command or two in order are now plain mise.toml entries: test:unit, test:tools, docs:cli, benchmarks:summary and cache:usage. Tasks with real logic are commands in a new xtask crate that their mise tasks run as cargo xtask <task>: ci, conformance:inspect, conformance:logs, corpus:report, registry:update, release:package, server:replay and test:stress. ci:changes and cache:prune stay shell file tasks. Their jobs run without mise or Rust, and building xtask there added about 40 seconds to each, including Changed paths, which gates every pull request. cc and ar stay shell because they run on every C compile. The corpus job runs the build job's xtask binary through XTASK_BIN, the way it already runs patchula through PATCHULA_BIN, so it compiles nothing. The conformance harness installs Renovate with aube instead of bun, so bun leaves the base tools; it stays a task-scoped engine for the real lockfile tool tests.
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.
Draft for Sweepy: what moving the repo's task scripts to
cargo xtasklooks like. I took it as far as it goes without slowing CI. Two scripts stay in shell, because moving them made their jobs about 40 seconds slower (numbers below).Where each task went
Line counts are the old script, then the new
mise.tomlentry (including itstoolstable) and the xtask module.test:unitmise.tomlentry, 8 (usagechoices plus a Teraiffor--part)test:toolsmise.tomlentry, 3 + 13 toolsdocs:climise.tomlrun list, 14benchmarks:summarymise.tomlentry, 4cache:usagemise.tomlentry, 4ci(wasci/_default)mise.toml5 +xtask/src/ci.rs56test:stressmise.toml5 + 13 tools +stress.rs37corpus:reportmise.toml5 +corpus.rs138 (about 30 of them a test)release:packagemise.toml4 +release.rs92conformance:inspectmise.toml4 +conformance.rs147 (shared with logs)conformance:logsmise.toml4 +conformance.rsregistry:updatemise.toml3 +registry.rs24server:replaymise.toml4 +replay.rs73ci:changesmise-tasks/docs/*pattern)cache:prunecc,arxtask/src/main.rs(152 lines) holds the command table, a small argument parser (--name value,--name=value, positional bounds,--help), andrun/outputhelpers that fail with the command line and exit status. The tasks that use xtask areraw_args = trueentries that runcargo xtask <task>, through the.cargo/config.tomlalias. No task was renamed.Dependencies are
serde_json(without serde's derive, so no proc-macro build) plushmac0.13 andsha20.11, the versions the server already uses.Cargo.lockgains only thextaskpackage.server:replaysigns with the same HMAC-SHA256 construction ascrates/server/src/webhook.rs. It doesn't depend onpatchula-serveritself, because that would compile the engine and tokio just to sign a body. Its HTTP is a hand-written HTTP/1.1 POST overTcpStream, which is all a loopback target needs.Why
ci:changesandcache:prunestay shellBoth jobs run the script straight from a sparse checkout, without mise or Rust. To run xtask, a job has to install Rust, Zig and mbx through mise (
install_args, withMISE_TASK_RUN_AUTO_INSTALL=false), restore the Cargo downloads and mbx bundle, and build xtask. I measured that in this PR's first CI run (the full-xtask version is onchore/xtask-all):The warm run didn't help. 16 of 21 compilations hit, but the four build scripts bypass mbx (
unportable-native-link), and installing the toolchain costs about 12 s either way. Changed paths gates every Rust job, so this would add about 40 s to every pull request. If you'd rather have them in Rust anyway,chore/xtask-allhas both ported, along with a unit-tested path classifier that matched the shell script on the last 45 PRs.CI timing for this head
At first the corpus job compiled xtask too, and took 149 s. Now the build job, which already builds every workspace binary, uploads
target/debug/xtasknext topatchula, and the corpus task runs${XTASK_BIN:-cargo xtask}, the waycorpus:checkusesPATCHULA_BIN. So the corpus job compiles nothing. Its lookup step is still about 10 s slower than #61's runs, but within main's 56 s, and it's network-bound.Tests: unit (others) is slower in all three samples, and I haven't pinned down why. Its mbx stats match the baseline (274 hits and 56 misses, against 275 and 55), so xtask's own objects aren't the cost. The compile phase took 2m18s to 2m35s, against 1m36s to 1m49s. The difference I can see is that these runs restore main's post-#61 bundle (
87a9bd0), while the baseline runs restored the pre-#61 one (eb84a32). I'd confirm against a no-op PR on current main before treating it as this change's cost.Bun
The conformance harness was the only user of the base
bun, so it now installs Renovate withmise exec -- aube --dir <tmp> install --ignore-scripts. aube's trust policy rejects@yarnpkg/[email protected]: it has no provenance, while 3.2.0 did, and it was published 2025-09-18. The harness exempts exactly that version in a generatedaube-workspace.yaml. That's a supply-chain call for you. With the exemption, Renovate 44.155.6 installs and--versionruns.bunleaves[tools]. It stays inmise.lockas a task-scoped engine oftest:toolsandtest:stress, because the real lockfile tests regeneratebun.lock. The pin test now checks bun too, and reads the pins frommise.tomlinstead of the old script headers.Checked locally
ci:changes(xtask version) matched the shell script's outputs on the last 45 PRs.registry:updateproduced output byte-identical to the bun script's.conformance:logsandconformance:inspectgave the same JSON as the bun scripts on the fixtures. Object key order can differ, because serde_json sorts keys.server:replaywas checked against a signature-verifying listener, covering a good secret, a bad secret, a secret file, a non-loopback target, and both secrets set.docs:clileftcli.mdunchanged.release:package x86_64-unknown-linux-muslproduced the same archive layout as before.test:unit --part badis rejected by mise'schoices.corpus:reportran only in CI.Docs
AGENTS.mdnow describes the split betweenmise.tomlentries, xtask commands, and the four shell file tasks.internals/ci-cache.mddocuments the same split and why Changed paths and prune stay shell, plusXTASK_BIN.