ConfigurationOnDemandIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Let integration tests in 'core' not use deprecated configurations

    • -10
    • +10
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 11 more files in changeset.
Let integration tests in 'core' not use deprecated configurations

    • -10
    • +10
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 11 more files in changeset.
Let integration tests in 'core' not use deprecated configurations

    • -10
    • +10
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 11 more files in changeset.
Let integration tests in 'core' not use deprecated configurations

    • -10
    • +10
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 11 more files in changeset.
Undeprecate --no-rebuild

A change in `buildSrc` causes the whole project to become out-of-date.

Thus, when making small incremental changes, the `--no-rebuild`

command-line option is often helpful to get faster feedback and is

therefore no longer deprecated.

Resolves #6968.

    • -1
    • +0
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 6 more files in changeset.
Remove parallel and continuous incubation messages

    • -1
    • +1
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 5 more files in changeset.
Make buildNeeded/buildDependents work with new Configurations

    • -2
    • +2
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 1 more file in changeset.
Revert "Add @ToBeImplemented integration tests for #4799"

This reverts commit b37c3667ef52775d8408d39087e65e1d40967b11.

    • -15
    • +0
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 1 more file in changeset.
Add @ToBeImplemented integration tests for #4799

    • -0
    • +15
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 1 more file in changeset.
Add some more assertion methods to `ExecutionResult` and change several tests and utility methods to use these methods instead of reimplementing the logic.

    • -2
    • +2
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 11 more files in changeset.
Expose public API for defining command line options for tasks (#4040)

    • -1
    • +1
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 41 more files in changeset.
Refine deprecation mechanism (#3285)

Refine deprecation mechanism

Fix https://github.com/gradle/gradle/issues/3228

    • -3
    • +1
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 35 more files in changeset.
Deprecate --no-rebuild (#3077) (#3121)

https://github.com/gradle/gradle/issues/3077

This option was introduced in very early version of Gradle when up-to-date

checking was still rather expensive, which is no longer the case.

This PR now deprecates it.

    • -0
    • +3
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 8 more files in changeset.
Review and improve tests that require exact ordering of tasks

    • -1
    • +1
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 23 more files in changeset.
Use doLast instead of left shift operator

Made this change in preparation for deprecating the left shift operator.

+review REVIEW-6236

    • -3
    • +5
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 163 more files in changeset.
Fix ConfigurationOnDemandIntegrationTest

For the project `core` plugins like `idea` and `eclipse` are

not yet available. Moved the test to `integTest`

GRADLE-3534

+review REVIEW-6188

    • -26
    • +1
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 1 more file in changeset.
Make configure on demand work with idea/eclipse plugin

Calling `project.getTasks().getByPath(taskName)` forces

the project to evaluate. These calls have been added in

3.0 to add the IDE artifacts to the projects. This broke

configure on demand. Replacing `getByPath` with

`getByName` simplifies the code and fixes the problem,

since getByName does not force the project to be evaluated.

GRADLE-3534 #resolve

    • -3
    • +10
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 2 more files in changeset.
Make configure on demand work with idea plugin

Calling `project.getTasks().getByPath(taskName)` forces

the project to evaluate. By putting the whole iml artifact

attach business into an afterEvaluate block this should

be fixed. The Eclipse plugin probably exposes the same problem.

    • -0
    • +19
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 1 more file in changeset.
Removed workaround for flaky test

The underlying logging issue should be addressed, so this

workaround should no longer be required. Let's see.

    • -2
    • +0
    ./ConfigurationOnDemandIntegrationTest.groovy
Renamed `GradleExecuter.requireGradleHome` -> `requireGradleDistribution`

    • -2
    • +2
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 29 more files in changeset.
Revert "Added some additional failure logging for flaky test"

This reverts commit 94a113017f00ec97009f5ef12e2cc4142e954778.

    • -20
    • +2
    ./ConfigurationOnDemandIntegrationTest.groovy
Added some additional failure logging for flaky test

    • -2
    • +20
    ./ConfigurationOnDemandIntegrationTest.groovy
An experiment to test theory about the cause of flaky test

    • -0
    • +2
    ./ConfigurationOnDemandIntegrationTest.groovy
Start using the term ‘fluid dependencies’ to represent the ability to interchange project and external dependencies

    • -20
    • +3
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 6 more files in changeset.
Moving EarlyDepenendcyGraphResolveRunner to internal-integ-testing so it can be used more widely

    • -0
    • +3
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 3 more files in changeset.
Fixing compile error

    • -3
    • +0
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 1 more file in changeset.
Updated test so that configuration isn’t skipped

- Due to missing sources, the target project configurations weren’t being

evaluated, making this test not particularly representative

- Added a source file to the project, forcing the compile configuration to

be resolved, which demonstrates that ‘resolve-for-task-graph-building’

doesn’t change the behaviour of configure-on-demand + --no-rebuild

    • -34
    • +22
    ./ConfigurationOnDemandIntegrationTest.groovy
Adding test runner to allow running tests with early dependency graph resolution both forced and not

    • -0
    • +3
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 3 more files in changeset.
Added separate tests demonstrating different behaviour with early/late resolution

- Goal would be to make this behaviour identical in both cases, maintaining

backward compatibility

    • -0
    • +30
    ./ConfigurationOnDemandIntegrationTest.groovy
Use StartParameter.buildProjectDependencies directly instead of via DefaultProjectDependency field

* Previously, when ‘—no-build’ was on, we could avoid having to even

evaluate a project dependency’s project. Now it’s not possible, as we

need the project to be evaluated in order to run substitution rules.

* Still, the test was showing a real problem: we were still running the

tasks of the dependent project even with ‘--no-build’ turned on,

because we simply ignored

DefaultProjectDependency.buildProjectDependencies.

The fix includes updating the test, so that we don’t expect the

dependency project not to be evaluated anymore.

It also became possible to remove

DefaultProjectDependency.buildProjectDependencies, and instead pass

StartParameter.buildProjectDependencies directly to

DefaultDependencyResolver.

This way we can simply not collect any project dependency information

during dependency resolution, and thus

DefaultConfiguration.resolveNow() won’t add any task dependencies.

    • -3
    • +5
    ./ConfigurationOnDemandIntegrationTest.groovy
  1. … 8 more files in changeset.