Repository navigation
chore(deps): adopt adr-tools 0.0.12 and drop the per-topic ADR counts - #2416
Merged
Merged
Conversation
0.0.11 removed the ADR counts from effective.md and graph.md but left renderTopicMarkdown() writing "N ADRs in this topic" into all 15 committed docs/adr/graph/*.md pages, so those kept drifting between parallel branches. PR #2406 hit it: graph/build.md conflicted with 71 / 70 / 72. adr-tools 0.0.12 (kompiro/adr-tools#30) drops that fourth count and replaces the two named-file assertions with a sweep over every generated file, so a future output is covered without anyone remembering to list it. The lock diff is large but nothing moved version. Comparing name@version across the lock with peer suffixes stripped, the only resolution changes are adr-tools 0.0.11 -> 0.0.12 and the drop of @babel/helper-validator-identifier and @types/estree, which nothing needs any more. The remaining ~550 lines are pnpm re-keying peer suffixes; a fresh install on main is a no-op, so this is the graph change re-keying, not pre-existing drift. Refs #2407 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This branch was successfully 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.
Purpose
Refs #2407
Summary
#2407 adopted adr-tools 0.0.11 to stop writing ADR counts into generated files. It only got three of the four.
renderTopicMarkdown()still wroteN ADRs in this topicinto every one of the 15 committeddocs/adr/graph/*.mdpages, so those kept drifting exactly as before.It is not hypothetical: #2406 conflicted on
docs/adr/graph/build.mdwith71 / 70 / 72 ADRs in this topic— two branches regenerating against different bases, each locally correct, under 0.0.11.Fixed upstream in kompiro/adr-tools#30, released as 0.0.12. This adopts it and regenerates.
Changes
package.json—@kompiro/adr-tools:^0.0.11→^0.0.12docs/adr/graph/*.md— 15 files, one line each: the count drops out of the header, leaving "Solid nodes belong to<topic>; gray dashed nodes are ghosts ..."pnpm-lock.yaml— see belowAbout the lock diff
551 lines. Four transitive resolutions move, in addition to adr-tools itself:
shiki@astrojs/[email protected],@expressive-code/[email protected]picomatch@astrojs/[email protected]/0.10.2@types/estreeestree-walker,@mdx-js/mdx,@rollup/pluginutils, and ~10 more@babel/helper-validator-identifier@babel/[email protected],@babel/[email protected]All four are consumers switching to a version already present in the graph — a dedupe, not a fresh upgrade. Everything else in the diff is pnpm rewriting peer suffixes (
([email protected])and friends).Only
shikihas user-visible output: it is docs-site's syntax highlighter, and nothing in PR CI builds docs-site (pnpm buildstops at cli;pages.ymlfires on push to main), so a regression there would land post-merge. Verified by hand instead:ba971a8b) and at this branch, then diffed the twodisttreesastro-imp3cvv2→astro-j4iriv6c) and the matching asset content hashpagefind-entry.json, whoseen/jakeys are emitted in the other order; hashes and page counts are equaldist), so the comparison above is measuring the dependency change and not build noiseCorrection
An earlier revision of this description claimed "nothing moved version", based on comparing the set of
name@versionpackage keys. That method is structurally blind to this class of change: when a consumer switches to a version that already exists in the graph, the key set is unchanged or even shrinks, while the actual resolution moves. Caught in review. The table above comes from diffing the dependency edges inside the snapshots instead.Why upstream got a test change too
The upstream bug was not "one file was forgotten" — it was that the assertions were per-file, so coverage depended on someone enumerating the outputs. 0.0.12 replaces them with a sweep over everything
buildGeneratedFilesreturns, with a length guard so it cannot pass vacuously. A new generated file is covered by default now.Verification
pnpm adr:regenerate→ noN ADRsstring remains anywhere underdocs/adr/pnpm adr:validate— 315 ADRs, 0 errorspnpm adr:check-assumptions— 649 OK, 0 failingpnpm build(exit 0),pnpm test(9 suites, exit 0)pnpm --filter @karasu-tools/docs-site run build(exit 0, 71 pages) — not run by CI on PRs, see abovepnpm changeset status --since=main— no packages to bumpScope filter (new-feature PRs only)
Dependency & license impact
Manual Verification Checklist
main(the shiki move is not exercised by PR CI)TPL impact
Related Docs