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

Use the precompiled 'gotip' on the xk6 workflow #4072

Merged
merged 5 commits into from
Nov 20, 2024
Merged

Use the precompiled 'gotip' on the xk6 workflow #4072

merged 5 commits into from
Nov 20, 2024

Conversation

joanlopez
Copy link
Contributor

What?

It updates the xk6 workflow to use the precompiled gotip, as we already do for the Test 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

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@joanlopez joanlopez added the ci label Nov 18, 2024
@joanlopez joanlopez added this to the v0.56.0 milestone Nov 18, 2024
@joanlopez joanlopez self-assigned this Nov 18, 2024
@joanlopez joanlopez requested a review from a team as a code owner November 18, 2024 14:06
@joanlopez joanlopez requested review from oleiade and removed request for a team November 18, 2024 14:06
@joanlopez joanlopez marked this pull request as draft November 19, 2024 11:00
@@ -17,20 +17,26 @@ jobs:
matrix:
go: [stable, tip]
platform: [ubuntu-latest, windows-2019, macos-latest]
runs-on: ubuntu-latest
Copy link
Contributor Author

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)

Copy link
Contributor

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
Copy link
Contributor Author

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 💡

@joanlopez joanlopez marked this pull request as ready for review November 19, 2024 12:12
Copy link
Member

@oleiade oleiade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@joanlopez joanlopez merged commit 135f85b into master Nov 20, 2024
22 checks passed
@joanlopez joanlopez deleted the gotip-xk6 branch November 20, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants