TKG failed to parse TRSS getTestAvgDuration result
- Dominant language
- Java
- Stars
- 22
- Forks
- 114
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 8
Description
```
02:14:19.101 cmd.exe /c curl --silent --max-time 120 -L -k "https://trssrtp1.fyre.ibm.com/api/getTestAvgDuration?limit=10&jdkVersion=8&impl=ibm&platform=x86-32_windows&group=jck&level=extended"
02:14:19.532 Warning: cannot parse data from TRSS.
02:14:19.532 Unexpected character (<) at position 0.
02:14:19.532 at org.json.simple.parser.Yylex.yylex(Yylex.java:610)
02:14:19.532 at org.json.simple.parser.JSONParser.nextToken(JSONParser.java:269)
02:14:19.532 at org.json.simple.parser.JSONParser.parse(JSONParser.java:118)
02:14:19.532 at org.json.simple.parser.JSONParser.parse(JSONParser.java:92)
02:14:19.532 at org.testKitGen.TestDivider.parseDuration(TestDivider.java:167)
02:14:19.532 at org.testKitGen.TestDivider.getDataFromTRSS(TestDivider.java:257)
02:14:19.532 at org.testKitGen.TestDivider.createDurationQueue(TestDivider.java:286)
02:14:19.532 at org.testKitGen.TestDivider.divideTests(TestDivider.java:409)
02:14:19.532 at org.testKitGen.TestDivider.generateLists(TestDivider.java:430)
02:14:19.532 at org.testKitGen.MainRunner.genParallelList(MainRunner.java:74)
02:14:19.532 at org.testKitGen.MainRunner.main(MainRunner.java:38)
02:14:19.532 Attempting to get test duration data from cached files.
02:14:19.977 Reading file: Test_openjdk8_ibm_jck_x86-32_windows.json
02:14:19.977
02:14:19.977 TEST DURATION
02:14:19.977 ====================================================================================
02:14:19.977 Total number of tests searched: 117
02:14:19.977 Number of test durations found: 0
02:14:19.977 No test duration data found.
02:14:19.977 (Default duration assigned, executed tests: 40s; not executed tests: 0s.)
02:14:19.977 ====================================================================================
```
[Jenkins job windows](https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk8_ibm_extended.jck_x86-32_windows/23/consoleFull)
[Jenkins job xlinux](https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk8_ibm_extended.jck_x86-32_linux/23/consoleFull)
The issue is intermittent. Reran in [Grinder](https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/51353/console) seems fine.
```
00:01:37.813 Attempting to get test duration data from TRSS.
00:01:37.813 curl --silent --max-time 120 -L -k https://trssrtp1.fyre.ibm.com/api/getTestAvgDuration?limit=10&jdkVersion=8&impl=ibm&platform=x86-32_linux&group=jck&level=extended
00:01:39.866 Attempting to get test duration data from cached files.
00:01:39.866
00:01:39.866 TEST DURATION
00:01:39.866 ====================================================================================
00:01:39.866 Total number of tests searched: 117
00:01:39.866 Number of test durations found: 117
00:01:39.866 Top slowest tests:
00:01:39.866 81m49s jck-devtools-xml_schema-nistData_0
00:01:39.866 61m01s jck-devtools-xml_schema-msData-group3_0
00:01:39.866 55m34s jck-compiler-lang-LMBD_0
00:01:39.866 ====================================================================================
00:01:39.866
00:01:39.866 Test target is split into 9 lists.
00:01:39.866 Reducing estimated test running time from 1022m14s to 119m57s.
```
Contributor guide
Research direction
Start in TestDivider.java at parseDuration (line 167) and getDataFromTRSS (line 257), then review the createDurationQueue flow. Compare the failing Jenkins logs with the successful Grinder run and inspect the TRSS response handling. Done means intermittent getTestAvgDuration responses no longer leave TKG without test duration data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100