-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): use xk6-sql driver and pin down versions (#1159)
Because - `xk6-sql` has a [new release](https://github.com/grafana/xk6-sql/releases/tag/v1.0.0) with breaking changes. This commit - Use driver modules introduced in the new release and pin down versions to avoid unexpected behaviour.
- Loading branch information
Showing
7 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,10 @@ jobs: | |
- name: Install k6 | ||
run: | | ||
go install go.k6.io/xk6/cmd/xk6@v${{ env.XK6_VERSION }} | ||
xk6 build v${{ env.K6_VERSION }} --with github.com/grafana/[email protected] && sudo cp k6 /usr/bin | ||
xk6 build v${{ env.K6_VERSION }} \ | ||
--with github.com/grafana/xk6-sql@v${{ env.XK6_SQL_VERSION }} \ | ||
--with github.com/grafana/xk6-sql-driver-postgres@v${{ env.XK6_SQL_POSTGRES_VERSION }} && \ | ||
sudo cp k6 /usr/bin | ||
- name: Launch Helm Instill Core (${{ inputs.target }}) | ||
# Dummy GitHub OAuth configuration variables are inserted on | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,10 @@ jobs: | |
- name: Install k6 | ||
run: | | ||
go install go.k6.io/xk6/cmd/xk6@v${{ env.XK6_VERSION }} | ||
xk6 build v${{ env.K6_VERSION }} --with github.com/grafana/[email protected] && sudo cp k6 /usr/bin | ||
xk6 build v${{ env.K6_VERSION }} \ | ||
--with github.com/grafana/xk6-sql@v${{ env.XK6_SQL_VERSION }} \ | ||
--with github.com/grafana/xk6-sql-driver-postgres@v${{ env.XK6_SQL_POSTGRES_VERSION }} && \ | ||
sudo cp k6 /usr/bin | ||
- name: Launch Instill Core (${{ inputs.target }}) | ||
# CFG_COMPONENT_SECRETS_GITHUB* variables are injected to test OAuth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,11 +36,14 @@ jobs: | |
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
|
||
- name: Install k6 | ||
run: | | ||
go install go.k6.io/xk6/cmd/xk6@v${{ env.XK6_VERSION }} | ||
xk6 build v${{ env.K6_VERSION }} --with github.com/grafana/[email protected] && sudo cp k6 /usr/bin | ||
xk6 build v${{ env.K6_VERSION }} \ | ||
--with github.com/grafana/xk6-sql@v${{ env.XK6_SQL_VERSION }} \ | ||
--with github.com/grafana/xk6-sql-driver-postgres@v${{ env.XK6_SQL_POSTGRES_VERSION }} && \ | ||
sudo cp k6 /usr/bin | ||
- name: Launch Instill Core (release) | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,14 @@ jobs: | |
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
|
||
- name: Install k6 | ||
run: | | ||
go install go.k6.io/xk6/cmd/xk6@v${{ env.XK6_VERSION }} | ||
xk6 build v${{ env.K6_VERSION }} --with github.com/grafana/[email protected] && sudo cp k6 /usr/bin | ||
xk6 build v${{ env.K6_VERSION }} \ | ||
--with github.com/grafana/xk6-sql@v${{ env.XK6_SQL_VERSION }} \ | ||
--with github.com/grafana/xk6-sql-driver-postgres@v${{ env.XK6_SQL_POSTGRES_VERSION }} && \ | ||
sudo cp k6 /usr/bin | ||
- name: Launch Instill Core (latest) | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,12 @@ FROM golang:alpine${ALPINE_VERSION} AS base | |
|
||
RUN apk add --update docker docker-compose docker-cli-compose docker-cli-buildx openrc containerd git bash make wget vim curl openssl util-linux | ||
|
||
ARG XK6_VERSION K6_VERSION | ||
ARG K6_VERSION XK6_VERSION XK6_SQL_VERSION XK6_SQL_POSTGRES_VERSION | ||
RUN go install go.k6.io/xk6/cmd/xk6@v${XK6_VERSION} | ||
RUN xk6 build v${K6_VERSION} --with github.com/grafana/[email protected] --output /usr/bin/k6 | ||
RUN xk6 build v${K6_VERSION} \ | ||
--with github.com/grafana/xk6-sql@v${XK6_SQL_VERSION} \ | ||
--with github.com/grafana/xk6-sql-driver-postgres@v${XK6_SQL_POSTGRES_VERSION} \ | ||
--output /usr/bin/k6 | ||
|
||
# Install Helm | ||
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters