slnodejs 6.1.219 → 6.1.222
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 +229 -86
- package/browser-agent/dist/browser-agent-all.min.js +25 -25
- package/browser-agent/package.json +1 -1
- package/package.json +2 -2
- package/tsOutputs/common/footprints-process-v6/hits-collector.d.ts +6 -6
- package/tsOutputs/common/footprints-process-v6/hits-collector.js +56 -15
- package/tsOutputs/common/footprints-process-v6/hits-collector.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.d.ts +6 -5
- package/tsOutputs/common/footprints-process-v6/index.js +147 -67
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.d.ts +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js +41 -0
- package/tsOutputs/common/footprints-process-v6/remote-footprints-process.js.map +1 -1
- package/tsOutputs/common/state-tracker.d.ts +1 -1
- package/tsOutputs/common/state-tracker.js +3 -4
- package/tsOutputs/common/state-tracker.js.map +1 -1
- package/tsOutputs/test-listener/agent.d.ts +1 -1
- package/tsOutputs/test-listener/agent.js +4 -2
- package/tsOutputs/test-listener/agent.js.map +1 -1
- package/tsOutputs/test-listener/factory.d.ts +2 -1
- package/tsOutputs/test-listener/factory.js +54 -6
- package/tsOutputs/test-listener/factory.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.d.ts +10 -0
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js +159 -0
- package/tsOutputs/test-listener/footprints-process/ts-node-hits-collector.js.map +1 -0
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +10 -5
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
- package/tsOutputs/test-listener/remote-agent.d.ts +1 -1
- package/tsOutputs/test-listener/remote-agent.js +21 -7
- package/tsOutputs/test-listener/remote-agent.js.map +1 -1
|
@@ -23622,7 +23622,7 @@ module.exports={
|
|
|
23622
23622
|
"_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
|
|
23623
23623
|
"_shasum": "da37cebd31e79a1367e941b592ed1fbebd58abbb",
|
|
23624
23624
|
"_spec": "elliptic@^6.5.3",
|
|
23625
|
-
"_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main
|
|
23625
|
+
"_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main/browser-agent/node_modules/browserify-sign",
|
|
23626
23626
|
"author": {
|
|
23627
23627
|
"name": "Fedor Indutny",
|
|
23628
23628
|
"email": "fedor@indutny.com"
|
|
@@ -43063,11 +43063,30 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43063
43063
|
this.slMappingLoader.loadSlMapping(this.configuration.buildSessionId);
|
|
43064
43064
|
};
|
|
43065
43065
|
BrowserAgentInstanceFpv6.prototype.stopFootprintsProcess = function () {
|
|
43066
|
-
this
|
|
43067
|
-
|
|
43066
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43067
|
+
return __generator(this, function (_a) {
|
|
43068
|
+
switch (_a.label) {
|
|
43069
|
+
case 0:
|
|
43070
|
+
this.flushFootprintsWatchdog.stop();
|
|
43071
|
+
return [4, this.footprintsProcess.stop()];
|
|
43072
|
+
case 1:
|
|
43073
|
+
_a.sent();
|
|
43074
|
+
return [2];
|
|
43075
|
+
}
|
|
43076
|
+
});
|
|
43077
|
+
});
|
|
43068
43078
|
};
|
|
43069
43079
|
BrowserAgentInstanceFpv6.prototype.submitFootprints = function () {
|
|
43070
|
-
this
|
|
43080
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43081
|
+
return __generator(this, function (_a) {
|
|
43082
|
+
switch (_a.label) {
|
|
43083
|
+
case 0: return [4, this.footprintsProcess.submitQueuedFootprints(this.stateTracker.currentExecution)];
|
|
43084
|
+
case 1:
|
|
43085
|
+
_a.sent();
|
|
43086
|
+
return [2];
|
|
43087
|
+
}
|
|
43088
|
+
});
|
|
43089
|
+
});
|
|
43071
43090
|
};
|
|
43072
43091
|
BrowserAgentInstanceFpv6.prototype.submitFootprintsSync = function () {
|
|
43073
43092
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -49195,6 +49214,42 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49195
49214
|
|
|
49196
49215
|
},{"../agent-events/agent-events-conracts":289,"../agent-events/cockpit-notifier":294,"./buffer-size-helper":316,"events":110}],318:[function(require,module,exports){
|
|
49197
49216
|
(function (global){(function (){
|
|
49217
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49218
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
49219
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
49220
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
49221
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
49222
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
49223
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
49224
|
+
});
|
|
49225
|
+
};
|
|
49226
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
49227
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
49228
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
49229
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49230
|
+
function step(op) {
|
|
49231
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
49232
|
+
while (_) try {
|
|
49233
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
49234
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
49235
|
+
switch (op[0]) {
|
|
49236
|
+
case 0: case 1: t = op; break;
|
|
49237
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
49238
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
49239
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
49240
|
+
default:
|
|
49241
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
49242
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
49243
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
49244
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
49245
|
+
if (t[2]) _.ops.pop();
|
|
49246
|
+
_.trys.pop(); continue;
|
|
49247
|
+
}
|
|
49248
|
+
op = body.call(thisArg, _);
|
|
49249
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49250
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49251
|
+
}
|
|
49252
|
+
};
|
|
49198
49253
|
(function (factory) {
|
|
49199
49254
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
49200
49255
|
var v = factory(require, exports);
|
|
@@ -49217,21 +49272,26 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49217
49272
|
this.latestCoverageSnapshot = {};
|
|
49218
49273
|
}
|
|
49219
49274
|
HitsCollector.prototype.getHitElements = function () {
|
|
49220
|
-
|
|
49221
|
-
|
|
49222
|
-
|
|
49223
|
-
|
|
49224
|
-
|
|
49225
|
-
|
|
49226
|
-
|
|
49227
|
-
|
|
49228
|
-
|
|
49229
|
-
|
|
49230
|
-
|
|
49231
|
-
|
|
49232
|
-
|
|
49233
|
-
|
|
49234
|
-
|
|
49275
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49276
|
+
var hitFilesData, globalCoverage, filename, _a, fileCoverageSnapshot, currentFileCoverage, shouldResolveRelativePath, hitMethods, hitBranches;
|
|
49277
|
+
return __generator(this, function (_b) {
|
|
49278
|
+
hitFilesData = [];
|
|
49279
|
+
globalCoverage = this.getGlobalCoverageObject();
|
|
49280
|
+
if (sl_env_vars_1.SlEnvVars.isUseNewUniqueId()) {
|
|
49281
|
+
new original_module_loader_1.OriginalModuleLoader(globalCoverage, this.logger).load();
|
|
49282
|
+
}
|
|
49283
|
+
for (filename in globalCoverage) {
|
|
49284
|
+
_a = this.getFileCoverageObjects(filename), fileCoverageSnapshot = _a.fileCoverageSnapshot, currentFileCoverage = _a.currentFileCoverage, shouldResolveRelativePath = _a.shouldResolveRelativePath;
|
|
49285
|
+
hitMethods = this.getHitMethods(currentFileCoverage, fileCoverageSnapshot);
|
|
49286
|
+
hitBranches = this.getHitBranches(currentFileCoverage, fileCoverageSnapshot);
|
|
49287
|
+
if (hitMethods.length || hitBranches.length) {
|
|
49288
|
+
hitFilesData.push({ filename: filename, hitMethods: hitMethods, hitBranches: hitBranches, shouldResolveRelativePath: shouldResolveRelativePath });
|
|
49289
|
+
}
|
|
49290
|
+
}
|
|
49291
|
+
this.updateCoverageSnapshot(globalCoverage);
|
|
49292
|
+
return [2, hitFilesData];
|
|
49293
|
+
});
|
|
49294
|
+
});
|
|
49235
49295
|
};
|
|
49236
49296
|
Object.defineProperty(HitsCollector.prototype, "latestCoverageSnapshot", {
|
|
49237
49297
|
get: function () {
|
|
@@ -49614,40 +49674,82 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49614
49674
|
}
|
|
49615
49675
|
FootprintsProcess.prototype.enqueueCurrentFootprints = function (execution, testName, isFinalFootprints) {
|
|
49616
49676
|
if (isFinalFootprints === void 0) { isFinalFootprints = false; }
|
|
49617
|
-
this
|
|
49618
|
-
|
|
49619
|
-
|
|
49620
|
-
|
|
49621
|
-
|
|
49622
|
-
|
|
49623
|
-
|
|
49624
|
-
|
|
49625
|
-
|
|
49626
|
-
|
|
49627
|
-
|
|
49628
|
-
|
|
49629
|
-
|
|
49630
|
-
|
|
49631
|
-
|
|
49632
|
-
|
|
49677
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49678
|
+
var hitFilesData, convertedHits;
|
|
49679
|
+
return __generator(this, function (_a) {
|
|
49680
|
+
switch (_a.label) {
|
|
49681
|
+
case 0:
|
|
49682
|
+
this.currentExecutionBsid = execution.buildSessionId;
|
|
49683
|
+
this.collectionInterval.next();
|
|
49684
|
+
return [4, this.hitsCollector.getHitElements()];
|
|
49685
|
+
case 1:
|
|
49686
|
+
hitFilesData = _a.sent();
|
|
49687
|
+
if (hitFilesData.length) {
|
|
49688
|
+
this.logger.info("Collecting hits for '" + hitFilesData.length + "' files");
|
|
49689
|
+
convertedHits = this.hitsConverter.convertHits(hitFilesData);
|
|
49690
|
+
this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), execution.executionId, testName, this.isInitFootprints(), isFinalFootprints);
|
|
49691
|
+
}
|
|
49692
|
+
else {
|
|
49693
|
+
this.logger.info('No files were hits, not collecting footprints');
|
|
49694
|
+
}
|
|
49695
|
+
if (this.isRunning && this.cfg.sendFootprints.value && this.cfg.enabled.value) {
|
|
49696
|
+
this.ensureKeepaliveThreadRunning();
|
|
49697
|
+
this.sendToServerWatchdog.start();
|
|
49698
|
+
}
|
|
49699
|
+
this.footprintsEnqueueOnce = true;
|
|
49700
|
+
return [2];
|
|
49701
|
+
}
|
|
49702
|
+
});
|
|
49703
|
+
});
|
|
49633
49704
|
};
|
|
49634
49705
|
FootprintsProcess.prototype.updateConfig = function (updatedCfg) {
|
|
49635
|
-
this
|
|
49636
|
-
|
|
49637
|
-
|
|
49638
|
-
|
|
49639
|
-
|
|
49706
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49707
|
+
return __generator(this, function (_a) {
|
|
49708
|
+
switch (_a.label) {
|
|
49709
|
+
case 0:
|
|
49710
|
+
this.cfg = updatedCfg;
|
|
49711
|
+
return [4, this.stopIfNeededAfterConfigChanged(updatedCfg)];
|
|
49712
|
+
case 1:
|
|
49713
|
+
_a.sent();
|
|
49714
|
+
this.sendToServerWatchdog.setInterval(this.cfg.footprintsSendIntervalSecs.value);
|
|
49715
|
+
this.footprintsBuffer.agentConfig = updatedCfg;
|
|
49716
|
+
return [2];
|
|
49717
|
+
}
|
|
49640
49718
|
});
|
|
49641
|
-
}
|
|
49642
|
-
|
|
49643
|
-
|
|
49719
|
+
});
|
|
49720
|
+
};
|
|
49721
|
+
FootprintsProcess.prototype.stopIfNeededAfterConfigChanged = function (updatedCfg) {
|
|
49722
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49723
|
+
var e_1;
|
|
49724
|
+
return __generator(this, function (_a) {
|
|
49725
|
+
switch (_a.label) {
|
|
49726
|
+
case 0:
|
|
49727
|
+
if (!(updatedCfg.sendFootprints.value === false || updatedCfg.enabled.value === false)) return [3, 4];
|
|
49728
|
+
cockpit_notifier_1.CockpitNotifier.sendEvent(agent_events_conracts_1.AgentEventCode.AGENT_MUTED);
|
|
49729
|
+
this.footprintsBuffer.resetState();
|
|
49730
|
+
_a.label = 1;
|
|
49731
|
+
case 1:
|
|
49732
|
+
_a.trys.push([1, 3, , 4]);
|
|
49733
|
+
return [4, this.stop()];
|
|
49734
|
+
case 2:
|
|
49735
|
+
_a.sent();
|
|
49736
|
+
return [3, 4];
|
|
49737
|
+
case 3:
|
|
49738
|
+
e_1 = _a.sent();
|
|
49739
|
+
this.logger.error("Error stopping footprints process " + e_1.message);
|
|
49740
|
+
this.logger.debug(e_1.stackTrace);
|
|
49741
|
+
return [3, 4];
|
|
49742
|
+
case 4: return [2];
|
|
49743
|
+
}
|
|
49744
|
+
});
|
|
49745
|
+
});
|
|
49644
49746
|
};
|
|
49645
49747
|
FootprintsProcess.prototype.ensureKeepaliveThreadRunning = function () {
|
|
49646
49748
|
this.keepaliveWatchdog.start();
|
|
49647
49749
|
};
|
|
49648
49750
|
FootprintsProcess.prototype.submitQueuedFootprints = function (execution) {
|
|
49649
49751
|
return __awaiter(this, void 0, void 0, function () {
|
|
49650
|
-
var packet,
|
|
49752
|
+
var packet, e_2;
|
|
49651
49753
|
return __generator(this, function (_a) {
|
|
49652
49754
|
switch (_a.label) {
|
|
49653
49755
|
case 0:
|
|
@@ -49666,8 +49768,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49666
49768
|
this.logger.info("Footprints packet submitted successfully. packet contains " + packet.methods.length + " methods, " + packet.branches.length + " branches in " + packet.executions.length + " executions");
|
|
49667
49769
|
return [3, 5];
|
|
49668
49770
|
case 3:
|
|
49669
|
-
|
|
49670
|
-
this.logger.error("Error while submitting footprints '" +
|
|
49771
|
+
e_2 = _a.sent();
|
|
49772
|
+
this.logger.error("Error while submitting footprints '" + e_2 + "'");
|
|
49671
49773
|
cockpit_notifier_1.CockpitNotifier.sendEvent(agent_events_conracts_1.AgentEventCode.FOOTPRINTS_LOSS);
|
|
49672
49774
|
return [3, 5];
|
|
49673
49775
|
case 4:
|
|
@@ -49704,26 +49806,43 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49704
49806
|
this.ensureKeepaliveThreadRunning();
|
|
49705
49807
|
}
|
|
49706
49808
|
};
|
|
49707
|
-
FootprintsProcess.prototype.stop = function (
|
|
49708
|
-
|
|
49709
|
-
|
|
49710
|
-
|
|
49711
|
-
|
|
49712
|
-
|
|
49713
|
-
|
|
49714
|
-
|
|
49715
|
-
|
|
49716
|
-
|
|
49717
|
-
|
|
49718
|
-
|
|
49719
|
-
|
|
49720
|
-
|
|
49721
|
-
|
|
49722
|
-
|
|
49723
|
-
|
|
49724
|
-
|
|
49725
|
-
|
|
49726
|
-
|
|
49809
|
+
FootprintsProcess.prototype.stop = function () {
|
|
49810
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49811
|
+
var packet, e_3;
|
|
49812
|
+
return __generator(this, function (_a) {
|
|
49813
|
+
switch (_a.label) {
|
|
49814
|
+
case 0:
|
|
49815
|
+
this.sendToServerWatchdog.stop();
|
|
49816
|
+
if (!this.shouldSubmitFootprints()) {
|
|
49817
|
+
this.isRunning = false;
|
|
49818
|
+
return [2];
|
|
49819
|
+
}
|
|
49820
|
+
return [4, this.flushCurrentFootprints(true)];
|
|
49821
|
+
case 1:
|
|
49822
|
+
_a.sent();
|
|
49823
|
+
packet = this.footprintsBuffer.createPacket();
|
|
49824
|
+
this.isRunning = false;
|
|
49825
|
+
if (!packet) {
|
|
49826
|
+
this.logger.info('No hits collected, nothing to submit');
|
|
49827
|
+
return [2];
|
|
49828
|
+
}
|
|
49829
|
+
this.logger.info('Start submitting footprints, triggered by stop event.');
|
|
49830
|
+
_a.label = 2;
|
|
49831
|
+
case 2:
|
|
49832
|
+
_a.trys.push([2, 4, , 5]);
|
|
49833
|
+
return [4, this.backendProxy.submitFootprintsV6(packet, this.currentExecutionBsid, this.stateTracker.getTestStage(), this.cfg.buildSessionId.value)];
|
|
49834
|
+
case 3:
|
|
49835
|
+
_a.sent();
|
|
49836
|
+
this.logger.info('Final footprints submitted successfully');
|
|
49837
|
+
return [3, 5];
|
|
49838
|
+
case 4:
|
|
49839
|
+
e_3 = _a.sent();
|
|
49840
|
+
this.logger.error("Failed to submit final footprints, error: " + e_3.message);
|
|
49841
|
+
this.logger.debug(e_3);
|
|
49842
|
+
return [2];
|
|
49843
|
+
case 5: return [2];
|
|
49844
|
+
}
|
|
49845
|
+
});
|
|
49727
49846
|
});
|
|
49728
49847
|
};
|
|
49729
49848
|
FootprintsProcess.prototype.handleTestIdChanged = function (newTestIdentifier, previousTestIdentifier) {
|
|
@@ -49772,25 +49891,50 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49772
49891
|
};
|
|
49773
49892
|
FootprintsProcess.prototype.enqueueAndSubmit = function (executionData, isFinalFootprints) {
|
|
49774
49893
|
if (isFinalFootprints === void 0) { isFinalFootprints = false; }
|
|
49775
|
-
this
|
|
49776
|
-
|
|
49894
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49895
|
+
return __generator(this, function (_a) {
|
|
49896
|
+
switch (_a.label) {
|
|
49897
|
+
case 0: return [4, this.enqueueCurrentFootprints(executionData, null, isFinalFootprints)];
|
|
49898
|
+
case 1:
|
|
49899
|
+
_a.sent();
|
|
49900
|
+
return [4, this.submitQueuedFootprints(executionData)];
|
|
49901
|
+
case 2:
|
|
49902
|
+
_a.sent();
|
|
49903
|
+
return [2];
|
|
49904
|
+
}
|
|
49905
|
+
});
|
|
49906
|
+
});
|
|
49777
49907
|
};
|
|
49778
49908
|
FootprintsProcess.prototype.flushCurrentFootprints = function (isFinalFootprints) {
|
|
49779
49909
|
if (isFinalFootprints === void 0) { isFinalFootprints = false; }
|
|
49780
|
-
|
|
49781
|
-
|
|
49782
|
-
|
|
49783
|
-
|
|
49784
|
-
|
|
49785
|
-
|
|
49786
|
-
|
|
49787
|
-
|
|
49788
|
-
|
|
49789
|
-
|
|
49790
|
-
|
|
49791
|
-
|
|
49792
|
-
|
|
49793
|
-
|
|
49910
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49911
|
+
var currentTestIdentifier, testIdentifierParts;
|
|
49912
|
+
return __generator(this, function (_a) {
|
|
49913
|
+
switch (_a.label) {
|
|
49914
|
+
case 0:
|
|
49915
|
+
currentTestIdentifier = this.stateTracker.getCurrentTestIdentifier();
|
|
49916
|
+
if (!currentTestIdentifier) return [3, 2];
|
|
49917
|
+
testIdentifierParts = state_tracker_1.StateTracker.splitTestIdToExecutionAndTestName(currentTestIdentifier);
|
|
49918
|
+
this.logger.debug('Enqueue footprints interval - start enqueuing process. currentTestIdentifier: \'%s\'', currentTestIdentifier);
|
|
49919
|
+
return [4, this.enqueueCurrentFootprints(this.stateTracker.currentExecution, testIdentifierParts.testName, isFinalFootprints)];
|
|
49920
|
+
case 1:
|
|
49921
|
+
_a.sent();
|
|
49922
|
+
return [3, 5];
|
|
49923
|
+
case 2:
|
|
49924
|
+
if (!this.stateTracker.shouldCollectHits()) return [3, 4];
|
|
49925
|
+
this.logger.debug('Enqueue footprints interval - start enqueuing process. anonymous footprints');
|
|
49926
|
+
return [4, this.enqueueCurrentFootprints(this.stateTracker.currentExecution, null, isFinalFootprints)];
|
|
49927
|
+
case 3:
|
|
49928
|
+
_a.sent();
|
|
49929
|
+
return [3, 5];
|
|
49930
|
+
case 4:
|
|
49931
|
+
this.logger.info('Enqueue footprints interval - no active execution. skip enqueuing process.');
|
|
49932
|
+
this.handleNoExecutionFound();
|
|
49933
|
+
_a.label = 5;
|
|
49934
|
+
case 5: return [2];
|
|
49935
|
+
}
|
|
49936
|
+
});
|
|
49937
|
+
});
|
|
49794
49938
|
};
|
|
49795
49939
|
FootprintsProcess.prototype.handleNoExecutionFound = function () {
|
|
49796
49940
|
if (this.stateTracker.openExecutionFoundOnce) {
|
|
@@ -51337,18 +51481,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51337
51481
|
this.isRunning = true;
|
|
51338
51482
|
}
|
|
51339
51483
|
};
|
|
51340
|
-
StateTracker.prototype.stop = function (
|
|
51484
|
+
StateTracker.prototype.stop = function () {
|
|
51341
51485
|
try {
|
|
51342
51486
|
if (!this.isRunning) {
|
|
51343
|
-
return
|
|
51487
|
+
return;
|
|
51344
51488
|
}
|
|
51345
51489
|
this.checkTestStatusWatchdog.stop();
|
|
51346
51490
|
this.isRunning = false;
|
|
51347
|
-
callback();
|
|
51348
51491
|
}
|
|
51349
51492
|
catch (err) {
|
|
51350
51493
|
this.logger.error("Error while stopping StateTracker. '" + err + "'");
|
|
51351
|
-
return
|
|
51494
|
+
return;
|
|
51352
51495
|
}
|
|
51353
51496
|
};
|
|
51354
51497
|
StateTracker.prototype.getTestStage = function () {
|