@@ -405,11 +405,11 @@ export class AllureReport {
405405 indexAttachmentByTestResult = { } ,
406406 indexTestResultByHistoryId = { } ,
407407 indexTestResultByTestCase = { } ,
408- indexLatestEnvTestResultByHistoryId = { } ,
409408 indexAttachmentByFixture = { } ,
410409 indexFixturesByTestResult = { } ,
411410 indexKnownByHistoryId = { } ,
412411 qualityGateResults = [ ] ,
412+ testResultIdsIngestOrder = [ ] ,
413413 } : AllureStoreDump ) : [ AllureStoreDumpFiles , unknown ] [ ] => [
414414 [ AllureStoreDumpFiles . TestResults , testResults ] ,
415415 [ AllureStoreDumpFiles . TestCases , testCases ] ,
@@ -423,11 +423,11 @@ export class AllureReport {
423423 [ AllureStoreDumpFiles . IndexAttachmentsByTestResults , indexAttachmentByTestResult ] ,
424424 [ AllureStoreDumpFiles . IndexTestResultsByHistoryId , indexTestResultByHistoryId ] ,
425425 [ AllureStoreDumpFiles . IndexTestResultsByTestCase , indexTestResultByTestCase ] ,
426- [ AllureStoreDumpFiles . IndexLatestEnvTestResultsByHistoryId , indexLatestEnvTestResultByHistoryId ] ,
427426 [ AllureStoreDumpFiles . IndexAttachmentsByFixture , indexAttachmentByFixture ] ,
428427 [ AllureStoreDumpFiles . IndexFixturesByTestResult , indexFixturesByTestResult ] ,
429428 [ AllureStoreDumpFiles . IndexKnownByHistoryId , indexKnownByHistoryId ] ,
430429 [ AllureStoreDumpFiles . QualityGateResults , qualityGateResults ] ,
430+ [ AllureStoreDumpFiles . TestResultIngestOrder , testResultIdsIngestOrder ] ,
431431 ] ;
432432 let dumpError : unknown ;
433433
@@ -564,9 +564,6 @@ export class AllureReport {
564564 const indexTestResultsByTestCaseEntry = await requiredEntryData (
565565 AllureStoreDumpFiles . IndexTestResultsByTestCase ,
566566 ) ;
567- const indexLatestEnvTestResultsByHistoryIdEntry = await requiredEntryData (
568- AllureStoreDumpFiles . IndexLatestEnvTestResultsByHistoryId ,
569- ) ;
570567 const indexAttachmentsByFixtureEntry = await requiredEntryData (
571568 AllureStoreDumpFiles . IndexAttachmentsByFixture ,
572569 ) ;
@@ -575,6 +572,7 @@ export class AllureReport {
575572 ) ;
576573 const indexKnownByHistoryIdEntry = await requiredEntryData ( AllureStoreDumpFiles . IndexKnownByHistoryId ) ;
577574 const qualityGateResultsEntry = await requiredEntryData ( AllureStoreDumpFiles . QualityGateResults ) ;
575+ const testResultIngestOrderEntry = await optionalEntryData ( AllureStoreDumpFiles . TestResultIngestOrder ) ;
578576 const attachmentsLinks = JSON . parse ( attachmentsEntry . toString ( "utf8" ) ) as AllureStoreDump [ "attachments" ] ;
579577
580578 const attachmentsEntries = dumpEntriesList . reduce ( ( acc , [ entryName , entry ] ) => {
@@ -591,11 +589,11 @@ export class AllureReport {
591589 case AllureStoreDumpFiles . IndexAttachmentsByTestResults :
592590 case AllureStoreDumpFiles . IndexTestResultsByHistoryId :
593591 case AllureStoreDumpFiles . IndexTestResultsByTestCase :
594- case AllureStoreDumpFiles . IndexLatestEnvTestResultsByHistoryId :
595592 case AllureStoreDumpFiles . IndexAttachmentsByFixture :
596593 case AllureStoreDumpFiles . IndexFixturesByTestResult :
597594 case AllureStoreDumpFiles . IndexKnownByHistoryId :
598595 case AllureStoreDumpFiles . QualityGateResults :
596+ case AllureStoreDumpFiles . TestResultIngestOrder :
599597 return acc ;
600598 default :
601599 if ( entry . isDirectory || ! attachmentsLinks [ entryName ] || attachmentsLinks [ entryName ] . missed ) {
@@ -620,11 +618,13 @@ export class AllureReport {
620618 indexAttachmentByTestResult : JSON . parse ( indexAttachmentsEntry . toString ( "utf8" ) ) ,
621619 indexTestResultByHistoryId : JSON . parse ( indexTestResultsByHistoryId . toString ( "utf8" ) ) ,
622620 indexTestResultByTestCase : JSON . parse ( indexTestResultsByTestCaseEntry . toString ( "utf8" ) ) ,
623- indexLatestEnvTestResultByHistoryId : JSON . parse ( indexLatestEnvTestResultsByHistoryIdEntry . toString ( "utf8" ) ) ,
624621 indexAttachmentByFixture : JSON . parse ( indexAttachmentsByFixtureEntry . toString ( "utf8" ) ) ,
625622 indexFixturesByTestResult : JSON . parse ( indexFixturesByTestResultEntry . toString ( "utf8" ) ) ,
626623 indexKnownByHistoryId : JSON . parse ( indexKnownByHistoryIdEntry . toString ( "utf8" ) ) ,
627624 qualityGateResults : JSON . parse ( qualityGateResultsEntry . toString ( "utf8" ) ) ,
625+ testResultIdsIngestOrder : testResultIngestOrderEntry
626+ ? JSON . parse ( testResultIngestOrderEntry . toString ( "utf8" ) )
627+ : [ ] ,
628628 } ;
629629 const dumpTempDir = await mkdtemp ( join ( tmpdir ( ) , basename ( dump , ".zip" ) ) ) ;
630630 const resultsAttachments : Record < string , ResultFile > = { } ;
0 commit comments