UserGuideSamplesIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Separate samples subproject (#10829)

Also see the discussion in https://github.com/gradle/gradle-private/issues/1663

Previously, `integTest` subproject runs 15 mins, now we split it into 3 jobs: `integTest`/`integTest_2`/`integTest_3`. However, the one containing sample tests is still too slow.

The average build time of that job is 10 minutes. This PR separates the `samples` project so that we can further optimise the build structure (e.g. `samples_2`/`samples_3`).

    • -98
    • +0
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 88 more files in changeset.
Use a separate project

    • -98
    • +0
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 87 more files in changeset.
Use a separate project

    • -98
    • +0
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 87 more files in changeset.
Remove play framework support from Gradle distribution

This is superseded by: https://gradle.github.io/playframework/

This commit removes:

- The `platform-play` and `ide-play` subprojects

- The documentation for the functionality provided by these projects

    • -3
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 502 more files in changeset.
Remove play framework support from Gradle distribution

This is superseded by: https://gradle.github.io/playframework/

This commit removes:

- The `platform-play` and `ide-play` subprojects

- The documentation for the functionality provided by these projects

    • -3
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 499 more files in changeset.
Remove play framework support from Gradle distribution

This is superseded by: https://gradle.github.io/playframework/

This commit removes:

- The `platform-play` and `ide-play` subprojects

- The documentation for the functionality provided by these projects

    • -3
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 508 more files in changeset.
Remove play framework support from Gradle distribution

This is superseded by: https://gradle.github.io/playframework/

This commit removes:

- The `platform-play` and `ide-play` subprojects

- The documentation for the functionality provided by these projects

    • -3
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 503 more files in changeset.
Remove play framework support from Gradle distribution

This is superseded by: https://gradle.github.io/playframework/

This commit removes:

- The `platform-play` and `ide-play` subprojects

- The documentation for the functionality provided by these projects

    • -3
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 503 more files in changeset.
Remove play framework support from Gradle distribution

This is superseded by: https://gradle.github.io/playframework/

This commit removes:

- The `platform-play` and `ide-play` subprojects

- The documentation for the functionality provided by these projects

    • -3
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 499 more files in changeset.
Add documentation for InputChanges

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 12 more files in changeset.
Add documentation for InputChanges

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 12 more files in changeset.
Add documentation for InputChanges

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 12 more files in changeset.
Add documentation for InputChanges

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 12 more files in changeset.
Add documentation for InputChanges

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 12 more files in changeset.
Remove MoreMemorySampleModifier

We should no longer have a metaspace leak

    • -2
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 1 more file in changeset.
Use @Before/AfterClass annotations instead

    • -7
    • +26
    ./UserGuideSamplesIntegrationTest.groovy
Prevent samples from sharing generated API jars from other subprojects

    • -0
    • +15
    ./UserGuideSamplesIntegrationTest.groovy
Prevent samples from sharing generated API jars from other subprojects

Use @Before/AfterClass annotations

    • -0
    • +34
    ./UserGuideSamplesIntegrationTest.groovy
Fix userguide sample output

    • -6
    • +8
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 7 more files in changeset.
Limit metaspace used by the Gradle daemon

Our integration tests still need too much metaspace because

we never clean up buildSrc/script classloaders. This is a problem

in our tests since we create hundreds of projects, all with different

directories. For our end users this is probably not as bad, but we

should still fix it soon.

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 8 more files in changeset.
Remove metaspace limits for now

We used to test Gradle with a permgen limit of 320Mb.

However, trying to enforce the same limit for metaspace

on Java8+ consistently leads to OutOfMemoryErrors.

Even raising it significantly to 1G does not seem to solve

all these issues. The only explanation I currently have is

that we introduced a leak between now and the point when we

stopped testing for Java 7.

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 7 more files in changeset.
Adjust memory settings in our integration tests

    • -1
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 7 more files in changeset.
Set mirror for exemplar tests (#6783)

Previously all our doc tests are executed by `exemplar`, which can't set mirrors. This PRs upgraded to exemplar `0.6.1` and exclude `asciidoctorj` to avoid `Can't create process, argument list too long` issue on Windows.

    • -0
    • +3
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 4 more files in changeset.
Fix samples tests for Java 10

Illegal access warnings get grouped, causing extra lines in the

actual samples output. Furthermore, play component report was not

properly normalized. This change adds normalization for the Java

version string.

    • -1
    • +3
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 7 more files in changeset.
Externalize samples testing infrastructure

This change replaces UserGuideSamplesRunner with an external library

called sample-check. Sample discovery, execution, and normalization

is delegated to this library, with some custom normalizers remaining

in the Gradle codebase.

Samples output has become co-located with the sample code. Samples tests

must be run with Java 8+.

    • -12
    • +30
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 782 more files in changeset.
Change "there're" to "there are" in deprecation warnings

Signed-off-by: Eric Wendelin <eric@gradle.com>

    • -1
    • +1
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 4 more files in changeset.
Re-activate user guide samples integration tests

- Adjusted expected output according to new console

- Updated 'jacoco' and 'source set' samples to not use deprecated API

    • -2
    • +0
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 83 more files in changeset.
Temporarily mark some failing specs as @MustFixForV4

    • -0
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 15 more files in changeset.
Try to disable all user guide sample test

We know those test pass and that nothing has broken them so we will

disable them for now.

    • -2
    • +2
    ./UserGuideSamplesIntegrationTest.groovy
Correctly ignore failing test for the user guide samples on Windows

    • -3
    • +0
    ./UserGuideSamplesIntegrationTest.groovy
  1. … 1 more file in changeset.