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

fetch precompiled xk6 extension from grafana/xk6-sm #966

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

roobre
Copy link
Member

@roobre roobre commented Oct 30, 2024

This PR removes the sm extension code from this repo and adjust Makefiles and Dockerfiles to pull k6 from https://github.com/grafana/xk6-sm.

A bullet-point summary

  • $(DISTDIR)/$(OS)-$(ARCH)/sm-k6 targets have been added to curl k6 from grafana/xk6-sm releases
    • sm-k6-native is a convenient alias for the host's OS/ARCH, while sm-k6 downloads sm-k6 for all known architectures
  • No dependencies have been added to test or package targets. They can be, but as the package target does not depend on build, I followed that pattern.
    • Instead, make sm-k6 is manually invoked in the pipeline.
  • I've bothered to make goreleaser work with this, just to have drone not fail while we get to remove it. For that, the build target needs to depend on sm-k6-native. If we decide to not keep dependencies, we can remove this when we ditch goreleaser (details on why this was needed are on a comment).

Part of https://github.com/grafana/synthetic-monitoring/issues/160

@roobre roobre force-pushed the xk6-sm-repo branch 5 times, most recently from 22c0782 to b932ad2 Compare October 30, 2024 10:47
@roobre roobre force-pushed the xk6-sm-repo branch 5 times, most recently from 5b083ab to 7154d3f Compare November 12, 2024 16:22
@roobre roobre force-pushed the xk6-sm-repo branch 7 times, most recently from af9c4e7 to 9ee2e6a Compare November 12, 2024 17:22
Otherwise, it is not currently possible for goreleaser to access files
created by `sm-k6`, as goreleaser wipes `dist` before running.
@roobre roobre marked this pull request as ready for review November 13, 2024 09:52
@roobre roobre requested a review from a team as a code owner November 13, 2024 09:52
@roobre roobre changed the title wip: fetch precompiled xk6 extension from grafana/xk6-sm fetch precompiled xk6 extension from grafana/xk6-sm Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant