Repository navigation
Conversation
python -m corpus record and fetch take --shard K/N. A project's shard follows from its name alone, so adding a project moves no other. CI runs the corpus job as a matrix of four shards, each fetching, recording and comparing about a quarter of the corpus, so the doubled corpus fits a job's time and disk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #468 +/- ##
=======================================
Coverage 99.48% 99.48%
=======================================
Files 369 369
Lines 26200 26200
Branches 3263 3263
=======================================
Hits 26065 26065
Misses 135 135 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Part of #454, part 1: "check that the corpus job's time and the fetch cache still fit, and split the job if not."
Why
On a pull request, the
corpusjob takes about 31 minutes today: 16 minutes to record the PR and 15 to record the base, for example on #466. The job fetches about 5 GB of checkouts. Doubling the corpus (the next PR for #454) would make that about an hour on every pull request and about 10 GB on one runner.What changes
python -m corpus recordandfetchtake--shard K/N. A project's shard iscrc32(name) % N, so it depends on the name alone, and adding or removing a project moves no other. Today's 236 projects split 56, 56, 63 and 61.corpusjob becomes a matrix of four shards,corpus (1/4)tocorpus (4/4). Each fetches, records and compares its quarter, writes its own diff into the job summary under "Corpus, shard K/4", and uploadscorpus-recording-K. Nothing else reads the artifact.fail-fastis off, so every shard reports.corpus/README.mddocuments--shardand the shards.If branch protection requires a check named
corpus, it needs the four new names.mainisn't protected today.Tests
tests/test_corpus.pyShardTestschecks that:1/1is the whole corpus;--shard 3/4fetches exactly that shard;0/4,5/4,1,a/b,1/0) are usage errors.All local gates passed: ruff, ruff format, mypy, lizard, 3,375 tests with 99% coverage, jscpd, markdownlint and the strict self-check.
actionlintandzizmoralso pass onci.yml.🤖 Generated with Claude Code
https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt