Skip to content

improve query performance and commit performance in some cases #8

improve query performance and commit performance in some cases

improve query performance and commit performance in some cases #8

Triggered via pull request June 19, 2024 16:23
Status Failure
Total duration 43s
Artifacts

test.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Tests.DataModelSimpleChanges.Writing2ChangesAtOnceWithMergedHistory
VerifyException : Directory: /home/runner/work/harmony/harmony/src/Crdt.Tests NotEqual: - Received: DataModelSimpleChanges.Writing2ChangesAtOnceWithMergedHistory.received.txt Verified: DataModelSimpleChanges.Writing2ChangesAtOnceWithMergedHistory.verified.txt FileContent: NotEqual: Received: DataModelSimpleChanges.Writing2ChangesAtOnceWithMergedHistory.received.txt Verified: DataModelSimpleChanges.Writing2ChangesAtOnceWithMergedHistory.verified.txt Compare Result: [ { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_1, TypeName: Word, Entity: { $type: Word, Text: first, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_3, IsRoot: true } ], + Hash: Hash_1, + ParentHash: Hash_Empty, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_3, EntityId: Guid_2, Change: { $type: SetWordTextChange, Text: first, EntityId: Guid_2, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_1, Item3: Guid_3 }, Id: Guid_3, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_1 }, DateTime: DateTimeOffset_1, - Hash: Hash_1, - ParentHash: Hash_Empty, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 }, { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_5, TypeName: Word, Entity: { $type: Word, Text: first, Note: a word note, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_6, IsRoot: false } ], + Hash: Hash_2, + ParentHash: Hash_1, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_6, EntityId: Guid_2, Change: { $type: SetWordNoteChange, Note: a word note, EntityId: Guid_2, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_2, Item3: Guid_6 }, Id: Guid_6, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_2 }, DateTime: DateTimeOffset_2, - Hash: Hash_2, - ParentHash: Hash_1, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 }, { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_7, TypeName: Word, Entity: { $type: Word, Text: second, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_8, IsRoot: false } ], + Hash: Hash_3, + ParentHash: Hash_2, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_8, EntityId: Guid_2, Change: { $type: SetWordTextChange, Text: second, EntityId: Guid_2, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_3, Item3: Guid_8 }, Id: Guid_8, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_3 }, DateTime: DateTimeOffset_3, - Hash: Hash_3, - ParentHash: Hash_2, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 }, { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_9, TypeName: Word,
Tests.DataModelSimpleChanges.WritingAChangeMakesASnapshot
VerifyException : Directory: /home/runner/work/harmony/harmony/src/Crdt.Tests NotEqual: - Received: DataModelSimpleChanges.WritingAChangeMakesASnapshot.received.txt Verified: DataModelSimpleChanges.WritingAChangeMakesASnapshot.verified.txt FileContent: NotEqual: Received: DataModelSimpleChanges.WritingAChangeMakesASnapshot.received.txt Verified: DataModelSimpleChanges.WritingAChangeMakesASnapshot.verified.txt Compare Result: [ { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_1, TypeName: Word, Entity: { $type: Word, Text: test-value, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_3, IsRoot: true } ], + Hash: Hash_1, + ParentHash: Hash_Empty, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_3, EntityId: Guid_2, Change: { $type: SetWordTextChange, Text: test-value, EntityId: Guid_2, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_1, Item3: Guid_3 }, Id: Guid_3, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_1 }, DateTime: DateTimeOffset_1, - Hash: Hash_1, - ParentHash: Hash_Empty, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 }, { $type: Word, Text: test-value, Id: Guid_2 } ]
Tests.DataModelSimpleChanges.WritingACommitWithMultipleChangesWorks
VerifyException : Directory: /home/runner/work/harmony/harmony/src/Crdt.Tests NotEqual: - Received: DataModelSimpleChanges.WritingACommitWithMultipleChangesWorks.received.txt Verified: DataModelSimpleChanges.WritingACommitWithMultipleChangesWorks.verified.txt FileContent: NotEqual: Received: DataModelSimpleChanges.WritingACommitWithMultipleChangesWorks.received.txt Verified: DataModelSimpleChanges.WritingACommitWithMultipleChangesWorks.verified.txt Compare Result: [ { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_1, TypeName: Word, Entity: { $type: Word, Text: first, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_3, IsRoot: true }, { $type: ObjectSnapshot, Id: Guid_4, TypeName: Word, Entity: { $type: Word, Text: second, Id: Guid_5 }, EntityId: Guid_5, EntityIsDeleted: false, CommitId: Guid_3, IsRoot: true } ], + Hash: Hash_1, + ParentHash: Hash_Empty, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_3, EntityId: Guid_2, Change: { $type: SetWordTextChange, Text: first, EntityId: Guid_2, EntityType: Word } }, { $type: ChangeEntity<IChange>, Index: 1, CommitId: Guid_3, EntityId: Guid_5, Change: { $type: SetWordTextChange, Text: second, EntityId: Guid_5, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_1, Item3: Guid_3 }, Id: Guid_3, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_1 }, DateTime: DateTimeOffset_1, - Hash: Hash_1, - ParentHash: Hash_Empty, Metadata: { $type: CommitMetadata }, ClientId: Guid_6 }, { $type: Word, Text: first, Id: Guid_2 }, { $type: Word, Text: second, Id: Guid_5 } ]
Tests.DataModelSimpleChanges.WriteMultipleCommits
VerifyException : Directory: /home/runner/work/harmony/harmony/src/Crdt.Tests NotEqual: - Received: DataModelSimpleChanges.WriteMultipleCommits.received.txt Verified: DataModelSimpleChanges.WriteMultipleCommits.verified.txt FileContent: NotEqual: Received: DataModelSimpleChanges.WriteMultipleCommits.received.txt Verified: DataModelSimpleChanges.WriteMultipleCommits.verified.txt Compare Result: [ { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_1, TypeName: Word, Entity: { $type: Word, Text: change 1, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_3, IsRoot: true } ], + Hash: Hash_1, + ParentHash: Hash_Empty, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_3, EntityId: Guid_2, Change: { $type: SetWordTextChange, Text: change 1, EntityId: Guid_2, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_1, Item3: Guid_3 }, Id: Guid_3, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_1 }, DateTime: DateTimeOffset_1, - Hash: Hash_1, - ParentHash: Hash_Empty, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 }, { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_5, TypeName: Word, Entity: { $type: Word, Text: change 2, Id: Guid_6 }, EntityId: Guid_6, EntityIsDeleted: false, CommitId: Guid_7, IsRoot: true } ], + Hash: Hash_2, + ParentHash: Hash_1, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_7, EntityId: Guid_6, Change: { $type: SetWordTextChange, Text: change 2, EntityId: Guid_6, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_2, Item3: Guid_7 }, Id: Guid_7, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_2 }, DateTime: DateTimeOffset_2, - Hash: Hash_2, - ParentHash: Hash_1, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 } ]
Tests.DataModelSimpleChanges.WritingA2ndChangeDoesNotEffectTheFirstSnapshot
VerifyException : Directory: /home/runner/work/harmony/harmony/src/Crdt.Tests NotEqual: - Received: DataModelSimpleChanges.WritingA2ndChangeDoesNotEffectTheFirstSnapshot.received.txt Verified: DataModelSimpleChanges.WritingA2ndChangeDoesNotEffectTheFirstSnapshot.verified.txt FileContent: NotEqual: Received: DataModelSimpleChanges.WritingA2ndChangeDoesNotEffectTheFirstSnapshot.received.txt Verified: DataModelSimpleChanges.WritingA2ndChangeDoesNotEffectTheFirstSnapshot.verified.txt Compare Result: [ { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_1, TypeName: Word, Entity: { $type: Word, Text: change1, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_3, IsRoot: true } ], + Hash: Hash_1, + ParentHash: Hash_Empty, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_3, EntityId: Guid_2, Change: { $type: SetWordTextChange, Text: change1, EntityId: Guid_2, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_1, Item3: Guid_3 }, Id: Guid_3, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_1 }, DateTime: DateTimeOffset_1, - Hash: Hash_1, - ParentHash: Hash_Empty, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 }, { $type: Commit, Snapshots: [ { $type: ObjectSnapshot, Id: Guid_5, TypeName: Word, Entity: { $type: Word, Text: change2, Id: Guid_2 }, EntityId: Guid_2, EntityIsDeleted: false, CommitId: Guid_6, IsRoot: false } ], + Hash: Hash_2, + ParentHash: Hash_1, ChangeEntities: [ { $type: ChangeEntity<IChange>, CommitId: Guid_6, EntityId: Guid_2, Change: { $type: SetWordTextChange, Text: change2, EntityId: Guid_2, EntityType: Word } } ], CompareKey: { $type: ValueTuple<DateTimeOffset, long, Item1: DateTimeOffset_2, Item3: Guid_6 }, Id: Guid_6, HybridDateTime: { $type: HybridDateTime, DateTime: DateTimeOffset_2 }, DateTime: DateTimeOffset_2, - Hash: Hash_2, - ParentHash: Hash_1, Metadata: { $type: CommitMetadata }, ClientId: Guid_4 }, { $type: Word, Text: change2, Id: Guid_2 } ]
build
Process completed with exit code 1.