Skip to content

Commit

Permalink
Merge pull request #220 from LambdaTest/stage
Browse files Browse the repository at this point in the history
Release PR: 4.0.22
  • Loading branch information
sushobhit-lt authored Feb 18, 2025
2 parents 5ae8489 + e0f5dde commit a8cc07b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lambdatest/smartui-cli",
"version": "4.0.21",
"version": "4.0.22",
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
"files": [
"dist/**/*"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class httpClient {

async request(config: AxiosRequestConfig, log: Logger): Promise<Record<string, any>> {
log.debug(`http request: ${config.method} ${config.url}`);
if(config && config.data) {
if(config && config.data && !config.data.name) {
log.debug(config.data);
}
return this.axiosInstance.request(config)
Expand Down
3 changes: 3 additions & 0 deletions src/tasks/finalizeBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { updateLogContext } from '../lib/logger.js';
import chalk from 'chalk';
import { unlinkSync } from 'fs';
import constants from '../lib/constants.js';
import fs from 'fs';

export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRendererFactory> => {
return {
Expand All @@ -29,6 +30,8 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
ctx.log.debug(`Closed server`);
let resp = await ctx.client.getS3PreSignedURL(ctx);
await ctx.client.uploadLogs(ctx, resp.data.url);
fs.unlinkSync(constants.LOG_FILE_PATH);
ctx.log.debug(`Log file deleted: ${constants.LOG_FILE_PATH}`);
} catch (error: any) {
ctx.log.debug(error);
}
Expand Down

0 comments on commit a8cc07b

Please sign in to comment.