Skip to content

merge-tree: Add regression tests for bugs with zero length obliterate #22787

Merged
jzaffiro merged 5 commits into
microsoft:mainfrom
jzaffiro:wordObliterateBug
Oct 14, 2024
Merged

merge-tree: Add regression tests for bugs with zero length obliterate #22787
jzaffiro merged 5 commits into
microsoft:mainfrom
jzaffiro:wordObliterateBug

Conversation

@jzaffiro
Copy link
Copy Markdown
Contributor

@jzaffiro jzaffiro commented Oct 11, 2024

Using the sided obliterate function in shared string fails currently with two different errors:

  • 0x2d8: Empty change event should not be emitted
  • 0x045: On insert, seq number already assigned!

Tests in sharedString.spec.ts currently repro the 0x2d8 error only.
AB#19742

@jzaffiro jzaffiro requested a review from a team as a code owner October 11, 2024 20:03
@github-actions github-actions Bot added area: dds Issues related to distributed data structures area: dds: sharedstring base: main PRs targeted against main branch labels Oct 11, 2024
assert.equal(sharedString2.getText(), "01AAA2456789", "obliterate failed");
});

it.skip("zero length obliterate in the middle of the string", () => {
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.

This should be the only test. start and end are not supported, and the other tests don't actually test start and end anyway.

@msfluid-bot
Copy link
Copy Markdown
Collaborator

msfluid-bot commented Oct 11, 2024

@fluid-example/bundle-size-tests: +245 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 459.92 KB 459.95 KB +35 Bytes
azureClient.js 556.79 KB 556.84 KB +49 Bytes
connectionState.js 724 Bytes 724 Bytes No change
containerRuntime.js 259.19 KB 259.2 KB +14 Bytes
fluidFramework.js 406.05 KB 406.06 KB +14 Bytes
loader.js 134.24 KB 134.25 KB +14 Bytes
map.js 42.46 KB 42.46 KB +7 Bytes
matrix.js 148.63 KB 148.64 KB +7 Bytes
odspClient.js 523.75 KB 523.8 KB +49 Bytes
odspDriver.js 97.84 KB 97.86 KB +21 Bytes
odspPrefetchSnapshot.js 42.81 KB 42.82 KB +14 Bytes
sharedString.js 164.82 KB 164.83 KB +7 Bytes
sharedTree.js 396.51 KB 396.51 KB +7 Bytes
Total Size 3.31 MB 3.31 MB +245 Bytes

Baseline commit: a754dfe

Generated by 🚫 dangerJS against 5bd7874


beforeEach(() => {
dataStoreRuntime1 = new MockFluidDataStoreRuntime();
dataStoreRuntime1.options = {
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.

Rather than enable for all the existing tests in this describe block, can you create a new one?

@jzaffiro jzaffiro enabled auto-merge (squash) October 14, 2024 14:24
@jzaffiro jzaffiro merged commit 673cd41 into microsoft:main Oct 14, 2024
@jzaffiro jzaffiro deleted the wordObliterateBug branch October 14, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: dds: sharedstring area: dds Issues related to distributed data structures base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants