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

No JSON file output when using circleCI orb for k6 #17

Open
nicholaspshaw opened this issue Feb 27, 2024 · 0 comments
Open

No JSON file output when using circleCI orb for k6 #17

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

Comments

@nicholaspshaw
Copy link

Orb version: grafana/[email protected]

What happened:

I am using a near copy of the guidance from the tutorial document I shared below:

version: 2.1
orbs:
grafana: grafana/[email protected]
workflows:
load_test:
jobs:

  • grafana/k6:
    script: loadtests/performance-test.js --out json=full.json > /tmp/artifacts

While I can see there is output occurring due to circleCI artifacts tab having the following contents (I have broken the link on purpose for security reasons):

tmp/artifacts

When I click on that artifact, it is not json, it is typical output you get in CLI, such as this:

execution: local
script: loadtests/performance-test.js
output: json (full.json)

scenarios: (100.00%) 1 scenario, 1 max VUs, 40s max duration (incl. graceful stop):
* protocol: 1 looping VUs for 10s (exec: protocol, gracefulStop: 30s)

There is no JSON file on the filesystem

Expected behavior:

I would expect the JSON file to be available on the filesystem. I see the uploading artifacts step occur but I cannot see that JSON file anywhere. Perhaps I'm missing something?

Uploading /tmp/artifacts to tmp/artifacts
Uploading /tmp/artifacts (3.1 kB): DONE
Total size uploaded: 3.1 KiB

Additional Information:

Hello,

I'm attempting to use the k6 orb to run k6 tests via circleCI. I am able to achieve this by following the guidance here: https://grafana.com/blog/2022/03/06/load-testing-with-circleci/

@nicholaspshaw nicholaspshaw added the bug Something isn't working label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant