@lambdatest/smartui-cli 4.1.54-beta.0 → 4.1.55-beta.0
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/dist/index.cjs +10 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2674,7 +2674,7 @@ var server_default = (ctx) => __async(null, null, function* () {
|
|
|
2674
2674
|
if (Date.now() - startTime > timeoutDuration) {
|
|
2675
2675
|
replyCode = 202;
|
|
2676
2676
|
replyBody = lastExternalResponse.data;
|
|
2677
|
-
replyBody.error =
|
|
2677
|
+
replyBody.error = `Request timed out, Snapshot still processing (timeoutDuration: ${timeoutDuration / 1e3}s, buildId: ${buildId}, snapshotName: ${snapshotName}, contextId: ${contextId})`;
|
|
2678
2678
|
return reply.code(replyCode).send(replyBody);
|
|
2679
2679
|
}
|
|
2680
2680
|
} catch (externalApiError) {
|
|
@@ -2895,7 +2895,7 @@ var authExec_default = (ctx) => {
|
|
|
2895
2895
|
};
|
|
2896
2896
|
|
|
2897
2897
|
// package.json
|
|
2898
|
-
var version = "4.1.
|
|
2898
|
+
var version = "4.1.55-beta.0";
|
|
2899
2899
|
var package_default = {
|
|
2900
2900
|
name: "@lambdatest/smartui-cli",
|
|
2901
2901
|
version,
|
|
@@ -4335,13 +4335,18 @@ var finalizeBuild_default = (ctx) => {
|
|
|
4335
4335
|
let uploadCLILogsToS3 = ctx2.config.useLambdaInternal || uploadDomToS3ViaEnv2;
|
|
4336
4336
|
if (!uploadCLILogsToS3) {
|
|
4337
4337
|
ctx2.log.debug(`Log file to be uploaded`);
|
|
4338
|
-
|
|
4339
|
-
|
|
4338
|
+
try {
|
|
4339
|
+
let resp = yield ctx2.client.getS3PreSignedURLForCaps(ctx2, buildId, projectToken);
|
|
4340
|
+
yield ctx2.client.uploadLogsForCaps(ctx2, resp.data.url);
|
|
4341
|
+
uploadedCliLogsBuildIds.add(buildId);
|
|
4342
|
+
} catch (error) {
|
|
4343
|
+
ctx2.log.debug(`Error uploading CLI logs for build ${buildId}, session ${sessionId}: ${error.message}`);
|
|
4344
|
+
}
|
|
4340
4345
|
} else {
|
|
4341
4346
|
ctx2.log.debug(`Log file to be uploaded via LSRS`);
|
|
4342
4347
|
ctx2.client.sendCliLogsToLSRSForCaps(ctx2, buildId, projectToken);
|
|
4348
|
+
uploadedCliLogsBuildIds.add(buildId);
|
|
4343
4349
|
}
|
|
4344
|
-
uploadedCliLogsBuildIds.add(buildId);
|
|
4345
4350
|
}
|
|
4346
4351
|
yield ctx2.client.finalizeBuildForCapsWithToken(buildId, totalSnapshots, projectToken, ctx2.log);
|
|
4347
4352
|
if (ctx2.autoTunnelStarted) {
|