-
Notifications
You must be signed in to change notification settings - Fork 3k
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
'Tasks' section remains empty for html on v 2.7.0 #1994
Comments
@tyge68 Could I bother you to have a look? |
@cyberw it works for me on the 2.7.1 @eliezershindler Can you please retry with latest 2.7.1 ? if that still occurs, you could please provide more details how to reproduce it ? |
@eliezershindler so it's the offline report that is not working, I see it tries to get the tasks from the locust server, while it actually have the information in the HTML already. Not sure why it was then working already in the past. |
@tyge68 was that directed at me? If so, could you elaborate what the data-tasks attribute is? |
@eliezershindler I see this issue was introduced by this PR (1), @EzR1d3r do you remember why you had to change from initTasks to updateTasks ? it now doesn't work anymore in context of "saved" reports. @cyberw would it be ok to store a constant in the report.html so it could be used to define if that is using static data from DOM or read from /tasks ? Eventually a try .. catch around the get , and fallback to previous solution should also work. (1) 6eeb5b8 |
I have opened a PR in order to resolve it, @eliezershindler you can use the branch (1) eventually to validate it works for you too. (1) https://github.com/tyge68/locust/tree/issue/%231994 |
The changes were due to the fact that ratio have to be calculated dynamically (since the functionality of users with fixed_count makes ratio calculation meaningful only based on the current number) and in the web interface they are updated as users spawn. I tried to describe it in the commit. |
I'll try to reproduce this bug. It seems to me that I saw a dummy, the purpose of which I did not understand then, perhaps it is possible to correct the wrong behavior through python-code. |
#1994 Fixing to fallback in case of local execution
Hmm.. I merged the PR before seeing your comments @EzR1d3r . If there is a more appropriate solution, let me know. |
Sure. I'll make a fix soon, more so I found the ratio data is not complete anyway in 'post report'. I didn't know about this feature and didn't check it. |
@eliezershindler the fix was merged 2 days ago, 2.7.2 was released 3 days ago. |
confirmed working on 2.7.3 thanks |
I found this to be working on v2.5.1 but on 2.7.0, the 'tasks' section remains empty in the html report generated remains empty:
The text was updated successfully, but these errors were encountered: