slnodejs 6.1.340 → 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 -3
- package/browser-agent/dist/browser-agent-all.min.js +3 -3
- 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/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/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}`
|
|
@@ -33850,7 +33850,7 @@ module.exports={
|
|
|
33850
33850
|
"_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
|
|
33851
33851
|
"_shasum": "da37cebd31e79a1367e941b592ed1fbebd58abbb",
|
|
33852
33852
|
"_spec": "elliptic@^6.5.3",
|
|
33853
|
-
"_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main
|
|
33853
|
+
"_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main/browser-agent/node_modules/browserify-sign",
|
|
33854
33854
|
"author": {
|
|
33855
33855
|
"name": "Fedor Indutny",
|
|
33856
33856
|
"email": "fedor@indutny.com"
|
|
@@ -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
|
|
|
@@ -61276,7 +61276,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
61276
61276
|
this.logger.info('\'currentTestIdentifier\' is null. That means that footprints will not be sent.');
|
|
61277
61277
|
}
|
|
61278
61278
|
else {
|
|
61279
|
-
this.
|
|
61279
|
+
this.getActiveExecution(async).then((response) => {
|
|
61280
61280
|
this.fireExecutionEvents(response.execution);
|
|
61281
61281
|
this.notifyCockpit(response.execution);
|
|
61282
61282
|
this._currentExecution = response.execution;
|
|
@@ -61285,6 +61285,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
61285
61285
|
});
|
|
61286
61286
|
}
|
|
61287
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
|
+
}
|
|
61288
61304
|
getExecutionIdForQuery() {
|
|
61289
61305
|
if (this.isAnonymousColor(this.currentTestIdentifier) || !this.currentExecution) {
|
|
61290
61306
|
return null;
|