@@ -594,11 +594,11 @@ export class AllureReport {
594594 globalAttachmentIds = [ ] ,
595595 globalErrors = [ ] ,
596596 indexAttachmentByTestResult = { } ,
597- indexTestResultByHistoryId = { } ,
597+ indexTestResultByHistoryHash = { } ,
598598 indexTestResultByTestCase = { } ,
599599 indexAttachmentByFixture = { } ,
600600 indexFixturesByTestResult = { } ,
601- indexKnownByHistoryId = { } ,
601+ indexKnownByHistoryHash = { } ,
602602 qualityGateResults = [ ] ,
603603 testResultIdsIngestOrder = [ ] ,
604604 } : AllureStoreDump ) : [ AllureStoreDumpFiles , unknown ] [ ] => [
@@ -612,11 +612,11 @@ export class AllureReport {
612612 [ AllureStoreDumpFiles . GlobalAttachments , globalAttachmentIds ] ,
613613 [ AllureStoreDumpFiles . GlobalErrors , globalErrors ] ,
614614 [ AllureStoreDumpFiles . IndexAttachmentsByTestResults , indexAttachmentByTestResult ] ,
615- [ AllureStoreDumpFiles . IndexTestResultsByHistoryId , indexTestResultByHistoryId ] ,
615+ [ AllureStoreDumpFiles . IndexTestResultsByHistoryId , indexTestResultByHistoryHash ] ,
616616 [ AllureStoreDumpFiles . IndexTestResultsByTestCase , indexTestResultByTestCase ] ,
617617 [ AllureStoreDumpFiles . IndexAttachmentsByFixture , indexAttachmentByFixture ] ,
618618 [ AllureStoreDumpFiles . IndexFixturesByTestResult , indexFixturesByTestResult ] ,
619- [ AllureStoreDumpFiles . IndexKnownByHistoryId , indexKnownByHistoryId ] ,
619+ [ AllureStoreDumpFiles . IndexKnownByHistoryId , indexKnownByHistoryHash ] ,
620620 [ AllureStoreDumpFiles . QualityGateResults , qualityGateResults ] ,
621621 [ AllureStoreDumpFiles . TestResultIngestOrder , testResultIdsIngestOrder ] ,
622622 ] ;
@@ -812,6 +812,8 @@ export class AllureReport {
812812 } ) ;
813813 }
814814 } , { } ) ;
815+ const indexTestResultByHistoryHash = JSON . parse ( indexTestResultsByHistoryId . toString ( "utf8" ) ) ;
816+ const indexKnownByHistoryHash = JSON . parse ( indexKnownByHistoryIdEntry . toString ( "utf8" ) ) ;
815817 const dumpState : AllureStoreDump = {
816818 testResults : JSON . parse ( testResultsEntry . toString ( "utf8" ) ) ,
817819 testCases : JSON . parse ( testCasesEntry . toString ( "utf8" ) ) ,
@@ -823,11 +825,13 @@ export class AllureReport {
823825 globalAttachmentIds : JSON . parse ( globalAttachmentsEntry . toString ( "utf8" ) ) ,
824826 globalErrors : JSON . parse ( globalErrorsEntry . toString ( "utf8" ) ) ,
825827 indexAttachmentByTestResult : JSON . parse ( indexAttachmentsEntry . toString ( "utf8" ) ) ,
826- indexTestResultByHistoryId : JSON . parse ( indexTestResultsByHistoryId . toString ( "utf8" ) ) ,
828+ indexTestResultByHistoryHash,
829+ indexTestResultByHistoryId : indexTestResultByHistoryHash ,
827830 indexTestResultByTestCase : JSON . parse ( indexTestResultsByTestCaseEntry . toString ( "utf8" ) ) ,
828831 indexAttachmentByFixture : JSON . parse ( indexAttachmentsByFixtureEntry . toString ( "utf8" ) ) ,
829832 indexFixturesByTestResult : JSON . parse ( indexFixturesByTestResultEntry . toString ( "utf8" ) ) ,
830- indexKnownByHistoryId : JSON . parse ( indexKnownByHistoryIdEntry . toString ( "utf8" ) ) ,
833+ indexKnownByHistoryHash,
834+ indexKnownByHistoryId : indexKnownByHistoryHash ,
831835 qualityGateResults : JSON . parse ( qualityGateResultsEntry . toString ( "utf8" ) ) ,
832836 testResultIdsIngestOrder : testResultIngestOrderEntry
833837 ? JSON . parse ( testResultIngestOrderEntry . toString ( "utf8" ) )
0 commit comments