Repository navigation
chore: move more repo config files and hooks into .config - #18137
Conversation
Move cspell.json, commitlint.config.cjs, .pnpmfile.cjs and crate-layers.toml under .config/: - cspell finds .config/cspell.json on its own. - The commit-msg hook already passes --config to commitlint. - pnpm-workspace.yaml points the pnpmfile setting at .config/pnpm/pnpmfile.cjs. - crate-layers reads .config/crate-layers.toml. It only reads the file from the working tree, so diffing against older commits is unaffected. CI path filters, CODEOWNERS, the meta-updater cspell key, and the docs that name these files are updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Nothing new recorded1 job recorded · compared with the last 10 runs on TS CI / Test / ubuntu (24.0.0, 2) / Node 24 / chunk 2/3
|
The prepare script now runs `husky .config/husky`, which points core.hooksPath at .config/husky/_. Clones that last installed on an older commit keep the old .husky/_ path until `pnpm install` reruns the prepare script. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Micro-Benchmark ResultsLinux |
Same-run regression checkHEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval. Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.
Same-run syscall checkEach install runs 2 more times per revision, untimed, under
Integrated-Benchmark Report (Linux)Commit: Compared against main at: Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked, injected, and Cargo workspace scenarios compare current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.46504820492,
"stddev": 0.10263475941723582,
"median": 2.44369098702,
"user": 2.04751898,
"system": 1.5124456199999998,
"min": 2.29585103002,
"max": 2.6458492860200002
},
{
"command": "pacquet@main",
"mean": 2.41712803992,
"stddev": 0.10736959443116736,
"median": 2.44870000302,
"user": 1.9826500799999998,
"system": 1.53488732,
"min": 2.25674157702,
"max": 2.52885210202
},
{
"command": "pnpr@HEAD",
"mean": 1.4276334016199999,
"stddev": 0.12655457138455253,
"median": 1.39880969002,
"user": 1.9892538800000001,
"system": 1.4003411199999998,
"min": 1.26612231102,
"max": 1.64572007502
},
{
"command": "pnpr@main",
"mean": 1.43188304032,
"stddev": 0.07357853755286699,
"median": 1.41464974702,
"user": 1.9564125799999998,
"system": 1.49224972,
"min": 1.35214128902,
"max": 1.55596492802
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2782184414200001,
"stddev": 0.022418000452633157,
"median": 0.26999262392,
"user": 0.30590406,
"system": 0.6658960199999999,
"min": 0.25364114942000004,
"max": 0.32695605042000003
},
{
"command": "pacquet@main",
"mean": 0.2660009138200001,
"stddev": 0.009227456111282412,
"median": 0.26786171092000005,
"user": 0.31638565999999996,
"system": 0.6187221199999999,
"min": 0.25116164442000005,
"max": 0.28127805042000004
},
{
"command": "pnpr@HEAD",
"mean": 0.28237041482,
"stddev": 0.013138648000966547,
"median": 0.28302867442,
"user": 0.31497176,
"system": 0.62200842,
"min": 0.25505714142,
"max": 0.29924363842
},
{
"command": "pnpr@main",
"mean": 0.27647425272000004,
"stddev": 0.011905379055536243,
"median": 0.2770000624200001,
"user": 0.31646756,
"system": 0.62213252,
"min": 0.25413573342,
"max": 0.29848635842000004
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.013592621923696679,
"stddev": 0.0014690052618969247,
"median": 0.013560045900000001,
"user": 0.007706593364928911,
"system": 0.007083838672985779,
"min": 0.009878580900000001,
"max": 0.0182064799
},
{
"command": "pacquet@main",
"mean": 0.012703099042857149,
"stddev": 0.0014602032249077552,
"median": 0.012669568400000001,
"user": 0.007672460504201683,
"system": 0.00613111361344538,
"min": 0.0099457859,
"max": 0.0164198849
},
{
"command": "pnpr@HEAD",
"mean": 0.01174987498597285,
"stddev": 0.0014973456977800345,
"median": 0.011582178900000002,
"user": 0.006856516742081451,
"system": 0.005973440180995477,
"min": 0.008633844900000002,
"max": 0.017634482899999998
},
{
"command": "pnpr@main",
"mean": 0.012147007024999993,
"stddev": 0.0017010981964763654,
"median": 0.011924915400000001,
"user": 0.007179283333333335,
"system": 0.006101659629629626,
"min": 0.009147090900000002,
"max": 0.0203101449
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.011539749547536237,
"stddev": 0.0015672567892024384,
"median": 0.011148013120000001,
"user": 0.006736084927536231,
"system": 0.005773556376811595,
"min": 0.00902104112,
"max": 0.01833338012
},
{
"command": "pacquet@main",
"mean": 0.011084443051707322,
"stddev": 0.0020342124770094967,
"median": 0.01051548212,
"user": 0.0064528476097560974,
"system": 0.005595185073170732,
"min": 0.00835116112,
"max": 0.019988632120000002
},
{
"command": "pnpr@HEAD",
"mean": 0.010585946220775194,
"stddev": 0.0013113284659573249,
"median": 0.010478393620000002,
"user": 0.006461974883720927,
"system": 0.00507993209302325,
"min": 0.007973711120000001,
"max": 0.015138990120000001
},
{
"command": "pnpr@main",
"mean": 0.010964074393584896,
"stddev": 0.0015932080222435556,
"median": 0.01080149062,
"user": 0.006245873962264147,
"system": 0.005720798396226412,
"min": 0.00814371212,
"max": 0.01795452712
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5727644408199994,
"stddev": 0.06568333193453846,
"median": 2.54896544932,
"user": 2.2306198999999998,
"system": 1.5876008799999999,
"min": 2.51860260732,
"max": 2.73832715632
},
{
"command": "pacquet@main",
"mean": 2.56376887032,
"stddev": 0.02202072085712052,
"median": 2.5603094623200002,
"user": 2.2125817,
"system": 1.5457683799999997,
"min": 2.53683548732,
"max": 2.59896714232
},
{
"command": "pnpr@HEAD",
"mean": 1.5755009588200002,
"stddev": 0.13096838727969248,
"median": 1.54799392832,
"user": 1.9123002,
"system": 1.62592048,
"min": 1.40745611232,
"max": 1.78684333532
},
{
"command": "pnpr@main",
"mean": 1.5789005795199997,
"stddev": 0.11690356995291397,
"median": 1.52816699832,
"user": 1.8789102999999998,
"system": 1.5264554800000003,
"min": 1.43408630332,
"max": 1.75936705732
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5281654328600001,
"stddev": 0.029896344967902107,
"median": 0.52140046896,
"user": 0.7496324,
"system": 1.1171449,
"min": 0.48889957746,
"max": 0.5749391474600001
},
{
"command": "pacquet@main",
"mean": 0.5076788882600001,
"stddev": 0.02069866487479011,
"median": 0.50186640896,
"user": 0.7099975000000001,
"system": 1.0942322,
"min": 0.48129411746,
"max": 0.5587200694600001
},
{
"command": "pnpr@HEAD",
"mean": 0.30240639096,
"stddev": 0.009544245757658984,
"median": 0.30237877096,
"user": 0.29041739999999994,
"system": 0.5679283,
"min": 0.28625240446,
"max": 0.32223117346
},
{
"command": "pnpr@main",
"mean": 0.31028564376,
"stddev": 0.009469548065337143,
"median": 0.30938466346000004,
"user": 0.28557029999999994,
"system": 0.5997207,
"min": 0.29271501446,
"max": 0.33050377946
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.60425836288,
"stddev": 0.017291220753948924,
"median": 1.60551208788,
"user": 0.72296352,
"system": 0.7633069599999999,
"min": 1.5658125568799999,
"max": 1.62499998588
},
{
"command": "pacquet@main",
"mean": 1.5989996289800001,
"stddev": 0.01521227477332507,
"median": 1.60189582288,
"user": 0.7142629199999999,
"system": 0.77384506,
"min": 1.57561175188,
"max": 1.61620411888
},
{
"command": "pnpr@HEAD",
"mean": 0.26845058598000004,
"stddev": 0.006292343654277215,
"median": 0.26695132038,
"user": 0.22855861999999996,
"system": 0.49944066,
"min": 0.26179293088000005,
"max": 0.27913239188000005
},
{
"command": "pnpr@main",
"mean": 0.25801234838000003,
"stddev": 0.004551401418523312,
"median": 0.2565627838800001,
"user": 0.21991391999999993,
"system": 0.49799086,
"min": 0.25166541888000005,
"max": 0.26569497588
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.26448765276181824,
"stddev": 0.017784629070952577,
"median": 0.26749346758000003,
"user": 0.26901190909090905,
"system": 0.1788111,
"min": 0.23812365258000004,
"max": 0.30623447658
},
{
"command": "pacquet@main",
"mean": 0.26389674098000004,
"stddev": 0.011649840032077271,
"median": 0.26667637108000003,
"user": 0.28120690000000004,
"system": 0.1678578,
"min": 0.24130539758000003,
"max": 0.27779363258
},
{
"command": "pnpr@HEAD",
"mean": 0.09239636503161289,
"stddev": 0.0022022874510872824,
"median": 0.09217507158,
"user": 0.03963541935483871,
"system": 0.01684670967741935,
"min": 0.08915220658,
"max": 0.09712195758
},
{
"command": "pnpr@main",
"mean": 0.09400347399379312,
"stddev": 0.004351962904151993,
"median": 0.09289571158,
"user": 0.03979279310344828,
"system": 0.019032824137931028,
"min": 0.08691711258,
"max": 0.10544870058
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.1992863197577778,
"stddev": 0.00865511266684293,
"median": 0.20083115598,
"user": 0.2182691422222222,
"system": 0.03776483555555556,
"min": 0.18835308398000003,
"max": 0.21334104698000003
},
{
"command": "pacquet@main",
"mean": 0.21142884909111112,
"stddev": 0.013506816461837582,
"median": 0.21084158198000003,
"user": 0.23518314222222225,
"system": 0.03789027999999999,
"min": 0.19713155998,
"max": 0.24017436498000003
},
{
"command": "pnpm@HEAD",
"mean": 3.7640365400911104,
"stddev": 0.16412517004845262,
"median": 3.7934814809799997,
"user": 5.650472031111111,
"system": 0.34841339111111114,
"min": 3.55420606598,
"max": 4.01051667898
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.09148971932125,
"stddev": 0.007878738087925472,
"median": 0.09272104304,
"user": 0.09407746500000003,
"system": 0.041325366249999995,
"min": 0.08020538154000001,
"max": 0.10603417454000001
},
{
"command": "pacquet@main",
"mean": 0.08936088186258065,
"stddev": 0.007081781345079186,
"median": 0.08667390054,
"user": 0.09054035612903229,
"system": 0.044934556774193536,
"min": 0.08149848154,
"max": 0.10817572454
}
]
}Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.0928313315051613,
"stddev": 0.006032066922667595,
"median": 0.09079092386000001,
"user": 0.031890106451612894,
"system": 0.07083229419354838,
"min": 0.08775950286,
"max": 0.11461598186000001
},
{
"command": "pacquet@main",
"mean": 0.09064183026624999,
"stddev": 0.003931981359403324,
"median": 0.09011310886,
"user": 0.03082733125,
"system": 0.06912855124999998,
"min": 0.08545678286000001,
"max": 0.10622897986
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.484402621700001,
"stddev": 0.17474975406154986,
"median": 4.4134506458,
"user": 1.8503304399999998,
"system": 1.31346094,
"min": 4.3528876488,
"max": 4.8172808648
},
{
"command": "pacquet@main",
"mean": 4.467496928000001,
"stddev": 0.13957719684761252,
"median": 4.4059628353,
"user": 1.8462554399999997,
"system": 1.3399318399999998,
"min": 4.3615819128,
"max": 4.7290681618
},
{
"command": "pnpr@HEAD",
"mean": 3.4939520439999994,
"stddev": 0.10139495924168333,
"median": 3.4685201988,
"user": 1.77340464,
"system": 1.25719794,
"min": 3.4096237668,
"max": 3.7571762168
},
{
"command": "pnpr@main",
"mean": 3.4832935948999997,
"stddev": 0.06074968482945305,
"median": 3.4975880418000003,
"user": 1.7407341399999996,
"system": 1.30157124,
"min": 3.4036721388,
"max": 3.5876406008
}
]
}Scenario: GVS linker: fresh restore, hot cache + hot storeSame install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.11247998121818183,
"stddev": 0.003210331904048591,
"median": 0.11225957190000002,
"user": 0.1483763981818182,
"system": 0.14088731818181818,
"min": 0.1075156034,
"max": 0.11921410240000001
},
{
"command": "pacquet@main",
"mean": 0.11290228874782611,
"stddev": 0.006588408519329668,
"median": 0.11122510640000001,
"user": 0.15400566695652176,
"system": 0.13787973913043478,
"min": 0.10544566840000001,
"max": 0.1382124274
},
{
"command": "pnpr@HEAD",
"mean": 0.12161772463809528,
"stddev": 0.002961257541529291,
"median": 0.12036034840000001,
"user": 0.15704229428571428,
"system": 0.13994866666666667,
"min": 0.11668855840000002,
"max": 0.12851322240000002
},
{
"command": "pnpr@main",
"mean": 0.12220030063809524,
"stddev": 0.002295298407225188,
"median": 0.12213129140000001,
"user": 0.16062953238095237,
"system": 0.13644742857142855,
"min": 0.11706760240000001,
"max": 0.1271508184
}
]
}Scenario: Store only: unlocked direct deps, cold cache + hot storeStore-only install (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.2313382406600002,
"stddev": 0.040108206264703086,
"median": 1.24587168036,
"user": 0.5420145999999999,
"system": 0.22916372,
"min": 1.13198796286,
"max": 1.26323969286
},
{
"command": "pacquet@main",
"mean": 1.2378375365600003,
"stddev": 0.05823978299786668,
"median": 1.2446874973600002,
"user": 0.5801912,
"system": 0.23771551999999999,
"min": 1.15291214786,
"max": 1.33000541186
}
]
}Scenario: Cargo: repeat install, hot cache + hot storeFrozen repeat install of a Cargo workspace (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.033886950267234046,
"stddev": 0.0022762843814294696,
"median": 0.03378696448,
"user": 0.025149065531914906,
"system": 0.02065836765957446,
"min": 0.029417168480000002,
"max": 0.04128238448
},
{
"command": "pacquet@main",
"mean": 0.0327975713688889,
"stddev": 0.0023691410365747323,
"median": 0.03227021948,
"user": 0.023914095555555563,
"system": 0.020518006666666675,
"min": 0.02884698548,
"max": 0.03867842548000001
}
]
} |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18137 +/- ##
=======================================
Coverage 92.04% 92.04%
=======================================
Files 2420 2420
Lines 304792 304792
=======================================
+ Hits 280532 280537 +5
+ Misses 24260 24255 -5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PR Summary by QodoConsolidate repository configs and Husky hooks under .config
AI Description
Diagram
High-Level Assessment
Files changed (25)
|
[Medium impact] The PR appears safe to merge. Reviews (3) · Last reviewed commit: "chore: move the git-wt PR hook into .con..." · Reviewed by Greptile |
Code Review by Qodo
1. Existing clones can commit unchecked
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
`@zkochan/git-wt` 0.0.13 looks for the per-repo PR hook at .config/git-wt/pr-hook before .git-wt/pr-hook. Older versions only check .git-wt/pr-hook, so `git wt <pr>` skips the hook until git-wt is upgraded and the shell re-runs `git-wt init`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Code review by qodo was updated up to the latest commit bb8ce9e |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Moves four more repository config files, the husky hooks, and the git-wt PR hook from the root into
.config/, next to the pnpm config,nextest.toml, and the npm signing keys already there:cspell.json.config/cspell.jsoncommitlint.config.cjs.config/commitlint.config.cjs.pnpmfile.cjs.config/pnpm/pnpmfile.cjscrate-layers.toml.config/crate-layers.toml.husky/.config/husky/.git-wt/pr-hook.config/git-wt/pr-hookThese can move without losing editor or CI tooling support. The remaining root config files stay put: their tools only look in the root (
rustfmt.toml,clippy.toml,eslint.config.mjs,.vale.ini,renovate.json, …), or only the CLI accepts a custom path while editor plugins and the typos action do not (.taplo.toml,.typos.toml,dylint.toml,deny.toml,Cross.toml).Verified locally:
.config/cspell.json(cspell trace zstdnames it) and still ignoresvendor/**, soignorePathsstill resolve from the repo root.--configpath; this commit went through the hook.pnpm config get pnpmfilereturns the new path;pnpm install --frozen-lockfilepasses withpnpmfileChecksumunchanged.preparescript runshusky .config/husky, which setscore.hooksPathto.config/husky/_. A commit with a bare#NNNis rejected from the new location, and this branch was pushed through the moved pre-push hook. Clones that installed on an older commit keep pointing at.husky/_untilpnpm installruns again, and skip the hooks until then.@zkochan/git-wt0.0.13 (zkochan/git-wt PR 10) looks for.config/git-wt/pr-hookbefore.git-wt/pr-hook. With an older git-wt,git wt <pr>skips the hook until git-wt is upgraded and the shell re-runsgit-wt init.crate-layers checkand its tests pass;pnpm run lint:metaandts-test-scope.test.mjspass.Squash Commit Body
Checklist
Written by an agent (Claude Code, claude-opus-5-5).
🤖 Generated with Claude Code
Summary by CodeRabbit