slnodejs 6.1.336 → 6.1.344
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/README.md +24 -1
- package/browser-agent/dist/browser-agent-all.js +19 -2
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/browser-agent/package.json +1 -1
- package/package.json +1 -1
- package/tsOutputs/api.d.ts +1 -0
- package/tsOutputs/api.js +12 -5
- package/tsOutputs/build-scanner/build-diff-process.js +6 -0
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-conracts.d.ts +1 -0
- package/tsOutputs/common/agent-events/agent-events-conracts.js +1 -0
- package/tsOutputs/common/agent-events/agent-events-conracts.js.map +1 -1
- package/tsOutputs/common/scm/git.js +29 -0
- package/tsOutputs/common/scm/git.js.map +1 -1
- package/tsOutputs/common/scm/none.js +21 -0
- package/tsOutputs/common/scm/none.js.map +1 -1
- package/tsOutputs/common/state-tracker.d.ts +3 -1
- package/tsOutputs/common/state-tracker.js +28 -1
- package/tsOutputs/common/state-tracker.js.map +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.d.ts +11 -0
- package/tsOutputs/{cli-parse/executors → common/utils}/test-runner-build-session-data-builder.js +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -0
- package/tsOutputs/test-listener/remote-agent.d.ts +4 -0
- package/tsOutputs/test-listener/remote-agent.js +32 -1
- package/tsOutputs/test-listener/remote-agent.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-runner-build-session-data-builder.js.map +0 -1
package/README.md
CHANGED
|
@@ -1 +1,24 @@
|
|
|
1
|
-
# SL.OnPremise.Agent.JavaScript
|
|
1
|
+
# SL.OnPremise.Agent.JavaScript
|
|
2
|
+
## Publish
|
|
3
|
+
### Node agent
|
|
4
|
+
|
|
5
|
+
1. Check the latest public version `run npm view slnodejs time`
|
|
6
|
+
2. Go to main [build job](http://jenkins2.dev.sealights.co:8080/view/AGENTS/job/SL.OnPremise.Agent.JavaScript/job/main) and get latest successful build number (6.1.278 for example)
|
|
7
|
+
- **IMPORTANT**: if by any case the build version you want to publish is failed please start investigate and make sure it fixed, do not leave the main branch dirty
|
|
8
|
+
3. Trigger the [publish job](http://jenkins2.dev.sealights.co:8080/view/AGENTS/job/Deploy%20node%20agent%20mono%20repo) and provide the build number
|
|
9
|
+
|
|
10
|
+
- **Note**: please make sure to separate between base and minor version
|
|
11
|
+
4. Verify agent published by running again `npm view slnodejs time`
|
|
12
|
+
5. Collect the Jira tickets included in each build
|
|
13
|
+
- **Note**: ideally should be in the commit message which included in the changes section in the top build details page
|
|
14
|
+
6. Update the [release notes file](https://sealights.atlassian.net/wiki/spaces/DEV/pages/559415316/Node+Agent+Releases) and include links to jira tickets in the relevant column
|
|
15
|
+
- **IMPORTANT**: in case of changes affects the browser agent add browser-agent in Changed components and follow a [browser agent publish guide](#browser-agent)
|
|
16
|
+
7. For each ticket update status to Deployed and set the version in the Handle in version field
|
|
17
|
+
|
|
18
|
+
### Browser agent
|
|
19
|
+
|
|
20
|
+
If you need to publish new version of browser agent you need to publish node agent first and then:
|
|
21
|
+
|
|
22
|
+
1. Ask someone from DevOps team (currently [Jason](https://sealights.slack.com/archives/D04NBJD0RB7)) to publish js bundle in S3. Just provide them a version number.
|
|
23
|
+
2. Check that version accessible by link `https://agents.sealights.co/browser/{version-number}/browser-agent-all.min.js`
|
|
24
|
+
3. Check that recommended version for customers updated. You can check [here](https://sealights.slack.com/archives/CL4AQKXEY) or by executing `/api/v1/agents/browser/recommended?customerId={customerId}`
|
|
@@ -53937,7 +53937,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
53937
53937
|
"use strict";
|
|
53938
53938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53939
53939
|
exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
|
|
53940
|
-
exports.SL_AGENT_VERSION = '6.1.
|
|
53940
|
+
exports.SL_AGENT_VERSION = '6.1.344';
|
|
53941
53941
|
exports.SL_AGENT_TYPE = 'browser';
|
|
53942
53942
|
});
|
|
53943
53943
|
|
|
@@ -56526,6 +56526,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
56526
56526
|
AgentEventCode[AgentEventCode["WARN"] = 3000] = "WARN";
|
|
56527
56527
|
AgentEventCode[AgentEventCode["AGENT_DID_NOT_SHUTDOWN"] = 3001] = "AGENT_DID_NOT_SHUTDOWN";
|
|
56528
56528
|
AgentEventCode[AgentEventCode["GENERIC_WARNING_SUPERUSER"] = 3999] = "GENERIC_WARNING_SUPERUSER";
|
|
56529
|
+
AgentEventCode[AgentEventCode["GIT_SUBMODULES_DETECTED"] = 3501] = "GIT_SUBMODULES_DETECTED";
|
|
56529
56530
|
AgentEventCode[AgentEventCode["GENERIC_ERROR"] = 4000] = "GENERIC_ERROR";
|
|
56530
56531
|
AgentEventCode[AgentEventCode["DUPLICATE_MODULE"] = 4001] = "DUPLICATE_MODULE";
|
|
56531
56532
|
AgentEventCode[AgentEventCode["DATA_PROCESSOR_NO_EXECUTIONS"] = 4002] = "DATA_PROCESSOR_NO_EXECUTIONS";
|
|
@@ -61275,7 +61276,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
61275
61276
|
this.logger.info('\'currentTestIdentifier\' is null. That means that footprints will not be sent.');
|
|
61276
61277
|
}
|
|
61277
61278
|
else {
|
|
61278
|
-
this.
|
|
61279
|
+
this.getActiveExecution(async).then((response) => {
|
|
61279
61280
|
this.fireExecutionEvents(response.execution);
|
|
61280
61281
|
this.notifyCockpit(response.execution);
|
|
61281
61282
|
this._currentExecution = response.execution;
|
|
@@ -61284,6 +61285,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
61284
61285
|
});
|
|
61285
61286
|
}
|
|
61286
61287
|
}
|
|
61288
|
+
loadExecutionSync() {
|
|
61289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61290
|
+
try {
|
|
61291
|
+
const executionResponse = yield this.getActiveExecution();
|
|
61292
|
+
this.fireExecutionEvents(executionResponse.execution);
|
|
61293
|
+
this.notifyCockpit(executionResponse.execution);
|
|
61294
|
+
this._currentExecution = executionResponse.execution;
|
|
61295
|
+
}
|
|
61296
|
+
catch (err) {
|
|
61297
|
+
this.logger.warn(`Error while checking test execution status ${err}`);
|
|
61298
|
+
}
|
|
61299
|
+
});
|
|
61300
|
+
}
|
|
61301
|
+
getActiveExecution(async = true) {
|
|
61302
|
+
return this.backendProxy.testExecutionV4(this.cfg.labId.value, async, this.getExecutionIdForQuery());
|
|
61303
|
+
}
|
|
61287
61304
|
getExecutionIdForQuery() {
|
|
61288
61305
|
if (this.isAnonymousColor(this.currentTestIdentifier) || !this.currentExecution) {
|
|
61289
61306
|
return null;
|