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 8 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 14 times, most recently from a87160d to 26f8d91 Compare November 12, 2024 17:55
@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
@roobre
Copy link
Member Author

roobre commented Dec 10, 2024

Drone CI fails as it is going to be decommissioned soon, and agreed with @mem that it is not worth maintaining.

@mem
Copy link
Contributor

mem commented Dec 11, 2024

@roobre rebase, please?

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.

2 participants