locustio / locust

Write scalable load tests in plain Python 🚗💨
https://locust.cloud
MIT License
24.84k stars 2.97k forks source link

The Charts presentation in the report downloaded by locust is problematic #2706

Closed Tao-Whale closed 5 months ago

Tao-Whale commented 5 months ago

Prerequisites

Description

When I used the V1.0.0 version, the downloaded charts appeared fine brznKr7O6H

When I used the newer version (2.27, 2.25), the downloaded chart was not fully displayed, and I tried the lower version 2.19, which had the same problem WisXLzPws4 image

Command line

locust --tag post/pipelines

Locustfile contents

class QuickstartUser(HttpUser):
    wait_time = constant(1)

    @task
    @tag("post/pipelines")
    def create_pipeline(self):
        self.client.post("/pipelines", json={
            "name": f"pressure_test_pipeline_{int(time.time())}",
            "version": "1.0.0",
            "title": "pressure_test_pipeline_title",
            "detailLink": "",
            "maintainer": "tester",
            "dag": "pipeline-bidsapp-bidsinfo",
            "isPublic": True
        })

Python version

3.9

Locust version

2.27

Operating system

Windows11

cyberw commented 5 months ago

Hi!

Is this an issue with the downloaded report or also the live view?

Tao-Whale commented 5 months ago

Hi~ When I click on "Download Report" and then preview the html report I have a problem with Charts, and of course the same thing happens after the download.

I think it's caused by the run time being too short, because I only ran it for 5 seconds, and when I ran it for 10s the charts were displayed properly

[run time: 5s] image

[run time: 10s] image

cyberw commented 5 months ago

@andrewbaldwin44 if you have time, can you have a look at what happens in the RPS graph with short run times? Super-short run times arent that common I think, but the line/dot should not be missing completely or be zero.