Skip to content

Commit

Permalink
fix(lambda): convert to posix paths before sending files to s3 (#2767)
Browse files Browse the repository at this point in the history
* fix(lambda): convert to posix paths before sending files to s3

* fix(lambda): use posix on lambda args too
  • Loading branch information
bernardobridge authored May 21, 2024
1 parent e99e126 commit aeba7c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/artillery/lib/platform/aws-lambda/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async function _uploadFileToS3(item, testRunId, bucketName) {
return;
}

const key = prefix + '/' + item.noPrefix;
const key = prefix + '/' + item.noPrefixPosix;

try {
await s3
Expand Down
4 changes: 2 additions & 2 deletions packages/artillery/lib/platform/aws-lambda/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ class PlatformLambda {
const p = bom.files.filter(
(x) => x.orig === this.opts.absoluteConfigPath
)[0];
this.artilleryArgs.push(p.noPrefix);
this.artilleryArgs.push(p.noPrefixPosix);
}

// This needs to be the last argument for now:
const p = bom.files.filter(
(x) => x.orig === this.opts.absoluteScriptPath
)[0];
this.artilleryArgs.push(p.noPrefix);
this.artilleryArgs.push(p.noPrefixPosix);
// 36 is length of a UUUI v4 string
const queueName = `${SQS_QUEUES_NAME_PREFIX}_${this.testRunId.slice(
0,
Expand Down

0 comments on commit aeba7c9

Please sign in to comment.