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

k6 run -o cloud does not work with scripts from shortcut URLs #1236

Closed
rafa-munoz opened this issue Nov 12, 2019 · 3 comments · Fixed by #1237
Closed

k6 run -o cloud does not work with scripts from shortcut URLs #1236

rafa-munoz opened this issue Nov 12, 2019 · 3 comments · Fixed by #1237

Comments

@rafa-munoz
Copy link

Given I logged in to the cloud successfully, when I run:

k6 run -u 1 -d 10s github.com/loadimpact/k6/samples/http_get.js it works well.

But when I run:
k6 run -o cloud -u 1 -d 10s github.com/loadimpact/k6/samples/http_get.js, it returns the following error message:

Output: ERRO[0002] (422/E2)
Validation failed
name: Shorter than minimum length 2

Extra info:

$ k6 version
k6 v0.25.1

$ cat /proc/version
Linux version 4.15.0-65-generic (buildd@lgw01-amd64-006) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019

Thank you.

@cuonglm
Copy link
Contributor

cuonglm commented Nov 12, 2019

This seems to be the error from cloud API, not k6 itself.

@na--
Copy link
Member

na-- commented Nov 12, 2019

@cuonglm, you're technically correct, but see the discussion in Slack. In summary, this is most likely caused by a regression introduced in #1059. For one, this is broken in k6 v0.25.1 and v0.25.0, but works with k6 v0.24.0.

@na--
Copy link
Member

na-- commented Nov 12, 2019

And it's indeed an issue with the "magic" shortcut URLs, since running k6 run -o cloud -u 1 -d 10s raw.githubusercontent.com/loadimpact/k6/master/samples/http_get.js works even with the latest k6 versions.

@na-- na-- changed the title Outputting results to the cloud does not work k6 run -o cloud does not work with scripts from shortcut URLs Nov 12, 2019
@na-- na-- added the bug label Nov 12, 2019
@na-- na-- modified the milestones: v0.26.0, v0.27.0 Nov 12, 2019
@na-- na-- added the high prio label Nov 12, 2019
@na-- na-- modified the milestones: v0.27.0, v0.26.0 Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants