Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Output extensions not detected in CLI #31

Open
realviktornedelko opened this issue Feb 7, 2024 · 0 comments
Open

Output extensions not detected in CLI #31

realviktornedelko opened this issue Feb 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@realviktornedelko
Copy link

Brief summary

When providing -o output-prometheus-pushgateway flag same output as with out-of-the-box k6 is received.

k6 version

v0.49.0

xk6-dashboard version

N/A

OS

macOS 14.2.1 (23C71)

Docker version and image (if applicable)

szkiba/k6x

Steps to reproduce the problem

@ type of preconditions were tested:

  1. Gitlab CI with image: szkiba/k6x
  2. Local install of go install github.com/szkiba/k6x@latest and even go install github.com/szkiba/k6x@latest --with github.com/martymarron/xk6-output-prometheus-pushgateway@latest

Run a script with -o output-prometheus-pushgateway flag. E.g:
k6x run dist/discovery/temp-test.js -o output-prometheus-pushgateway
or
k6x run -o output-prometheus-pushgateway dist/discovery/temp-test.js

P.S. If I run ./k6 run dist/discovery/temp-test.js -o output-prometheus-pushgateway after generating a binary locally using the bundle builder: xk6 build v0.49.0 --with github.com/martymarron/xk6-output-prometheus-pushgateway it works as expected.

Expected behaviour

Output extension is detected from command line and necessary package is involved

Actual behaviour

time="2024-02-07T09:44:24Z" level=error msg="invalid output type 'output-prometheus-pushgateway', available types are: cloud, csv, experimental-prometheus-rw, influxdb, json, statsd, web-dashboard"
@realviktornedelko realviktornedelko added the bug Something isn't working label Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant