Hi @rivy, thanks for this feedback. I’m not exactly sure why this is happening, but this is mostly likely due to timeouts. I’m making some changes to the bash uploader to help making debugging this easier. Thanks for your patience here.
Thanks. I have made the upgrade and can happily report that so far no timeout issues are popping up. I’ll run the CI a few more times to stress this some more, and otherwise, I’d say this looks good.
Thanks very much for your time and patience on this!
I may not be completely out of the woods yet. With the most recent version, I am seeing this:
2020-07-06T10:10:49.5044629Z Gradle build finished successfully.
2020-07-06T10:10:49.5252932Z ##[group]Run codecov/codecov-action@v1.0.10
2020-07-06T10:10:49.5253157Z with:
2020-07-06T10:10:49.5253336Z flags: dynamodb
2020-07-06T10:10:49.5253556Z fail_***_if_error: true
2020-07-06T10:10:49.5253745Z env:
2020-07-06T10:10:49.5253955Z JAVA_OPTS: -Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC
2020-07-06T10:10:49.5254188Z GRADLE_OPTS: -Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC
2020-07-06T10:10:49.5254404Z TERM: xterm-256color
2020-07-06T10:10:49.5254573Z SONATYPE_USER:
2020-07-06T10:10:49.5254751Z SONATYPE_PWD:
2020-07-06T10:10:49.5254912Z GH_PAGES_TOKEN:
2020-07-06T10:10:49.5255074Z RENOVATE_TOKEN:
2020-07-06T10:10:49.5255268Z GRADLE_BUILDCACHE_USER: ***
2020-07-06T10:10:49.5255443Z GRADLE_BUILDCACHE_PSW: ***
2020-07-06T10:10:49.5255608Z PYTHON_VERSION: 3.8.2
2020-07-06T10:10:49.5255767Z JDK_CURRENT: 11.0.7
2020-07-06T10:10:49.5255919Z JDK_LATEST: 14
2020-07-06T10:10:49.5256139Z JAVA_HOME: /opt/hostedtoolcache/jdk/11.0.7/x64
2020-07-06T10:10:49.5256333Z JAVA_HOME_11.0.7_x64: /opt/hostedtoolcache/jdk/11.0.7/x64
2020-07-06T10:10:49.5256506Z ##[endgroup]
2020-07-06T10:22:01.5344179Z (node:4977) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 35.199.43.247:443
2020-07-06T10:22:01.5344564Z at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14)
2020-07-06T10:22:01.5344927Z (node:4977) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
2020-07-06T10:22:01.5346719Z (node:4977) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When I look at the full log, I do see the relevant tests were executed, yet coverage percentage remains at 0%. So issues with timeouts are solved, but it does not seem like results are in fact successfully uploaded?
If I simply restart the same job, at the next run, I see coverage improved or back to the expected value.
As an example, I can see that all tests for cas-server-support-audit-dynamodb were executed using the testDynamoDb task:
2020-07-06T10:01:48.4585095Z > Task :support:cas-server-support-audit-dynamodb:testDynamoDb
2020-07-06T10:01:48.4585410Z
2020-07-06T10:01:48.4585943Z Results for test suite [Gradle Test Run :support:cas-server-support-audit-dynamodb:testDynamoDb]: SUCCESS @ Mon Jul 06 10:01:48 UTC 2020
2020-07-06T10:01:48.4586205Z (1 tests, 1 successes, 0 failures, 0 skipped)
2020-07-06T10:01:48.4586336Z
2020-07-06T10:01:48.4586844Z Finished generating test XML results (0.0 secs) into: /home/runner/work/cas/cas/support/cas-server-support-audit-dynamodb/build/test-results/testDynamoDb
2020-07-06T10:01:48.4587090Z Generating HTML test report...
2020-07-06T10:01:48.4587600Z Finished generating test html results (0.006 secs) into: /home/runner/work/cas/cas/support/cas-server-support-audit-dynamodb/build/reports/tests/testDynamoDb
2020-07-06T10:01:48.5586593Z Stored cache entry for task ':support:cas-server-support-audit-dynamodb:testDynamoDb' with cache key a9056cf362105eb22ac95fa7e1210d6e
2020-07-06T10:01:48.5587730Z :support:cas-server-support-audit-dynamodb:testDynamoDb (Thread[Execution worker for ':',5,main]) completed. Took 2 mins 0.146 secs.