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

feat: add grafana/xk6 #6611

Merged
merged 2 commits into from Sep 28, 2022
Merged

Conversation

jklipp
Copy link
Contributor

@jklipp jklipp commented Sep 28, 2022

grafana/xk6: Build k6 with extensions

$ aqua g -i grafana/xk6

How to confirm if this package works well

xk6 builds custom versions of grafana/k6 that include specified extensions. To verify that the binary is working, one can run xk6 build which will fetch k6 sources and build a k6 binary at the latest version. A go 1.17+ installation is required.

21:52 $ xk6 build
2022/09/27 21:57:07 [INFO] Temporary folder: /tmp/buildenv_2022-09-27-2157.167526117
2022/09/27 21:57:07 [INFO] Initializing Go module
2022/09/27 21:57:07 [INFO] exec (timeout=10s): /home/jklipp/.local/share/aquaproj-aqua/bin/go mod init k6
go: creating new go.mod: module k6
2022/09/27 21:57:07 [INFO] Pinning versions
2022/09/27 21:57:07 [INFO] exec (timeout=0s): /home/jklipp/.local/share/aquaproj-aqua/bin/go mod tidy -compat=1.17
go: warning: "all" matched no packages
2022/09/27 21:57:07 [INFO] Writing main module: /tmp/buildenv_2022-09-27-2157.167526117/main.go
2022/09/27 21:57:07 [INFO] exec (timeout=0s): /home/jklipp/.local/share/aquaproj-aqua/bin/go mod edit -require go.k6.io/k6@v0.40.0

2022/09/27 21:57:07 [INFO] exec (timeout=0s): /home/jklipp/.local/share/aquaproj-aqua/bin/go mod tidy -compat=1.17
go: downloading golang.org/x/net v0.0.0-20220630215102-69896b714898
go: downloading golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d
go: downloading google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08
go: downloading github.com/rogpeppe/go-internal v1.6.1
2022/09/27 21:57:09 [INFO] exec (timeout=0s): /home/jklipp/.local/share/aquaproj-aqua/bin/go mod tidy -compat=1.17
2022/09/27 21:57:09 [INFO] Build environment ready
2022/09/27 21:57:09 [INFO] Building k6
2022/09/27 21:57:09 [INFO] exec (timeout=0s): /home/jklipp/.local/share/aquaproj-aqua/bin/go mod tidy -compat=1.17
2022/09/27 21:57:09 [INFO] exec (timeout=0s): /home/jklipp/.local/share/aquaproj-aqua/bin/go build -o /home/jklipp/aqua-registry/k6 -ldflags -w -s -trimpath
2022/09/27 21:57:19 [INFO] Build complete: ./k6
2022/09/27 21:57:19 [INFO] Cleaning up temporary folder: /tmp/buildenv_2022-09-27-2157.167526117

xk6 has now produced a new k6 binary which may be different than the command on your system path!
Be sure to run './k6 run <SCRIPT_NAME>' from the '/home/jklipp/aqua-registry' directory.

Reference

[grafana/xk6](https://github.com/grafana/xk6): Build k6 with extensions

```console
$ aqua g -i grafana/xk6
```

## How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

```console
$
```

If files such as configuration file are needed, please share them.

```
```

Reference

-
@suzuki-shunsuke
Copy link
Member

Thank you for your contribution!

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Sep 28, 2022
@suzuki-shunsuke suzuki-shunsuke added this to the v3.62.1 milestone Sep 28, 2022
@jklipp
Copy link
Contributor Author

jklipp commented Sep 28, 2022

Thank you for the updated aqua-registry tool @suzuki-shunsuke, it was much easier to add a new package than a couple months ago. The checksum checking is a nice addition as well, I had to install 1.20-6-checksum manually to figure out why the tests were failing (sha512 vs sha256 for this package).

@suzuki-shunsuke
Copy link
Member

Thank you for your feedback!
I'm glad aqua-registry tool helps you.

I'll release v3.63.0 this night.

@suzuki-shunsuke suzuki-shunsuke merged commit 4a43e01 into aquaproj:main Sep 28, 2022
@suzuki-shunsuke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants