Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lambda): convert to posix paths before sending files to s3 #2767

Merged
merged 2 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading