K6 vs xk6 versions

Hi folks. I have generic question about the current version differences between k6 and xk6.

currently

  • k6 is at v.0.40.0
  • xk6 is at k6 v0.38.3, go v1.17.7

does anyone know of any features or bugs I should stay away from because of backwards compatibility issues between k6 and xk6?

What I did…

  1. git pull within the xk6 folder
  2. go install go.k6.io/xk6/cmd/xk6@latest
  3. returned → k6 v0.38.3 ((devel), go1.17.7, darwin/amd64)

Then I did

  1. brew upgrade k6
  2. returned → Warning: k6 0.40.0 already installed

Should I just build xk6 with the latest version of k6 locally rather than depend on – go install go.k6.io/xk6/cmd/xk6@latest ?? Or do I not need to worry about backwards compatibility between k6 0.40.0 and 0.38.3?

Thx

Hi @PlayStay !

xk6 is not the k6, it’s a tool that build the binary :slight_smile:

Depending on the extension(s) you’ll see different versions:

 xk6 build --with github.com/szkiba/xk6-prometheus@latest
 ./k6 version
k6 v0.40.0 ((devel), go1.19.2, linux/amd64)

xk6 build --with github.com/szkiba/xk6-prometheus@latest
 ./k6 version
k6 v0.32.0 ((devel), go1.19.2, linux/amd64)

and so on.

For every release, we’re trying to mention the most important things in the release notes. So I’d recommend checking if there is something important for you.

Let me know if that answers,
Cheers!

1 Like

Thanks @olegbespalov I didn’t even think to check the version of the k6 binary built with xk6 and the extension. :poop:

cwilliams2@us88665a3ea648 xk6-output-prometheus-remote % ./k6 version “built from xk6”

k6 v0.40.0 ((devel), go1.19.2, darwin/amd64)

cwilliams2@us88665a3ea648 xk6-output-prometheus-remote % k6 version “brew download”

k6 v0.40.0 ((devel), go1.19.1, darwin/amd64)

Same versions as expected.