Commit e569cac
feat(scripts): sync docs image tags at version time so check:docs-image-tag cannot misfire (#9102)
* feat(scripts): sync docs image tags at version time so the gate cannot misfire
`check:docs-image-tag` (#9018) pins the docs' concrete image/CLI tags to
`packages/cli`'s version, so a bump reddens it until the doc surfaces move.
The red could not land on the change that caused it: `changeset version`
bumps the version on a release PR that gets no CI (changesets/action opens
it with the default GITHUB_TOKEN, per sync-template-versions.mjs's own
header), so the bump merged green and the gate reddened on the next
ordinary PR, naming files that author never touched.
Adds scripts/sync-docs-image-tags.mjs to the root `version` chain, beside
the two sync scripts already there -- the shape this repo chose for the
identical drift class in #2907. It imports SURFACES, PATTERNS,
VERSION_SOURCE, extractOccurrences and checkSurfaces from the gate, so the
rewriter and the gate read one list and its verdict IS the gate's.
Version-time sync only: no publish, no tag, no Version Packages PR (#6170).
check-docs-image-tag.mjs gains an entry-point guard and exports
VERSION_SOURCE. Both additive: importing it previously ran main() and
exited the process, which made its exports unusable by the one consumer
they were added for.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011RB4waLuNbdruCo6X9oobm
* test(scripts): name the inert-rewriter failure instead of crashing on it
An ablation that made rewriteText inert died of a TypeError indexing an
empty `changed` array, two limbs before the byte-identity control ran.
Optional chaining so the self-test REPORTS the inert case by name.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011RB4waLuNbdruCo6X9oobm
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7677f57 commit e569cac
4 files changed
Lines changed: 645 additions & 8 deletions
File tree
- .github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
351 | 374 | | |
352 | 375 | | |
353 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
718 | 725 | | |
719 | 726 | | |
720 | 727 | | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
725 | 745 | | |
0 commit comments