Asked by:
Test Results Publish Failed due to Date in past error

Question
-
I've recently started seeing this error occasionally when my builds run:
"Failed to publish test results: Test result completed date must be greater than test result start date"
I'm building on the a Linux environment using the Maven build step in VSTS, with the Publish JUnit and JaCoCo options enabled. The JaCoCo report is generated and shows the code coverage for the tests, but no test results are published when this error occurs.
If someone from MS responds to me via Email, I can provide a sample build that failed.
Here is a sample of what I'm seeing in the logs (note: I've made some replacements to hide some information). I believe the line "Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites" is a red herring... as I see the same line in other runs that succeed.
2017-04-12T14:17:30.3061990Z ------------------------------------------------------- 2017-04-12T14:17:30.3109640Z T E S T S 2017-04-12T14:17:30.3120860Z ------------------------------------------------------- 2017-04-12T14:17:31.2006620Z Running com.mycompany.operation.x.TestSuite1 2017-04-12T14:17:36.7881650Z Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.569 sec - in com.mycompany.operation.x.TestSuite1 2017-04-12T14:17:36.7900570Z Running com.mycompany.operation.x.TestSuite2 2017-04-12T14:17:37.5126000Z Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.715 sec - in com.mycompany.operation.x.TestSuite2 2017-04-12T14:17:37.5146660Z Running com.mycompany.operation.x.TestSuite3 2017-04-12T14:17:37.5572540Z Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 sec - in com.mycompany.operation.x.TestSuite3 2017-04-12T14:17:37.5585500Z Running com.mycompany.operation.x.TestSuite4 2017-04-12T14:17:39.1217290Z Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.56 sec - in com.mycompany.operation.x.TestSuite4 2017-04-12T14:17:39.1229460Z Running com.mycompany.operation.x.TestSuite5 2017-04-12T14:17:39.1307960Z Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in com.mycompany.operation.x.TestSuite5 2017-04-12T14:17:39.1321340Z Running com.mycompany.operation.x.TestSuite6 2017-04-12T14:17:40.1299580Z Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.997 sec - in com.mycompany.operation.x.TestSuite6 2017-04-12T14:17:40.1314400Z Running com.mycompany.operation.x.TestSuite7 2017-04-12T14:17:40.0704950Z Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: -0.059 sec - in com.mycompany.operation.x.TestSuite7 2017-04-12T14:17:40.0724470Z Running com.mycompany.operation.x.TestSuite8 2017-04-12T14:17:40.3757480Z Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.303 sec - in com.mycompany.operation.x.TestSuite8 2017-04-12T14:17:41.7399260Z 2017-04-12T14:17:41.7412220Z Results : 2017-04-12T14:17:41.7417720Z 2017-04-12T14:17:41.7430620Z Tests run: 60, Failures: 0, Errors: 0, Skipped: 0 2017-04-12T14:17:41.7436970Z 2017-04-12T14:17:41.7542900Z [INFO] 2017-04-12T14:17:41.7555000Z [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (default-report-vsts) @ x --- 2017-04-12T14:17:42.1127480Z [INFO] Analyzed bundle 'x' with 223 classes 2017-04-12T14:17:42.4829210Z [INFO] ------------------------------------------------------------------------ 2017-04-12T14:17:42.4841430Z [INFO] BUILD SUCCESS 2017-04-12T14:17:42.4853430Z [INFO] ------------------------------------------------------------------------ 2017-04-12T14:17:42.4867410Z [INFO] Total time: 23.189 s 2017-04-12T14:17:42.4890170Z [INFO] Finished at: 2017-04-12T14:17:42+00:00 2017-04-12T14:17:42.6832320Z [INFO] Final Memory: 37M/387M 2017-04-12T14:17:42.6858020Z [INFO] ------------------------------------------------------------------------ 2017-04-12T14:17:43.4836110Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5014900Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.5072800Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5085240Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.5158580Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5171370Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.5192320Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5209600Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.5230320Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5244450Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.5266110Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5279010Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.5299580Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5324930Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.5345300Z Only single test suite found, parsing its information 2017-04-12T14:17:43.5359830Z Timestamp is not available for one or more testsuites. Total run duration is being calculated as the sum of time durations of detected testsuites 2017-04-12T14:17:43.6240610Z [command]/usr/bin/mvn -f /.../pom.xml verify 2017-04-12T14:17:43.9551120Z Publishing test results to test run '25854' 2017-04-12T14:17:43.9621070Z Test results remaining: 60. Test run id: 25854 2017-04-12T14:17:44.4384900Z [INFO] Scanning for projects... 2017-04-12T14:17:44.5241480Z ##[warning]Failed to publish test results: Test result completed date must be greater than test result start date
Wednesday, April 12, 2017 4:29 PM
All replies
-
Please email the results.xml to devops_tools@microsoft.com so that we can debug this further.
Thanks
ManojThursday, April 13, 2017 6:16 AM -
Done.
Although I got an undeliverable error to some of the sub-groups in that address because i'm not part of the organization. If you need me to send it again, please let me know.
- Edited by FBNitro Thursday, April 13, 2017 2:38 PM
Thursday, April 13, 2017 2:34 PM