fetch precompiled xk6 extension from grafana/xk6-sm
#966
+42
−1,555
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.
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 tocurl
k6 from grafana/xk6-sm releasessm-k6-native
is a convenient alias for the host's OS/ARCH, whilesm-k6
downloads sm-k6 for all known architecturestest
orpackage
targets. They can be, but as the package target does not depend on build, I followed that pattern.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, thebuild
target needs to depend onsm-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