Skip to content

tag asserts#25506

Merged
dannimad merged 1 commit intomicrosoft:mainfrom
dannimad:asserts261
Sep 22, 2025
Merged

tag asserts#25506
dannimad merged 1 commit intomicrosoft:mainfrom
dannimad:asserts261

Conversation

@dannimad
Copy link
Copy Markdown
Contributor

pnpm run policy-check:asserts.

Fixing some duplicate asserts as well.

@dannimad dannimad requested a review from a team as a code owner September 22, 2025 17:47
Copilot AI review requested due to automatic review settings September 22, 2025 17:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses assert tagging requirements by converting string literal error messages to hex codes in assert statements across multiple files. The changes also include cleanup of duplicate assert entries in the assertion short codes map.

  • Replace string literal error messages with hex codes in assert statements following coding guidelines
  • Remove duplicate entries from the assertion short codes map
  • Add new hex code mappings for the converted assert statements

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/runtime/test-runtime-utils/src/assertionShortCodesMap.ts Removes duplicate assert entries and adds new hex code mappings
packages/runtime/container-runtime/src/blobManager/blobManager.ts Converts string literal assert to hex code 0xc53
packages/dds/tree/src/simple-tree/core/treeNodeKernel.ts Converts multiple string literal asserts to hex codes 0xc4f, 0xc50, 0xc51, 0xc52
packages/dds/tree/src/simple-tree/api/dirtyIndex.ts Converts string literal asserts to hex codes 0xc48-0xc4e
packages/dds/task-manager/src/taskManager.ts Converts multiple string literal asserts to hex codes 0xc3b-0xc47

@github-actions github-actions bot added area: dds Issues related to distributed data structures area: dds: tree area: runtime Runtime related issues base: main PRs targeted against main branch labels Sep 22, 2025
@dannimad dannimad enabled auto-merge (squash) September 22, 2025 20:47
@dannimad dannimad merged commit 120ca52 into microsoft:main Sep 22, 2025
33 checks passed
anthony-murphy-agent pushed a commit to anthony-murphy-agent/FluidFramework that referenced this pull request Jan 14, 2026
`pnpm run policy-check:asserts`. 

Fixing some duplicate asserts as well.
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: runtime Runtime related issues base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants