Need to add somethink like version in every k6 build #68

Closed
opened 2023-05-23 16:32:43 +00:00 by anikeev-yadro · 4 comments
Member

Need to add something like version in every k6 build.
It will be good idea to print these version in output on k6 starts.

Somewhere here:

root@loader02:/home/service/frostfs-xk6-verify# date;./k6 run -e DURATION=10 -e WRITERS=1 -e READERS=0 -e DELETERS=0 -e DELETE_AGE=10 -e REGISTRY_FILE=/var/tmp/grpc_reg_230523-verify-2.json -e WRITE_OBJ_SIZE=8 -e GRPC_ENDPOINTS=172.26.160.241:8080 -e PREGEN_JSON=/var/tmp/grpc_230323-verify-1.json -e STREAM_TIMEOUT=30 -e SLEEP_READ=0.2 -e SLEEP_WRITE=0.2 scenarios/grpc.js
Tue May 23 09:27:35 UTC 2023

          /\      |‾‾| /‾‾/   /‾‾/
     /\  /  \     |  |/  /   /  /
    /  \/    \    |     (   /   ‾‾\
   /          \   |  |\  \ |  (‾)  |
  / __________ \  |__| \__\ \_____/ .io
Need to add something like version in every k6 build. It will be good idea to print these version in output on k6 starts. Somewhere here: ``` root@loader02:/home/service/frostfs-xk6-verify# date;./k6 run -e DURATION=10 -e WRITERS=1 -e READERS=0 -e DELETERS=0 -e DELETE_AGE=10 -e REGISTRY_FILE=/var/tmp/grpc_reg_230523-verify-2.json -e WRITE_OBJ_SIZE=8 -e GRPC_ENDPOINTS=172.26.160.241:8080 -e PREGEN_JSON=/var/tmp/grpc_230323-verify-1.json -e STREAM_TIMEOUT=30 -e SLEEP_READ=0.2 -e SLEEP_WRITE=0.2 scenarios/grpc.js Tue May 23 09:27:35 UTC 2023 /\ |‾‾| /‾‾/ /‾‾/ /\ / \ | |/ / / / / \/ \ | ( / ‾‾\ / \ | |\ \ | (‾) | / __________ \ |__| \__\ \_____/ .io ```
Owner

You can do it if k6 is build without local replacement: xk6 build --with git.frostfs.info/TrueCloudLab/xk6-frostfs@master
For paths versioning doesn't work.

You can do it if k6 is build without local replacement: `xk6 build --with git.frostfs.info/TrueCloudLab/xk6-frostfs@master` For paths versioning doesn't work.
Author
Member

It doesn't help me to understand how version installed in the system.
Because different binares k6 were build on the different times have the same version:

service@loader02:~$ /etc/k6/k6 version
k6 v0.38.2 ((devel), go1.18.4, linux/amd64)
anikeev@NB-1670:~/neofs/xk6-frostfs$ ./k6 version
k6 v0.38.2 ((devel), go1.18.1, linux/amd64)
It doesn't help me to understand how version installed in the system. Because different binares k6 were build on the different times have the same version: ``` service@loader02:~$ /etc/k6/k6 version k6 v0.38.2 ((devel), go1.18.4, linux/amd64) ``` ``` anikeev@NB-1670:~/neofs/xk6-frostfs$ ./k6 version k6 v0.38.2 ((devel), go1.18.1, linux/amd64) ```
Owner

If you build with --with=..@master syntax, version will should show dependencies (at least on my machine.

k6 v0.44.1 ((devel), go1.20.4, linux/amd64)
Extensions:
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/datagen [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/env [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/local [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/logging [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/native [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/registry [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/s3 [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/s3local [js]
  git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, profile [output]

Let's see whether we can show custom output somewhere. Using -ldflags to set some Version variable to git describe is possible.

If you build with `--with=..@master` syntax, version will should show dependencies (at least on my machine. ``` k6 v0.44.1 ((devel), go1.20.4, linux/amd64) Extensions: git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/datagen [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/env [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/local [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/logging [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/native [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/registry [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/s3 [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, k6/x/frostfs/s3local [js] git.frostfs.info/TrueCloudLab/xk6-frostfs v0.0.0-20230524084102-153390cedb3b, profile [output] ``` Let's see whether we can show custom output _somewhere_. Using `-ldflags` to set some `Version` variable to `git describe` is possible.
fyrchik added the
P3
label 2023-08-07 07:15:34 +00:00
fyrchik added
P1
discussion
good first issue
and removed
P3
labels 2024-05-03 12:38:30 +00:00
dstepanov-yadro self-assigned this 2024-05-13 06:10:54 +00:00

Resolved by CI/CD

Resolved by CI/CD
Sign in to join this conversation.
No milestone
No project
No assignees
3 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#68
No description provided.