Repository navigation
ci: split CI into parallel jobs, move scripted tasks into file tasks, cache downloads - #61
Merged
Merged
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Oct 27, 2026 8:47p.m. | Review ↗ | |
| JavaScript | Oct 27, 2026 8:47p.m. | Review ↗ | |
| Shell | Oct 27, 2026 8:47p.m. | Review ↗ | |
| Secrets | Oct 27, 2026 8:47p.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.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 9866976 | Commit Preview URL Branch Preview URL |
Oct 27 2026, 07:16 PM |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Docs7 for sweepies/count-patchula
Commit |
…reuses the dev build Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…re it Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
sweepies
marked this pull request as ready for review
October 27, 2026 20:38
|
[Medium impact] The reviewed changes appear safe to merge once the author's requested review is complete. Reviews (2) · Last reviewed commit: "ci: keep the corpus binary artifact reac..." · Reviewed by Greptile |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Oct 27, 2026
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.
Splits CI into parallel jobs that each call mise tasks, moves scripted tasks out of
mise.tomland the workflows into file tasks, and adds download caches. Draft for review; please don't merge until Sweepy has looked at it.Timing
Before: main run 40459508608. After: runs on this branch. "Cold" is the first run, with new mbx generations, a new mise cache key and no Cargo download cache. "Warm" is the final workflow, run once and then rerun.
ci(fixtures, lint, test, build in series)ci, 41s)ci)ci, 89s)ci, 3m56s for all tests)ci)ci)¹ Cold numbers for the two unit test halves come from run 40566650438, the first run after the split (before that, run 40563981919 ran all unit tests in one job: 6m10s cold, 5m18s warm). That run's wall clock was 4m38s.
The critical path is now the other crates' unit tests (about 4 minutes) and the live corpus lookup (about 4 minutes, mostly network). Splitting costs CPU: each Rust job compiles its own build scripts, native C code (
aws-lc-sysalone is about 45 seconds) and test binary links, which mbx bypasses, so total runner time rises from about 11 to about 18 minutes.Jobs
.github/workflows/ci.ymlnow runs Changed paths, Lint: rustfmt, clippy, Lint: workflows, Build: workspace, fixture secret scan, Tests: unit (update), Tests: unit (others), Tests: real lockfile tools, Docs: build and Corpus: lookup. Every job runs one or two mise tasks, and everyrun:step is a single task call. A docs-only change runs only Docs: build; README-style files run nothing. There is no CI result gate any more, since main no longer requires it; AGENTS.md now says every check must be green.test:unitskips thelockfiles::tests::real_tests and takes--part all|update|others.patchula-update's suite (itswrite.rsalone takes 50s) runs beside the other crates.test:toolsruns only the real lockfile tool tests, with the task-scoped engines, so only that job installs .NET, Python, Ruby, PHP and the rest.testrunstest:unitthentest:tools.ciruns every CI task in series for local use.v4-lint,v4-build,v4-test-update,v4-test-others,v4-tools, and the existingv3-corpus). Their objects barely overlap (Clippy metadata, test builds and release builds), so one shared bundle would make each job download what it doesn't use. The build job runs the fixture scanner aftercargo build, so the scanner reuses that dev build.File tasks
These moved from
mise.tomlintomise-tasks/, with#MISEand#USAGEheaders:ci,ci:changes,test:unit,test:tools,test:stress,docs:cli,release:package,corpus:report(new: the corpus job's run-and-summarize shell),cache:usage(new:du/df),benchmarks:summary(new),server:replay,conformance:inspect,conformance:logsandregistry:update. The last four are now Bun scripts instead ofbun -estrings. One-linecargotasks stay inmise.toml.All task names are unchanged.
test:stressandcitake flags (--runs,--filter,--log-dir) instead ofPATCHULA_STRESS_*andPATCHULA_CI_LOG_DIR, which nothing else used. The lockfile engine pin test now reads the#MISE tools.*headers oftest:toolsandtest:stress. Benchmarks' multi-line steps call tasks too;release.ymlis untouched.Caches
The caches follow mise's CI guide.
mise.lockis now committed and covers linux-x64, linux-arm64 and macos-arm64, including tools that tasks declare.jdx/mise-actionrunsmise install --lockedwithcache: false, and every job restores mise's checksum-verified download store (~/.cache/mise/downloads-cas) instead of the installed tools. This replaces both the oldmise-v1install cache and my earlierlockfile-tools-v1cache.mise-downloads-Linux-<mise.lock>cargo-downloads-v1-<Cargo.lock>(registry index, crate archives, git db)v4-{lint,build,test-update,test-others,tools}-objectscorpus-v2Corpus no longer builds anything. It downloads the build job's dev binary as an artifact (
PATCHULA_BIN) instead of doing its own release build. That drops the separate 247 MBv3-corpus-objectsbundle, which shared nothing with the debug bundles because it was a release profile. A local planning run took 45s on the dev binary and 9s on the release binary, and in CI the corpus job went from about 4 minutes to about 80 seconds, because it no longer compiles a release build. The other bundles stay separate: Clippy metadata, the test builds and the tools build share little.Pruning:
Cache: prune superseded entriesjob runsmise-tasks/cache/prune --drop-others <families>. This uses the built-in token withactions: writeon that job only, and callsgh cache list/gh cache delete. It keeps the newest main entry of each family and deletes older ones. It also deletes main entries that match no family, such as the retiredmise-v1,lockfile-tools-v1,v3-ci-objectsandv3-corpus-objects.cache-cleanup.ymlruns onpull_request: closed. It checks out the task file from the default branch and deletes every cache onrefs/pull/<n>/merge.I tested both modes against the live cache: closed PR #60's 239 MB entry was deleted, and on this PR's ref,
--drop-othersremoved the stalemise-v1andlockfile-tools-v1entries (720 MB). The main-push job itself only runs after merge.Steady-state footprint: main holds about 1.9 GB, one entry per family. A push that runs the Rust jobs saves about 1.3 GB (five mbx bundles plus corpus), and the prune job deletes the same amount. Pull requests save nothing, and they used to save a corpus entry on every run. Before this PR the repo sat at 10.6 to 11.9 GB.
Final run on this branch, 40575243025, took 3m54s of wall clock, with every job green.
docs/src/content/docs/internals/ci-cache.md(now titled "CI jobs and caches") documents all of this. README, AGENTS.md and the corpus README are updated to match.