Skip to content

build: tag untagged asserts for 3.0.0 release - #28065

Open
Daniel Madrid (dannimad) wants to merge 1 commit into
mainfrom
release-prep/3.0.0/1-tag-asserts
Open

build: tag untagged asserts for 3.0.0 release#28065
Daniel Madrid (dannimad) wants to merge 1 commit into
mainfrom
release-prep/3.0.0/1-tag-asserts

Conversation

@dannimad

Copy link
Copy Markdown
Contributor

Purpose

Step 1 of release prep for 3.0.0: tag any untagged asserts before the release, per policy (flub release prepare reported untagged asserts in @fluidframework/tree and @fluidframework/fluid-static).

Command run

pnpm run policy-check:asserts

(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.

Command run: pnpm run policy-check:asserts
Copilot AI lite review requested due to automatic review settings August 25, 2026 17:33
@dannimad
Daniel Madrid (dannimad) requested a review from a team as a code owner August 25, 2026 17:33
@github-actions github-actions Bot added area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct area: tools area: runtime Runtime related issues area: dds Issues related to distributed data structures area: repo Repo related work area: website area: dds: tree base: main PRs targeted against main branch labels Aug 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-static and @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.

@github-actions

Copy link
Copy Markdown
Contributor

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:

  • Correctness — logic errors, race conditions, lifecycle issues
  • Security — vulnerabilities, secret exposure, injection
  • API Compatibility — breaking changes, release tags, type design
  • Performance — algorithmic regressions, memory leaks
  • Testing — coverage gaps, hollow tests

How this works

  • Adjust the reviewer set by ticking/unticking boxes above. Reviewer toggles alone don't trigger anything.

  • Tick Start review below to dispatch the review fleet.

  • After review finishes, tick Start review again to request another run — it auto-resets after each dispatch.

  • This comment updates as new commits land; your reviewer selections are preserved.

  • Start review

@github-actions

Copy link
Copy Markdown
Contributor

Bundle size comparison

Base commit: 59f568754535161672b7bb0733b5cf1242f1c0f7
Head commit: 4077772684c0466020a90115fc1659bfb99d9e33

Notable changes

No bundles changed by ≥ 500 bytes parsed.

Per-bundle deltas

@fluid-example/bundle-size-tests

  • fluidFrameworkAllAlpha.js: parsed 790591 → 790563 (-28), gzip 217163 → 217201 (+38)
  • azureClient.js: parsed 633307 → 633302 (-5), gzip 169726 → 169796 (+70)
  • odspClient.js: parsed 604576 → 604685 (+109), gzip 162527 → 162666 (+139)
  • aqueduct.js: parsed 537183 → 537196 (+13), gzip 144292 → 144337 (+45)
  • fluidFramework.js: parsed 409151 → 409098 (-53), gzip 115982 → 115981 (-1)
  • sharedTree.js: parsed 398530 → 398470 (-60), gzip 113400 → 113392 (-8)
  • containerRuntime.js: parsed 314010 → 313988 (-22), gzip 86157 → 86155 (-2)
  • sharedString.js: parsed 175203 → 175210 (+7), gzip 49656 → 49662 (+6)
  • experimentalSharedTree.js: parsed 161812 → 161812 (0), gzip 46711 → 46711 (0)
  • matrix.js: parsed 159582 → 159589 (+7), gzip 45896 → 45903 (+7)
  • loader.js: parsed 147287 → 147303 (+16), gzip 40026 → 40035 (+9)
  • odspDriver.js: parsed 105655 → 105713 (+58), gzip 32926 → 32991 (+65)
  • directory.js: parsed 65635 → 65642 (+7), gzip 18481 → 18488 (+7)
  • 578.js: parsed 58686 → 58686 (0), gzip 17657 → 17657 (0)
  • odspPrefetchSnapshot.js: parsed 45884 → 45865 (-19), gzip 15335 → 15350 (+15)
  • map.js: parsed 45786 → 45793 (+7), gzip 14109 → 14116 (+7)
  • 252.js: parsed 44362 → 44362 (0), gzip 13735 → 13735 (0)
  • summarizerDelayLoadedModule.js: parsed 31287 → 31287 (0), gzip 7929 → 7929 (0)
  • socketModule.js: parsed 26992 → 26962 (-30), gzip 8019 → 8052 (+33)
  • createNewModule.js: parsed 12464 → 12464 (0), gzip 4792 → 4805 (+13)
  • summaryModule.js: parsed 3888 → 3888 (0), gzip 1874 → 1874 (0)
  • connectionState.js: parsed 909 → 909 (0), gzip 500 → 500 (0)
  • sharedTreeAttributes.js: parsed 845 → 852 (+7), gzip 493 → 503 (+10)
  • debugAssert.js: parsed 429 → 429 (0), gzip 299 → 299 (0)
  • FluidFramework-HashFallback.js: parsed 419 → 419 (0), gzip 313 → 313 (0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: dds: tree area: dds Issues related to distributed data structures area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct area: repo Repo related work area: runtime Runtime related issues area: tools area: website base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants