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

upgrade nebula-go #9

Merged
merged 2 commits into from
Dec 27, 2021
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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ VERSION ?= v0.0.8

build:
go install github.com/k6io/xk6/cmd/xk6@v0.4.1
$(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@latest;
$(GOPATH)/bin/xk6 build --with github.com/vesoft-inc/k6-plugin@$(VERSION);

build-all: build-arm-v7

Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ Used to test [Nebula-Graph](https://github.com/vesoft-inc/nebula-graph).
* xk6 v0.4.1
* Golang 1.16+

## Version match

There are the version correspondence between k6-plugin and Nebula:

| k6-plugin Version | Nebula Version |
|:-----------------:|:--------------:|
| v0.0.8 | 2.5.0, 2.5.1, 2.6.0, 2.6.1 |
| master | nightly |

## Build

To build a `k6` binary with this extension, first ensure you have the prerequisites:
Expand All @@ -27,9 +36,13 @@ Then:

2. Build the binary:

```bash
xk6 build --with github.com/vesoft-inc/k6-plugin@v0.4.1
```
```bash
xk6 build --with github.com/vesoft-inc/k6-plugin@{version}
# e.g. build v0.0.8
xk6 build --with github.com/vesoft-inc/k6-plugin@v0.0.8
# e.g. build master
xk6 build --with github.com/vesoft-inc/k6-plugin@master
```

## Example

Expand Down Expand Up @@ -227,7 +240,6 @@ And then ramping up from 10 vus to 35 vus in 10 minutes.

Then ramping down from 35 vu3 to 0 in 3 minutes.


It is much useful when we test multiple scenarios.

please refer to [k6 options](https://k6.io/docs/using-k6/options/)
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Data []string
type Output struct {
TimeStamp int64
NGQL string
Latency int32
Latency int64
ResponseTime int32
IsSucceed bool
Rows int32
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/vesoft-inc/k6-plugin
go 1.16

require (
github.com/vesoft-inc/nebula-go/v2 v2.5.1
github.com/vesoft-inc/nebula-go/v2 v2.5.2-0.20211223072708-423659a022a3
go.k6.io/k6 v0.33.0
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLY
github.com/urfave/negroni v0.3.1-0.20180130044549-22c5532ea862/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4/go.mod h1:50wTf68f99/Zt14pr046Tgt3Lp2vLyFZKzbFXTOabXw=
github.com/vesoft-inc/nebula-go/v2 v2.5.1 h1:y4gBQzRqb3W4jeBbbAdtCPxVZ4tXKv9TJLHjNuWGhI0=
github.com/vesoft-inc/nebula-go/v2 v2.5.1/go.mod h1:fehDUs97/mpmxXi9WezhznX0Dg7hmQRUoOWgDZv9zG0=
github.com/vesoft-inc/nebula-go/v2 v2.5.2-0.20211223072708-423659a022a3 h1:ccWeKTZoyH9S1E81ApPHFomfPseEDTzvgpgOHzlJiz8=
github.com/vesoft-inc/nebula-go/v2 v2.5.2-0.20211223072708-423659a022a3/go.mod h1:fehDUs97/mpmxXi9WezhznX0Dg7hmQRUoOWgDZv9zG0=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down