Gradle@master: core test failed CacheStatisticsReporterTest


(ZOSROTHKO) #1

Hi

Building from the lastest master git repo, one got the errors below. Any idea where those error are coming from?

:core:test

org.gradle.internal.buildevents.CacheStatisticsReporterTest > all statistics are reported FAILED
    org.spockframework.runtime.SpockComparisonFailure at CacheStatisticsReporterTest.groovy:44

org.gradle.internal.buildevents.CacheStatisticsReporterTest > zero counts are not reported FAILED
    org.spockframework.runtime.SpockComparisonFailure at CacheStatisticsReporterTest.groovy:65

org.gradle.internal.buildevents.CacheStatisticsReporterTest > percentages are rounded FAILED
    org.spockframework.runtime.SpockComparisonFailure at CacheStatisticsReporterTest.groovy:86

3598 tests completed, 3 failed, 35 skipped
:core:test FAILED
Condition not satisfied:

textOutputFactory.toString() == """{org.gradle.internal.buildevents.BuildResultLogger}{LIFECYCLE} |10 tasks in build, out of which 5 (50%) were cacheable | 2  (20%) up-to-date | 3  (30%) loaded from cache | 1  (10%) skipped | 4  (40%) executed |""".stripMargin().denormalize()
|                 |          |                                                                                                                                                                                                                           |             |
|                 |          |                                                                                                                                                                                                                           |             {org.gradle.internal.buildevents.BuildResultLogger}{LIFECYCLE}
|                 |          |                                                                                                                                                                                                                           |             10 tasks in build, out of which 5 (50%) were cacheable
|                 |          |                                                                                                                                                                                                                           |              2  (20%) up-to-date
|                 |          |                                                                                                                                                                                                                           |              3  (30%) loaded from cache
|                 |          |                                                                                                                                                                                                                           |              1  (10%) skipped
|                 |          |                                                                                                                                                                                                                           |              4  (40%) executed
|                 |          |                                                                                                                                                                                                                           {org.gradle.internal.buildevents.BuildResultLogger}{LIFECYCLE}
|                 |          |                                                                                                                                                                                                                           10 tasks in build, out of which 5 (50%) were cacheable
|                 |          |                                                                                                                                                                                                                            2  (20%) up-to-date
|                 |          |                                                                                                                                                                                                                            3  (30%) loaded from cache
|                 |          |                                                                                                                                                                                                                            1  (10%) skipped
|                 |          |                                                                                                                                                                                                                            4  (40%) executed
|                 |          false
|                 |          9 differences (95% similarity)
|                 |          {org.gradle.internal.buildevents.BuildResultLogger}{LIFECYCLE}\r\n10 tasks in build, out of which 5 (50( )%) were cacheable\r\n 2 (-)(20( )%) up-to-date\r\n 3 (-)(30( )%) loaded from cache\r\n 1 (-)(10( )%) skipped\r\n 4 (-)(40( )%) executed\r\n
|                 |          {org.gradle.internal.buildevents.BuildResultLogger}{LIFECYCLE}\r\n10 tasks in build, out of which 5 (50(-)%) were cacheable\r\n 2 ( )(20(-)%) up-to-date\r\n 3 ( )(30(-)%) loaded from cache\r\n 1 ( )(10(-)%) skipped\r\n 4 ( )(40(-)%) executed\r\n
|                 {org.gradle.internal.buildevents.BuildResultLogger}{LIFECYCLE}
|                 10 tasks in build, out of which 5 (50 %) were cacheable
|                  2 (20 %) up-to-date
|                  3 (30 %) loaded from cache
|                  1 (10 %) skipped
|                  4 (40 %) executed
{org.gradle.internal.buildevents.BuildResultLogger}{LIFECYCLE}
10 tasks in build, out of which 5 (50 %) were cacheable
 2 (20 %) up-to-date
 3 (30 %) loaded from cache
 1 (10 %) skipped
 4 (40 %) executed

	at org.gradle.internal.buildevents.CacheStatisticsReporterTest.all statistics are reported(CacheStatisticsReporterTest.groovy:44)

(Paul Merlin) #2

This was locale dependent and has been fixed in master since then, see https://github.com/gradle/gradle/commit/0aa257c

The master branch is a moving target. Next time you encounter such an issue, be sure to pull the latest and please provide the commit hash you are on so diagnosing is easier.