slnodejs 6.2.7 → 6.2.8
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/package.json
CHANGED
package/tsOutputs/api.js
CHANGED
|
@@ -30,7 +30,7 @@ var cockpit_notifier_1 = require("./common/agent-events/cockpit-notifier");
|
|
|
30
30
|
Object.defineProperty(exports, "CockpitNotifier", { enumerable: true, get: function () { return cockpit_notifier_1.CockpitNotifier; } });
|
|
31
31
|
var common_1 = require("./common");
|
|
32
32
|
Object.defineProperty(exports, "TestSelectionStatus", { enumerable: true, get: function () { return common_1.TestSelectionStatus; } });
|
|
33
|
-
const
|
|
33
|
+
const getLogger = () => logger_1.LoggerFactory.getCreateApplicationLogger();
|
|
34
34
|
function createRemoteAgent(cliArgs, useRelativeCoverage = false, disableStateTracker = false, checkBsidResolvedFromLabId = true) {
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
const agentConfig = yield cliArgsToAgentConfig(cliArgs);
|
|
@@ -55,7 +55,7 @@ function cliArgsToAgentConfig(cliArgs) {
|
|
|
55
55
|
throw new Error('Token is not valid');
|
|
56
56
|
}
|
|
57
57
|
const httpConfig = Object.assign(Object.assign({ testProjectId: cliArgs.testProjectId, prID: cliArgs.prID }, tokenData), { proxy: cliArgs.proxy });
|
|
58
|
-
const backendProxy = backend_proxy_with_default_client_1.BackendProxyFactory.initWithDefaultClient(agent_instance_data_1.AgentInstanceDataFactory.getOrCreateAgentInstanceData(), httpConfig,
|
|
58
|
+
const backendProxy = backend_proxy_with_default_client_1.BackendProxyFactory.initWithDefaultClient(agent_instance_data_1.AgentInstanceDataFactory.getOrCreateAgentInstanceData(), httpConfig, getLogger());
|
|
59
59
|
const buildSessionData = yield new test_runner_build_session_data_builder_1.TestRunnerBuildSessionDataBuilder(backendProxy).build(cliArgs);
|
|
60
60
|
if (!buildSessionData) {
|
|
61
61
|
throw new Error('could not resolve build session data');
|
|
@@ -63,7 +63,7 @@ function cliArgsToAgentConfig(cliArgs) {
|
|
|
63
63
|
backendProxy.updateMetadata({
|
|
64
64
|
buildSessionId: buildSessionData.buildSessionId,
|
|
65
65
|
});
|
|
66
|
-
|
|
66
|
+
getLogger().debug(`Resolved build session data ${(0, log_formatters_1.formatObjectForLogging)(buildSessionData)}`);
|
|
67
67
|
return createAgentConfig(Object.assign(Object.assign(Object.assign(Object.assign({}, cliArgs), tokenData), buildSessionData), { build: buildSessionData.buildName, branch: buildSessionData.branchName }));
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Auto-generated by generate-message-types.js - DO NOT EDIT
|
|
3
|
-
// Generated at: 2026-04-
|
|
3
|
+
// Generated at: 2026-04-27T13:34:01.395Z
|
|
4
4
|
// Message versions: common=2.4.1, node=1.0.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ALL_MESSAGE_KEYS = exports.TestListenerMessages = exports.GeneralMessages = exports.ErrorNetworkMessages = exports.CdAgentMessages = exports.BuildScannerMessages = void 0;
|