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

Report charts remain empty with short test #159

Closed
oleiade opened this issue Jan 24, 2024 · 1 comment · Fixed by #174
Closed

Report charts remain empty with short test #159

oleiade opened this issue Jan 24, 2024 · 1 comment · Fixed by #174
Assignees
Labels
bug Something isn't working

Comments

@oleiade
Copy link
Member

oleiade commented Jan 24, 2024

Brief summary

I ran a small test with the latest k6 build and noticed that when using the K6_WEB_DASHBOARD_REPORT option if a test doesn't run long enough (that's my assumption?), the report file is successfully created, but the charts appear to be empty:

command:

K6_WEB_DASHBOARD=true K6_WEB_DASHBOARD_EXPORT='report.html' go run go.k6.io/k6 run ../extensions/xk6-dashboard/short-script.js

script:

import http from "k6/http";

export let options = {
  iterations: 100,
};

export default function () {
  http.get("https://test-api.k6.io/");
}

outcome:
CleanShot 2024-01-24 at 12 49 43

k6 version

master

xk6-dashboard version

0.7.2

OS

MacOS

Docker version and image (if applicable)

No response

Steps to reproduce the problem

See Summary

Expected behaviour

Best case scenario for me would be always to have some data in the report, regardless of the duration of the test. But I acknowledge there might be technical limitations to doing that.

Otherwise, I think I would expect either the report file not to be created at all if not enough data is available. Or the report to indicate more explicitly why no data is present in some form (although I think that's not necessarily my preferred option).

Actual behaviour

File is created, but the charts remain empty.

@oleiade oleiade added the bug Something isn't working label Jan 24, 2024
@bubafinder
Copy link

Same at me, all short tests are causing empty charts.

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

Successfully merging a pull request may close this issue.

3 participants