Skip to content

Exclude error response time#134

Merged
undera merged 13 commits intojenkinsci:masterfrom
artem-fedorov:exclude-error-response-time
Aug 16, 2017
Merged

Exclude error response time#134
undera merged 13 commits intojenkinsci:masterfrom
artem-fedorov:exclude-error-response-time

Conversation

@artem-fedorov
Copy link
Copy Markdown
Collaborator

No description provided.

@jenkinsci jenkinsci deleted a comment Aug 16, 2017
@jenkinsci jenkinsci deleted a comment Aug 16, 2017
@jenkinsci jenkinsci deleted a comment Aug 16, 2017
private long getDurationAt(double percentage) {
if (percentage < 0 || percentage > 1) {
throw new IllegalArgumentException("Argument 'percentage' must be a value between 0 and 1 (inclusive)");
if (percentage < ZERO_PERCENT || percentage > ONE_HUNDRED_PERCENT) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original constant are floats up to 1, new constants are up to 100. Isnt there error?
BTW I'd suggest to keep float approach, since users might want float percentiles in the future, like 99.5 or 99.9

Copy link
Copy Markdown
Collaborator Author

@artem-fedorov artem-fedorov Aug 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here no errors, because i changed all input params to following double constants:

  • ZERO_PERCENT=0
  • NINETY_PERCENT=90
  • FIFTY_PERCENT=50
  • ONE_HUNDRED_PERCENT=100.

This approach will allow to add other percentiles

Artem Fedorov added 2 commits August 16, 2017 12:44
Because a new method is used to calculate time values in UriReport
@jenkinsci jenkinsci deleted a comment Aug 16, 2017
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #134 into master will increase coverage by 0.06%.
The diff coverage is 72.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #134      +/-   ##
==========================================
+ Coverage   67.59%   67.65%   +0.06%     
==========================================
  Files          43       43              
  Lines        3715     3763      +48     
  Branches      640      650      +10     
==========================================
+ Hits         2511     2546      +35     
- Misses        995     1003       +8     
- Partials      209      214       +5
Impacted Files Coverage Δ
...udson/plugins/performance/parsers/JUnitParser.java 90.9% <100%> (+0.21%) ⬆️
...va/hudson/plugins/performance/data/HttpSample.java 92.68% <100%> (+3.2%) ⬆️
...ns/performance/parsers/JmeterSummarizerParser.java 95.38% <100%> (+0.14%) ⬆️
...ugins/performance/parsers/WrkSummarizerParser.java 94.21% <100%> (+0.09%) ⬆️
...dson/plugins/performance/parsers/TaurusParser.java 98.03% <100%> (+0.03%) ⬆️
...hudson/plugins/performance/parsers/IagoParser.java 84.84% <100%> (+0.31%) ⬆️
...n/plugins/performance/parsers/JMeterCsvParser.java 86.17% <100%> (+0.14%) ⬆️
...dson/plugins/performance/parsers/JMeterParser.java 71.64% <100%> (+0.42%) ⬆️
...on/plugins/performance/reports/AbstractReport.java 35.29% <50%> (+4.52%) ⬆️
...dson/plugins/performance/PerformancePublisher.java 85.2% <62.5%> (-0.3%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c1338b...56bc3a2. Read the comment docs.

@undera undera merged commit 7dac5c1 into jenkinsci:master Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants