build: tag untagged asserts for 3.0.0 release - #28065
build: tag untagged asserts for 3.0.0 release#28065Daniel Madrid (dannimad) wants to merge 1 commit into
Conversation
Command run: pnpm run policy-check:asserts
There was a problem hiding this comment.
Pull request overview
Tags previously untagged assert() calls with generated short codes as part of 3.0.0 release preparation, ensuring the repository satisfies the assert-tagging policy check and that tagged assertions can be expanded back to human-readable messages in test tooling.
Changes:
- Converted existing string-based asserts to tagged numeric short codes in
@fluidframework/fluid-staticand@fluidframework/tree. - Updated the runtime test short-code expansion map to include the newly generated tags (and remove an unused one).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/runtime/test-runtime-utils/src/assertionShortCodesMap.ts | Adds new short-code → message entries for the newly tagged asserts (and removes an unused entry). |
| packages/framework/fluid-static/src/treeRootDataObject.ts | Tags an existing assert with 0xd37 for release-time short-code assertion behavior. |
| packages/dds/tree/src/shared-tree/history.ts | Tags an existing assert with 0xd35 to short-code the failure message. |
| packages/dds/tree/src/shared-tree-core/branchCommitCounter.ts | Tags an existing assert with 0xd36 to short-code the failure message. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Hi! Thank you for opening this PR. Want me to review it? Based on the diff (18 lines, 4 files), I've queued these reviewers:
How this works
|
Bundle size comparisonBase commit: Notable changesNo bundles changed by ≥ 500 bytes parsed. Per-bundle deltas
|
Purpose
Step 1 of release prep for 3.0.0: tag any untagged asserts before the release, per policy (
flub release preparereported untagged asserts in@fluidframework/treeand@fluidframework/fluid-static).Command run
(which runs
flub generate assertTags --all && npm run format)Merge order
This PR must merge before the version-bump PR (
release-prep/3.0.0/4-bump-<NEXT_VERSION>).Note
This is a preflight PR created ahead of the other release-blocking PRs (#27982, #28037, #28044) merging. It may need to be regenerated/updated once those land, since they could introduce additional untagged asserts.