Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into v4-fixes
  • Loading branch information
SpencerTorres committed Jan 24, 2024
2 parents 0fd1ff3 + f595a3c commit 235a6d1
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/detect-breaking-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected].0
- uses: actions/[email protected].1
with:
node-version-file: '.nvmrc'
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
node-version-file: '.nvmrc'

Expand All @@ -44,7 +44,7 @@ jobs:
NODE_OPTIONS: '--max_old_space_size=4096'

- name: Archive plugin build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: plugin-dist
path: |
Expand All @@ -56,7 +56,7 @@ jobs:
needs: build
steps:
- name: Download plugin build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
id: download
with:
name: plugin-dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
sudo apt-get install -y zip zstd jq git
- name: Setup Node.js environment
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
node-version-file: '.nvmrc'

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,17 @@ datasources:
server: localhost
username: username
tlsSkipVerify: false
# tlsAuth: <bool>
# tlsAuthWithCACert: <bool>
# secure: <bool>
# timeout: <seconds>
# queryTimeout: <seconds>
# protocol: <native|http>
secureJsonData:
password: password
# tlsCACert: <string>
# tlsClientCert: <string>
# tlsClientKey: <string>
```

## Building queries
Expand Down
4 changes: 2 additions & 2 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func startGrafana(client *dagger.Client, clickHouseDist *dagger.Directory, click
From("grafana/grafana:main").
WithFile("/etc/grafana/grafana.ini", client.Host().File("e2e/custom.ini")).
WithMountedDirectory("/var/lib/grafana/plugins/clickhouse-datasource", clickHouseDist).
WithServiceBinding("clickhouse", clickhouseContainer).
WithServiceBinding("clickhouse", clickhouseContainer.AsService()).
WithExposedPort(3000)

fmt.Println("Grafana built")
Expand All @@ -183,7 +183,7 @@ func runK6(client *dagger.Client, ctx context.Context, grafanaContainer *dagger.
value, err := client.
Container().
From("grafana/k6:master-with-browser").
WithServiceBinding("grafana", grafanaContainer).
WithServiceBinding("grafana", grafanaContainer.AsService()).
WithEnvVariable("K6_BROWSER_ARGS", "no-sandbox").
WithFile("k6.test.js", testFile).
WithExec([]string{"run", "k6.test.js"}, dagger.ContainerWithExecOpts{InsecureRootCapabilities: true}).Stderr(ctx)
Expand Down
49 changes: 24 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ go 1.21
toolchain go1.21.4

require (
dagger.io/dagger v0.8.4
github.com/ClickHouse/clickhouse-go/v2 v2.16.0
dagger.io/dagger v0.9.6
github.com/ClickHouse/clickhouse-go/v2 v2.17.1
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-units v0.5.0
github.com/grafana/grafana-plugin-sdk-go v0.195.0
github.com/grafana/grafana-plugin-sdk-go v0.199.0
github.com/grafana/sqlds/v2 v2.7.2
github.com/paulmach/orb v0.10.0
github.com/paulmach/orb v0.11.0
github.com/pkg/errors v0.9.1
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
golang.org/x/net v0.19.0
github.com/testcontainers/testcontainers-go v0.27.0
golang.org/x/net v0.20.0
)

require (
Expand All @@ -26,14 +26,13 @@ require (
github.com/apache/arrow/go/v13 v13.0.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/goccy/go-json v0.10.0 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.3 // indirect
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
github.com/vektah/gqlparser/v2 v2.5.6 // indirect
github.com/zeebo/xxh3 v1.0.2 // indirect
go.opentelemetry.io/contrib/samplers/jaegerremote v0.15.1 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sync v0.4.0 // indirect
google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97 // indirect
)

Expand All @@ -43,22 +42,22 @@ require (
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/ClickHouse/ch-go v0.58.2 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/Microsoft/hcsshim v0.11.1 // indirect
github.com/Microsoft/hcsshim v0.11.4 // indirect
github.com/andybalholm/brotli v1.0.6 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cheekybits/genny v1.0.0 // indirect
github.com/chromedp/cdproto v0.0.0-20230816033919-17ee49f3eb4f // indirect
github.com/containerd/containerd v1.7.7 // indirect
github.com/containerd/containerd v1.7.11 // indirect
github.com/cpuguy83/dockercfg v0.3.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/getkin/kin-openapi v0.122.0 // indirect
github.com/getkin/kin-openapi v0.120.0 // indirect
github.com/go-faster/city v1.0.1 // indirect
github.com/go-faster/errors v0.6.1 // indirect
github.com/go-logr/logr v1.3.0 // indirect
Expand All @@ -70,12 +69,12 @@ require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/flatbuffers v23.1.21+incompatible // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.2 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-hclog v1.6.2 // indirect
github.com/hashicorp/go-plugin v1.6.0 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/invopop/yaml v0.2.0 // indirect
Expand Down Expand Up @@ -113,13 +112,13 @@ require (
github.com/pierrec/lz4/v4 v4.1.18 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/prometheus/client_golang v1.17.0 // indirect
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
github.com/prometheus/client_golang v1.18.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.45.0 // indirect
github.com/prometheus/procfs v0.11.1 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/shirou/gopsutil/v3 v3.23.9 // indirect
github.com/shirou/gopsutil/v3 v3.23.11 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
Expand All @@ -142,18 +141,18 @@ require (
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
go.opentelemetry.io/otel/trace v1.21.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
golang.org/x/crypto v0.16.0 // indirect
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.12.1-0.20230815132531-74c255bcf846 // indirect
golang.org/x/tools v0.14.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
google.golang.org/grpc v1.60.1 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 235a6d1

Please sign in to comment.