adoptium / adoptium/TKG

TKG parses TRSS data Unexpected token END OF FILE at position 0

Open
#606 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
22
Forks
114
Avg merge
4d 2h
Merged PRs (30d)
8

Description

```
00:38:13.630 Attempting to get test duration data from TRSS.
00:38:13.630 curl --silent --max-time 120 -L https://trssrtp1.fyre.ibm.com/api/getTestAvgDuration?limit=10&jdkVersion=22&impl=j9&platform=aarch64_linux&group=jck&level=extended
00:38:14.057 Warning: cannot parse data from TRSS.
00:38:14.057 Unexpected token END OF FILE at position 0.
00:38:14.057 at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
00:38:14.057 at org.json.simple.parser.JSONParser.parse(JSONParser.java:92)
00:38:14.057 at org.testKitGen.TestDivider.parseDuration(TestDivider.java:162)
00:38:14.057 at org.testKitGen.TestDivider.getDataFromTRSS(TestDivider.java:241)
00:38:14.057 at org.testKitGen.TestDivider.createDurationQueue(TestDivider.java:270)
00:38:14.057 at org.testKitGen.TestDivider.divideTests(TestDivider.java:393)
00:38:14.057 at org.testKitGen.TestDivider.generateLists(TestDivider.java:414)
00:38:14.057 at org.testKitGen.MainRunner.genParallelList(MainRunner.java:74)
00:38:14.057 at org.testKitGen.MainRunner.main(MainRunner.java:38)
00:38:14.057 Attempting to get test duration data from cached files.
00:38:14.057 Reading file: Test_openjdk22_j9_jck_aarch64_linux.json
```

[link](https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk22_j9_extended.jck_aarch64_linux/31/console)

Contributor guide

Open the contributing guide

Research direction

Start in TestDivider.java at parseDuration (line 162) and getDataFromTRSS (line 241), then reproduce the curl request shown in the issue to inspect the returned data. Compare the TRSS response with the cached-file fallback named in the log; done means the duration-data path no longer reports an unexpected end-of-file for this case.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.