-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use the precompiled 'gotip' on the xk6 workflow #4072
Conversation
@@ -17,20 +17,26 @@ jobs: | |||
matrix: | |||
go: [stable, tip] | |||
platform: [ubuntu-latest, windows-2019, macos-latest] | |||
runs-on: ubuntu-latest |
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.
Looks like we weren't using matrix.platform
, so actually all the jobs were being executed on the same platform 😅
I realized it, because when I tried to use the precompiled Go tip, it complained because the binary wasn't in the expected platform (e.g. a binary built for Windows, trying to be executed on Ubuntu, in this case haha)
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.
Good catch!
@@ -54,6 +60,13 @@ jobs: | |||
"${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then | |||
export XK6_K6_REPO="github.com/${{ github.event.pull_request.head.repo.full_name }}" | |||
fi | |||
# The following is a workaround for Windows, cause when using 'shell: bash', the PATH is expressed |
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.
Something I learned along the way, while working on this PR 💡
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.
🚀
What?
It updates the
xk6
workflow to use the precompiled gotip, as we already do for theTest
workflow.Why?
Last week I realized that we aren't using it because the CI workflow failed due to 'https://go.googlesource.com/go/' returning
503 Service Unavailable
(see here).This isn't a "perfect" solution for that situation, because I guess the GitHub APIs (Assets, in this case) could eventually go down, as the site where Google hosts code was in that case, but it speeds up the workflow and reuses what we're already using in other workflows as
Test
or k6-ci , for the sake of consistency.Checklist
make lint
) and all checks pass.make tests
) and all tests pass.Related PR(s)/Issue(s)