Repository navigation
Commit ee43637
authored
fix(release-script): guard the list that stages the showcase, and put back what the post-release pass rewrote (#703)
Two holes around web/showcase, both surfaced by cutting v2.4.1.
The release commit's staging list is now built by Get-ReleaseCommitPathspecs
rather than inline, and release-script-check.yml lifts it by AST and runs it for
real: a list carrying any :(exclude), one that stops naming web/showcase, or one
whose `git add --dry-run` leaves a rewritten showcase file out now fails the
check. The step that already owned these pathspecs runs Get-GeneratedPagePathspecs
on its own, where the exclusion is correct - which is why it stayed green while
the release commit was losing 133 files. Proven against three sabotages: the
exclusion put back as :(exclude)web/showcase, caught by the pattern; the entry
narrowed to web/showcase/pdf, caught by the name; and the exclusion written
:(exclude,glob)web/showcase/**, which the pattern does not match and the dry run
catches.
-PostReleaseOnly rebuilt every preview through Sync-ShowcaseSite and committed
none of them - those belong to the tag - but nothing put them back, so the
documented last step of every release left ~125 modified files behind, which the
runbook reads as the signature of a bumped-but-unstaged file. Restore-CommittedShowcase
restores them, tracked files only, so a preview for an example added since the tag
survives.
The post-release `add` is split the same way as the release one. Nothing in its
list stands under the showcase today, so its exclusion cancels nothing - but a
path added there later would be dropped in silence, which is the defect above.
ReleaseAssetStepGuardTest compared the source offset of the `knowledge` staging
literal against Step 5c. That literal now sits in the extracted function, above the
flow, so the comparison is against the call that builds the list - where the
staging actually happens.1 parent 3815fe8 commit ee43637
3 files changed
Lines changed: 200 additions & 98 deletions
File tree
- .github/workflows
- core/src/test/java/com/demcha/documentation
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
533 | 577 | | |
534 | 578 | | |
535 | 579 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
196 | 204 | | |
197 | 205 | | |
198 | 206 | | |
199 | | - | |
| 207 | + | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
| |||
0 commit comments