slnodejs 6.1.163 → 6.1.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser-agent/dist/browser-agent-all.js +81 -20
- package/browser-agent/dist/browser-agent-all.min.js +24 -24
- package/browser-agent/package.json +1 -1
- package/package.json +1 -1
- package/tsOutputs/build-scanner/build-diff-process.js +6 -20
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js +68 -86
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +7 -2
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +13 -4
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js +69 -0
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js.map +1 -0
- package/tsOutputs/cli-parse/executors/base-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +1 -3
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.d.ts +2 -0
- package/tsOutputs/common/constants/sl-env-vars.js +4 -0
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/contracts.d.ts +1 -0
- package/tsOutputs/common/footprints-process/index.d.ts +1 -0
- package/tsOutputs/common/footprints-process/index.js +41 -0
- package/tsOutputs/common/footprints-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.d.ts +9 -0
- package/tsOutputs/common/footprints-process-v6/hits-converter.js +12 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.d.ts +4 -3
- package/tsOutputs/common/footprints-process-v6/index.js +51 -13
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.d.ts +3 -3
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js +0 -7
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.d.ts +3 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js +3 -2
- package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy-interface.d.ts +1 -0
- package/tsOutputs/common/http/dry-run-proxy.js +44 -0
- package/tsOutputs/common/http/dry-run-proxy.js.map +1 -1
- package/tsOutputs/common/state-tracker.d.ts +1 -0
- package/tsOutputs/common/state-tracker.js +11 -2
- package/tsOutputs/common/state-tracker.js.map +1 -1
- package/tsOutputs/test-listener/agent.d.ts +3 -2
- package/tsOutputs/test-listener/agent.js +14 -7
- package/tsOutputs/test-listener/agent.js.map +1 -1
- package/tsOutputs/test-listener/api.js +3 -1
- package/tsOutputs/test-listener/api.js.map +1 -1
- package/tsOutputs/test-listener/bootstrap.js +1 -0
- package/tsOutputs/test-listener/bootstrap.js.map +1 -1
- package/tsOutputs/test-listener/remote-agent.d.ts +2 -1
- package/tsOutputs/test-listener/remote-agent.js +14 -2
- package/tsOutputs/test-listener/remote-agent.js.map +1 -1
|
@@ -43067,7 +43067,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43067
43067
|
this.footprintsProcess.stop(function () { });
|
|
43068
43068
|
};
|
|
43069
43069
|
BrowserAgentInstanceFpv6.prototype.submitFootprints = function () {
|
|
43070
|
-
this.footprintsProcess.submitQueuedFootprints();
|
|
43070
|
+
this.footprintsProcess.submitQueuedFootprints(this.stateTracker.currentExecution);
|
|
43071
43071
|
};
|
|
43072
43072
|
BrowserAgentInstanceFpv6.prototype.submitFootprintsSync = function () {
|
|
43073
43073
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -43079,7 +43079,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43079
43079
|
return [4, this.footprintsProcess.flushCurrentFootprints()];
|
|
43080
43080
|
case 1:
|
|
43081
43081
|
_a.sent();
|
|
43082
|
-
return [4, this.footprintsProcess.submitQueuedFootprints()];
|
|
43082
|
+
return [4, this.footprintsProcess.submitQueuedFootprints(this.stateTracker.currentExecution)];
|
|
43083
43083
|
case 2:
|
|
43084
43084
|
_a.sent();
|
|
43085
43085
|
return [3, 4];
|
|
@@ -47731,6 +47731,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47731
47731
|
SlEnvVars.getDisableHookDependencyGuard = function () {
|
|
47732
47732
|
return parsing_utils_1.ParsingUtils.parseBoolean(SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD);
|
|
47733
47733
|
};
|
|
47734
|
+
SlEnvVars.useSlMapping = function () {
|
|
47735
|
+
return parsing_utils_1.ParsingUtils.parseBoolean(SlEnvVars.USE_SL_MAPPING);
|
|
47736
|
+
};
|
|
47734
47737
|
var _a;
|
|
47735
47738
|
SlEnvVars.HTTP_TIMEOUT = 'SL_httpTimeout';
|
|
47736
47739
|
SlEnvVars.HTTP_MAX_ATTEMPTS = 'SL_HttpMaxAttempts';
|
|
@@ -47748,6 +47751,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47748
47751
|
SlEnvVars.FOOTPRINTS_BUFFER_THRESHOLD_MB = 'SL_footprintsBufferThresholdMb';
|
|
47749
47752
|
SlEnvVars.BLOCK_BROWSER_HTTP_TRAFFIC = 'SL_blockBrowserHttpTraffic';
|
|
47750
47753
|
SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD = 'SL_disableHookDependencyGuard';
|
|
47754
|
+
SlEnvVars.USE_SL_MAPPING = 'SL_useSlMapping';
|
|
47751
47755
|
SlEnvVars.CIA = (_a = (function () {
|
|
47752
47756
|
function class_1() {
|
|
47753
47757
|
}
|
|
@@ -49372,6 +49376,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49372
49376
|
var HitsConverter = (function () {
|
|
49373
49377
|
function HitsConverter(relativePathResolver, sourceMapData, projectRoot, logger) {
|
|
49374
49378
|
this.conversionErrors = [];
|
|
49379
|
+
this._slMapping = {};
|
|
49375
49380
|
this.relativePathResolver = relativePathResolver;
|
|
49376
49381
|
this.sourceMapData = sourceMapData;
|
|
49377
49382
|
this.projectRoot = projectRoot;
|
|
@@ -49398,6 +49403,16 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49398
49403
|
methods: methodUniqueIds
|
|
49399
49404
|
};
|
|
49400
49405
|
};
|
|
49406
|
+
Object.defineProperty(HitsConverter.prototype, "slMapping", {
|
|
49407
|
+
get: function () {
|
|
49408
|
+
return this._slMapping;
|
|
49409
|
+
},
|
|
49410
|
+
set: function (value) {
|
|
49411
|
+
this._slMapping = value;
|
|
49412
|
+
},
|
|
49413
|
+
enumerable: false,
|
|
49414
|
+
configurable: true
|
|
49415
|
+
});
|
|
49401
49416
|
HitsConverter.prototype.createMethodIds = function (hitFunctions, relativePath, absolutePath) {
|
|
49402
49417
|
var _this = this;
|
|
49403
49418
|
var methodIds = [];
|
|
@@ -49476,7 +49491,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49476
49491
|
return uniqueId;
|
|
49477
49492
|
};
|
|
49478
49493
|
HitsConverter.prototype.resolveIdParts = function (startLoc, relativePath, absolutePath) {
|
|
49479
|
-
var sourcePosition = this.sourceMapData.getSourcePosition(relativePath, absolutePath, startLoc, this.projectRoot);
|
|
49494
|
+
var sourcePosition = this.sourceMapData.getSourcePosition(relativePath, absolutePath, startLoc, this.projectRoot, this.slMapping);
|
|
49480
49495
|
return sourcePosition ? sourcePosition : { relativePath: relativePath, start: startLoc, absolutePath: absolutePath };
|
|
49481
49496
|
};
|
|
49482
49497
|
HitsConverter.prototype.buildMethodUniqueId = function (parts) {
|
|
@@ -49499,6 +49514,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49499
49514
|
});
|
|
49500
49515
|
|
|
49501
49516
|
},{"../agent-events/cockpit-notifier":294,"../constants/sl-env-vars":305,"../coverage-elements/new-id-resolver":309,"../coverage-elements/original-module-loader":310,"./hits-collector":318}],320:[function(require,module,exports){
|
|
49517
|
+
var __assign = (this && this.__assign) || function () {
|
|
49518
|
+
__assign = Object.assign || function(t) {
|
|
49519
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
49520
|
+
s = arguments[i];
|
|
49521
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
49522
|
+
t[p] = s[p];
|
|
49523
|
+
}
|
|
49524
|
+
return t;
|
|
49525
|
+
};
|
|
49526
|
+
return __assign.apply(this, arguments);
|
|
49527
|
+
};
|
|
49502
49528
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49503
49529
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
49504
49530
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -49541,7 +49567,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49541
49567
|
if (v !== undefined) module.exports = v;
|
|
49542
49568
|
}
|
|
49543
49569
|
else if (typeof define === "function" && define.amd) {
|
|
49544
|
-
define(["require", "exports", "./footprints-buffer", "../footprints-process/collection-interval", "../state-tracker", "../agent-events/cockpit-notifier", "../agent-events/agent-events-conracts"], factory);
|
|
49570
|
+
define(["require", "exports", "./footprints-buffer", "../footprints-process/collection-interval", "../state-tracker", "../agent-events/cockpit-notifier", "../agent-events/agent-events-conracts", "../constants/sl-env-vars"], factory);
|
|
49545
49571
|
}
|
|
49546
49572
|
})(function (require, exports) {
|
|
49547
49573
|
"use strict";
|
|
@@ -49552,6 +49578,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49552
49578
|
var state_tracker_1 = require("../state-tracker");
|
|
49553
49579
|
var cockpit_notifier_1 = require("../agent-events/cockpit-notifier");
|
|
49554
49580
|
var agent_events_conracts_1 = require("../agent-events/agent-events-conracts");
|
|
49581
|
+
var sl_env_vars_1 = require("../constants/sl-env-vars");
|
|
49555
49582
|
var FootprintsProcess = (function () {
|
|
49556
49583
|
function FootprintsProcess(cfg, sendToServerWatchdog, keepaliveWatchdog, logger, hitsCollector, hitsConverter, footprintsBuffer, backendProxy, stateTracker) {
|
|
49557
49584
|
this.isRunning = false;
|
|
@@ -49569,15 +49596,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49569
49596
|
this.logger = logger;
|
|
49570
49597
|
this.delegateEvents();
|
|
49571
49598
|
}
|
|
49572
|
-
FootprintsProcess.prototype.enqueueCurrentFootprints = function (
|
|
49599
|
+
FootprintsProcess.prototype.enqueueCurrentFootprints = function (execution, testName, isFinalFootprints) {
|
|
49573
49600
|
if (isFinalFootprints === void 0) { isFinalFootprints = false; }
|
|
49574
|
-
this.currentExecutionBsid =
|
|
49601
|
+
this.currentExecutionBsid = execution.buildSessionId;
|
|
49575
49602
|
this.collectionInterval.next();
|
|
49576
49603
|
var hitFilesData = this.hitsCollector.getHitElements();
|
|
49577
49604
|
if (hitFilesData.length) {
|
|
49578
49605
|
this.logger.info("Collecting hits for '" + hitFilesData.length + "' files");
|
|
49579
49606
|
var convertedHits = this.hitsConverter.convertHits(hitFilesData);
|
|
49580
|
-
this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), executionId, testName, this.isInitFootprints(), isFinalFootprints);
|
|
49607
|
+
this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), execution.executionId, testName, this.isInitFootprints(), isFinalFootprints);
|
|
49581
49608
|
}
|
|
49582
49609
|
else {
|
|
49583
49610
|
this.logger.info('No files were hits, not collecting footprints');
|
|
@@ -49602,7 +49629,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49602
49629
|
FootprintsProcess.prototype.ensureKeepaliveThreadRunning = function () {
|
|
49603
49630
|
this.keepaliveWatchdog.start();
|
|
49604
49631
|
};
|
|
49605
|
-
FootprintsProcess.prototype.submitQueuedFootprints = function () {
|
|
49632
|
+
FootprintsProcess.prototype.submitQueuedFootprints = function (execution) {
|
|
49606
49633
|
return __awaiter(this, void 0, void 0, function () {
|
|
49607
49634
|
var packet, e_1;
|
|
49608
49635
|
return __generator(this, function (_a) {
|
|
@@ -49617,7 +49644,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49617
49644
|
_a.label = 1;
|
|
49618
49645
|
case 1:
|
|
49619
49646
|
_a.trys.push([1, 3, 4, 5]);
|
|
49620
|
-
return [4, this.backendProxy.submitFootprintsV6(packet,
|
|
49647
|
+
return [4, this.backendProxy.submitFootprintsV6(packet, execution.buildSessionId, execution.testStage, this.cfg.buildSessionId.value)];
|
|
49621
49648
|
case 2:
|
|
49622
49649
|
_a.sent();
|
|
49623
49650
|
this.logger.info("Footprints packet submitted successfully. packet contains " + packet.methods.length + " methods, " + packet.branches.length + " branches in " + packet.executions.length + " executions");
|
|
@@ -49694,14 +49721,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49694
49721
|
}
|
|
49695
49722
|
this.logger.debug('Test identifier changed, start enqueuing footprints process.');
|
|
49696
49723
|
var prevTestIdentifierParts = state_tracker_1.StateTracker.splitTestIdToExecutionAndTestName(previousTestIdentifier);
|
|
49697
|
-
this.enqueueCurrentFootprints(this.stateTracker.currentExecution
|
|
49724
|
+
this.enqueueCurrentFootprints(this.stateTracker.currentExecution, prevTestIdentifierParts.testName);
|
|
49698
49725
|
}
|
|
49699
49726
|
};
|
|
49700
49727
|
FootprintsProcess.prototype.delegateEvents = function () {
|
|
49701
49728
|
var _this = this;
|
|
49702
49729
|
this.sendToServerWatchdog.on(FootprintsProcess.ALARM_FIRED, function () {
|
|
49703
49730
|
_this.logger.debug('Start submitting footprints, triggered by send to server watchdog.');
|
|
49704
|
-
_this.submitQueuedFootprints();
|
|
49731
|
+
_this.submitQueuedFootprints(_this.stateTracker.currentExecution);
|
|
49705
49732
|
});
|
|
49706
49733
|
this.keepaliveWatchdog.on(FootprintsProcess.ALARM_FIRED, function () {
|
|
49707
49734
|
if (!_this.hasOngoingRequests() && !_this.footprintsBuffer.hasHitsInBuffer()) {
|
|
@@ -49709,7 +49736,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49709
49736
|
}
|
|
49710
49737
|
});
|
|
49711
49738
|
this.footprintsBuffer.on(footprints_buffer_1.FootprintsBuffer.BUFFER_FULL, function () {
|
|
49712
|
-
_this.submitQueuedFootprints();
|
|
49739
|
+
_this.submitQueuedFootprints(_this.stateTracker.currentExecution);
|
|
49713
49740
|
});
|
|
49714
49741
|
this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_BSID_CHANGED, function (prevExecution, newBuildSession) {
|
|
49715
49742
|
_this.logger.warn("Execution points to different build session '" + newBuildSession + "'. Collecting and submitting previous footprints");
|
|
@@ -49717,17 +49744,20 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49717
49744
|
});
|
|
49718
49745
|
this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_ID_CHANGED, function (prevExecution, newExecutionId) {
|
|
49719
49746
|
_this.logger.warn("Execution id changed to'" + newExecutionId + "'. Collecting previous footprints");
|
|
49720
|
-
_this.enqueueCurrentFootprints(prevExecution
|
|
49747
|
+
_this.enqueueCurrentFootprints(prevExecution, null);
|
|
49721
49748
|
});
|
|
49722
49749
|
this.stateTracker.on(state_tracker_1.StateTracker.TEST_STAGE_CHANGED, function (prevExecution, newTestStage) {
|
|
49723
49750
|
_this.logger.warn("Execution points to different test stage '" + newTestStage + "'. Collecting and submitting previous footprints");
|
|
49724
49751
|
_this.enqueueAndSubmit(prevExecution);
|
|
49725
49752
|
});
|
|
49753
|
+
this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_STATUS_PENDING_DELETE, function (execution) {
|
|
49754
|
+
_this.enqueueAndSubmit(execution);
|
|
49755
|
+
});
|
|
49726
49756
|
};
|
|
49727
49757
|
FootprintsProcess.prototype.enqueueAndSubmit = function (executionData, isFinalFootprints) {
|
|
49728
49758
|
if (isFinalFootprints === void 0) { isFinalFootprints = false; }
|
|
49729
|
-
this.enqueueCurrentFootprints(executionData
|
|
49730
|
-
this.submitQueuedFootprints();
|
|
49759
|
+
this.enqueueCurrentFootprints(executionData, null, isFinalFootprints);
|
|
49760
|
+
this.submitQueuedFootprints(executionData);
|
|
49731
49761
|
};
|
|
49732
49762
|
FootprintsProcess.prototype.flushCurrentFootprints = function (isFinalFootprints) {
|
|
49733
49763
|
if (isFinalFootprints === void 0) { isFinalFootprints = false; }
|
|
@@ -49735,11 +49765,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49735
49765
|
if (currentTestIdentifier) {
|
|
49736
49766
|
var testIdentifierParts = state_tracker_1.StateTracker.splitTestIdToExecutionAndTestName(currentTestIdentifier);
|
|
49737
49767
|
this.logger.debug('Enqueue footprints interval - start enqueuing process. currentTestIdentifier: \'%s\'', currentTestIdentifier);
|
|
49738
|
-
this.enqueueCurrentFootprints(this.stateTracker.currentExecution
|
|
49768
|
+
this.enqueueCurrentFootprints(this.stateTracker.currentExecution, testIdentifierParts.testName, isFinalFootprints);
|
|
49739
49769
|
}
|
|
49740
49770
|
else if (this.stateTracker.shouldCollectHits()) {
|
|
49741
49771
|
this.logger.debug('Enqueue footprints interval - start enqueuing process. anonymous footprints');
|
|
49742
|
-
this.enqueueCurrentFootprints(this.stateTracker.currentExecution
|
|
49772
|
+
this.enqueueCurrentFootprints(this.stateTracker.currentExecution, null, isFinalFootprints);
|
|
49743
49773
|
}
|
|
49744
49774
|
else {
|
|
49745
49775
|
this.logger.info('Enqueue footprints interval - no active execution. skip enqueuing process.');
|
|
@@ -49758,13 +49788,35 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49758
49788
|
FootprintsProcess.prototype.hasOngoingRequests = function () {
|
|
49759
49789
|
return this.ongoingRequestsCounter > 0;
|
|
49760
49790
|
};
|
|
49791
|
+
FootprintsProcess.prototype.loadSlMapping = function () {
|
|
49792
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49793
|
+
var mappingsArr, flatted;
|
|
49794
|
+
return __generator(this, function (_a) {
|
|
49795
|
+
switch (_a.label) {
|
|
49796
|
+
case 0:
|
|
49797
|
+
if (!sl_env_vars_1.SlEnvVars.useSlMapping()) {
|
|
49798
|
+
return [2];
|
|
49799
|
+
}
|
|
49800
|
+
return [4, this.backendProxy.getBlobsAsJson(this.cfg.buildSessionId.value)];
|
|
49801
|
+
case 1:
|
|
49802
|
+
mappingsArr = _a.sent();
|
|
49803
|
+
flatted = {};
|
|
49804
|
+
mappingsArr.forEach(function (mapping) {
|
|
49805
|
+
flatted = __assign(__assign({}, flatted), mapping);
|
|
49806
|
+
});
|
|
49807
|
+
this.hitsConverter.slMapping = flatted;
|
|
49808
|
+
return [2];
|
|
49809
|
+
}
|
|
49810
|
+
});
|
|
49811
|
+
});
|
|
49812
|
+
};
|
|
49761
49813
|
FootprintsProcess.ALARM_FIRED = 'alarm';
|
|
49762
49814
|
return FootprintsProcess;
|
|
49763
49815
|
}());
|
|
49764
49816
|
exports.FootprintsProcess = FootprintsProcess;
|
|
49765
49817
|
});
|
|
49766
49818
|
|
|
49767
|
-
},{"../agent-events/agent-events-conracts":289,"../agent-events/cockpit-notifier":294,"../footprints-process/collection-interval":323,"../state-tracker":332,"./footprints-buffer":317}],321:[function(require,module,exports){
|
|
49819
|
+
},{"../agent-events/agent-events-conracts":289,"../agent-events/cockpit-notifier":294,"../constants/sl-env-vars":305,"../footprints-process/collection-interval":323,"../state-tracker":332,"./footprints-buffer":317}],321:[function(require,module,exports){
|
|
49768
49820
|
(function (factory) {
|
|
49769
49821
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
49770
49822
|
var v = factory(require, exports);
|
|
@@ -51195,7 +51247,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51195
51247
|
return this._currentExecution != null;
|
|
51196
51248
|
};
|
|
51197
51249
|
StateTracker.prototype.shouldCollectHits = function () {
|
|
51198
|
-
return this.hasMappingAtServer();
|
|
51250
|
+
return this.hasMappingAtServer() && this.currentExecution.executionId !== this.pendingDeleteExecId;
|
|
51199
51251
|
};
|
|
51200
51252
|
Object.defineProperty(StateTracker.prototype, "currentExecution", {
|
|
51201
51253
|
get: function () {
|
|
@@ -51267,7 +51319,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51267
51319
|
}
|
|
51268
51320
|
};
|
|
51269
51321
|
StateTracker.prototype.getTestStage = function () {
|
|
51270
|
-
|
|
51322
|
+
var _a;
|
|
51323
|
+
return (_a = this.currentExecution) === null || _a === void 0 ? void 0 : _a.testStage;
|
|
51271
51324
|
};
|
|
51272
51325
|
StateTracker.splitTestIdToExecutionAndTestName = function (testId) {
|
|
51273
51326
|
testId = testId || '';
|
|
@@ -51318,6 +51371,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51318
51371
|
if (!executionData) {
|
|
51319
51372
|
return;
|
|
51320
51373
|
}
|
|
51374
|
+
if (executionData.status == StateTracker.EXECUTION_STATUS_PENDING_DELETE) {
|
|
51375
|
+
if (executionData.executionId !== this.pendingDeleteExecId) {
|
|
51376
|
+
this.currentExecution = executionData;
|
|
51377
|
+
this.emit(StateTracker.EXECUTION_STATUS_PENDING_DELETE, executionData);
|
|
51378
|
+
this.pendingDeleteExecId = executionData.executionId;
|
|
51379
|
+
}
|
|
51380
|
+
return;
|
|
51381
|
+
}
|
|
51321
51382
|
if (!this.currentExecution) {
|
|
51322
51383
|
return;
|
|
51323
51384
|
}
|