s3: Support variable key length #175

Merged
fyrchik merged 1 commit from dstepanov-yadro/xk6-frostfs:feat/s3_key_lenght into master 2024-11-02 14:21:48 +00:00

Closes #173

Closes #173
dstepanov-yadro added 1 commit 2024-10-28 09:31:05 +00:00
[#173] s3: Support variable key length
All checks were successful
DCO action / DCO (pull_request) Successful in 1m2s
Tests and linters / Tests (pull_request) Successful in 1m43s
Tests and linters / Lint (pull_request) Successful in 2m42s
Tests and linters / Tests with -race (pull_request) Successful in 2m43s
f4c65c6112
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro reviewed 2024-10-28 09:31:43 +00:00
@ -1,17 +1,30 @@
import {uuidv4} from './k6-utils-1.4.0.js';
import { uuidv4 } from './k6-utils-1.4.0.js';
Author
Member

Excuse me, please, but can I not make a separate commit for format fix?

Excuse me, please, but can I not make a separate commit for format fix?
Owner

How come it is different? You have added this file in the last PR.

How come it is different? _You_ have added this file in the last PR.
Author
Member

But I haven't performed format :-(

But I haven't performed format :-(
dstepanov-yadro force-pushed feat/s3_key_lenght from f4c65c6112 to 44f08db0a5 2024-10-28 09:34:22 +00:00 Compare
fyrchik approved these changes 2024-10-28 12:10:10 +00:00
Dismissed
@ -17,0 +16,4 @@
return key;
}
const asciiLetters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890()"
Owner

Do we really need brackets?

Do we really need brackets?
Author
Member

Why not?

Why not?
Owner

Cuz they look strange.

Cuz they look strange.
Author
Member

Ok, dropped strange brackets

Ok, dropped strange brackets
fyrchik dismissed fyrchik's review 2024-10-28 12:10:38 +00:00
Reason:

misclick

Owner

To be clear, this PR adds support for arbitrary but constant length.
I am not sure what we wanted in the first place in that task? @anikeev-yadro
Another option is that the length is random too, so we have keys of lengths e.g. 3 to 10 in a single scenario.

Other that this, LGTM

To be clear, this PR adds support for arbitrary but constant length. I am not sure what we wanted in the first place in that task? @anikeev-yadro Another option is that the length is random too, so we have keys of lengths e.g. 3 to 10 in a single scenario. Other that this, LGTM
Member

I wanted it a little differently. Here is a more detailed description #173 (comment)
How can I run k6 with keys of different lengths in one run?

I wanted it a little differently. Here is a more detailed description https://git.frostfs.info/TrueCloudLab/xk6-frostfs/issues/173#issuecomment-54679 How can I run k6 with keys of different lengths in one run?
Author
Member

I wanted it a little differently. Here is a more detailed description #173 (comment)
How can I run k6 with keys of different lengths in one run?

You can run many k6 runs in parallel.

k6 is load test util, but looks like you try to use it for functional tests.

> I wanted it a little differently. Here is a more detailed description https://git.frostfs.info/TrueCloudLab/xk6-frostfs/issues/173#issuecomment-54679 > How can I run k6 with keys of different lengths in one run? You can run many k6 runs in parallel. k6 is **load** test util, but looks like you try to use it for functional tests.
dstepanov-yadro changed title from WIP: s3: Support variable key length to s3: Support variable key length 2024-10-28 15:31:03 +00:00
dstepanov-yadro requested review from performance-committers 2024-10-28 15:56:32 +00:00
dstepanov-yadro requested review from storage-core-committers 2024-10-28 15:56:38 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-10-28 15:56:38 +00:00
dstepanov-yadro force-pushed feat/s3_key_lenght from 44f08db0a5 to 1c7a3b3b6c 2024-10-28 15:58:12 +00:00 Compare
dstepanov-yadro added 1 commit 2024-10-28 16:07:21 +00:00
[#173] s3: Fix missing import
All checks were successful
DCO action / DCO (pull_request) Successful in 1m5s
Tests and linters / Tests (pull_request) Successful in 1m45s
Tests and linters / Lint (pull_request) Successful in 2m45s
Tests and linters / Tests with -race (pull_request) Successful in 2m44s
f5df03c718
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro reviewed 2024-10-28 16:08:29 +00:00
@ -9,6 +9,7 @@ import stats from 'k6/x/frostfs/stats';
import {generateS3Key} from './libs/keygen.js';
import {parseEnv} from './libs/env-parser.js';
import {textSummary} from './libs/k6-summary-0.0.2.js';
import {newGenerator} from './libs/datagen.js';
Author
Member

From #174/files

From https://git.frostfs.info/TrueCloudLab/xk6-frostfs/pulls/174/files
acid-ant approved these changes 2024-10-29 05:52:32 +00:00
aarifullin approved these changes 2024-10-29 14:16:10 +00:00
fyrchik merged commit f5df03c718 into master 2024-10-29 14:46:28 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/performance-committers
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/xk6-frostfs#175
No description provided.