jenkinsci / jenkinsci/junit-plugin
[JENKINS-31446] Test Result table sorts incorrectly after three clicks of "Duration"
- Dominant language
- Java
- Stars
- 87
- Forks
- 351
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 2
Description
On a "Test Results" page, I can click on the "Duration" column heading to sort by test duration descending. I can click a second time to sort by duration ascending. However, after clicking a third time to toggle back to sort by duration descending, the order is not correct. For example, I'll see values like "1 min 24 sec" come after values like "9 sec"
---
Originally reported by jrogers, imported from: Test Result table sorts incorrectly after three clicks of "Duration"
Raw content of original issue
On a "Test Results" page, I can click on the "Duration" column heading to sort by test duration descending. I can click a second time to sort by duration ascending. However, after clicking a third time to toggle back to sort by duration descending, the order is not correct. For example, I'll see values like "1 min 24 sec" come after values like "9 sec"
environment
```
Jenkins 1.625.1 with JUnit plugin 1.9 installed from official RPM and run standalone.
Browser: Firefox 42.0
OpenJDK Runtime Environment (rhel-2.6.2.2.el6_7-i386 u91-b00)
OpenJDK Server VM (build 24.91-b01, mixed mode)
LSB Version: :base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.7 (Final)
Release: 6.7
Codename: Final
```
1 attachment
- [Jenkins_test_duration_sort.png](https://issues.jenkins.io/secure/attachment/31228/Jenkins_test_duration_sort.png)
> 
Contributor guide
Research direction
Start at the Test Results page and reproduce the Duration-column behavior by clicking the heading three times, using the reported values such as “1 min 24 sec” and “9 sec.” Trace the junit-plugin code responsible for that table sort, then verify that the third click restores correct descending duration order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100