-
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
Stats: New argument "--csv-full-history" appends stats entries every interval in a new "_stats_history.csv" File #1146
Conversation
This PR does the same work started in : #1007. |
Codecov Report
@@ Coverage Diff @@
## master #1146 +/- ##
==========================================
- Coverage 79.26% 79.13% -0.13%
==========================================
Files 20 20
Lines 1895 1912 +17
Branches 294 299 +5
==========================================
+ Hits 1502 1513 +11
- Misses 321 323 +2
- Partials 72 76 +4
Continue to review full report at Codecov.
|
29deb28
to
fb358ef
Compare
Rebased to resolve merge conflicts. |
@heyman Can you please take a look at this PR.
|
This is what I think we should do:
I know this is much more job, but the current state of Locust's CSV handling is not very good, and I don't want to add a whole new CSV feature before we've improved on it. Let me know if you're interested in working on this.
I don't think it's necessary to have a command line argument for it. However, if we're doing the above changes, I think we should move out the CSV-related code into a separate python module (
I think it was just some random network error at Travis. Restarted the build and it completed without errors. |
@heyman Thanks for the reply with the detailed suggestions. Will make more commits with all changes as suggested and tag you once i am done. |
@heyman Just to confirm - do you mean we should have Type, Name columns in both files and where Type will be the same value as method in
|
That's great! Just let me know if you have any questions.
Exactly! From the beginning Locust was HTTP-only so it made sense to call it Method, while |
c899756
to
3e2374e
Compare
@heyman Couple of clarifying questions:
Thanks in advance! |
@matthiaslee @mckornfield Can you review this please. |
FYI
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments, some questions
Yes, I think it makes most sense to use the current_rps and current_fail_per_sec here.
I agree that we should also output a row for the aggregated StatsEntry when |
Hmm, we should probably be able to merge the |
Also we should make sure to use the |
@heyman The |
@heyman Do you have any update on my 2 clarifying comments/questions regarding your last suggestions: EDIT: Also, since |
9ed2f10
to
30060bb
Compare
d208867
to
bd8e973
Compare
bd8e973
to
f0c6faa
Compare
I have just one question: The header line in the CSV now says "Type" but you are logging s.method? Shouldnt say "Method"? Other than that it looks good to me and I have no issues merging this. |
Ah, I didnt see that one in this long history, sorry :) No need to squash. Thank you for your contribution! |
Oh, one more thing before I hit the merge button, could you update the PR title? |
@cyberw Done! |
--csv-full-history
flag to enable appending of the stats entries to a new CSV log file (_stats_history.csv
). It allows for tracking changes in response times over the course of long test runs._requests
to_stats.csv
_distribution.csv
to_stats.csv
file so there will no longer be a distribution.csv