-
Notifications
You must be signed in to change notification settings - Fork 109
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
fix(ci): use xk6-sql driver and pin down versions #1159
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ @donch1989 do the
make-*
workflows need this step? I don't see where they are referenced and the workflow itself doesn't need k6