Skip to content

fix(prerelease): allow empty prerelease browse grid in verify-build (#3168) - #3173

Merged
Thomas Jung (jung-thomas) merged 1 commit into
DEVfrom
worktree-issue-3168-empty-prerelease
Nov 22, 2026
Merged

Thomas Jung (jung-thomas) merged 1 commit into
DEVfrom
worktree-issue-3168-empty-prerelease

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Follow-up to #3170 (merged). The DEV deploy of #3168 failed at verify-qa-build.ts: the prerelease channel built 0 cards (DEV has no ROLE_GATED tutorials yet), and the verify step treated an empty #browse-data grid as a hard failure ("static/prerelease would ship empty → /tutorials-prerelease/ 404").

A prerelease channel legitimately has zero cards until an author marks a tutorial visibility=ROLE_GATED. This relaxes the check for prerelease only:

  • checkBrowseDataTag(html, channel, allowEmpty=false) — prerelease passes allowEmpty=true.
  • Still fails on a missing script tag or a non-array all (real build breaks — browse.json never emitted).
  • QA unchanged (allowEmpty=false): an empty QA grid is still a contribution-fetch failure.

Tests: 14/14 in verify-qa-build.test.ts — prerelease empty-grid now returns []; added absent-tag + malformed-all still-fail cases; QA empty-grid still fails. 17/17 static guards pass.

After merge: re-run the DEV deploy; the prerelease shell ships as an empty gated navigator, ready for the first ROLE_GATED tutorial.

…3168)

A prerelease channel legitimately has zero cards until an author marks a
tutorial visibility=ROLE_GATED. verify-qa-build treated an empty #browse-data
grid as a hard failure, blocking the DEV deploy ('static/prerelease would ship
empty'). checkBrowseDataTag now takes allowEmpty (prerelease=true); it still
fails on an absent tag or a non-array 'all' (real build breaks). QA stays
strict (allowEmpty=false) — an empty QA grid is still a contribution-fetch
failure.
@jung-thomas
Thomas Jung (jung-thomas) merged commit 93572a6 into DEV Nov 22, 2026
3 of 4 checks passed
@jung-thomas
Thomas Jung (jung-thomas) deleted the worktree-issue-3168-empty-prerelease branch November 22, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant