CompositeBuildOperationsIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -4
    • +4
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 872 more files in changeset.
Annotate integ tests failing with instant execution in :compositeBuilds

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -1
    • +5
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 27 more files in changeset.
Annotate integ tests failing with instant execution in :compositeBuilds

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -1
    • +5
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 27 more files in changeset.
Annotate integ tests failing with instant execution in :compositeBuilds

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -1
    • +5
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 27 more files in changeset.
Make paths/names of included builds immutable (#10998)

Changes the “build path” for included builds to be determined at inclusion time based on the directory name, or a user supplied override. Previously, we tried to use the root project name defined in the included build. This caused a lot of complexity due to it not being known until part way through building the included build.

This change also disallows use of `buildSrc` as a project name, as it collides with the `buildSrc` nested build.

    • -7
    • +7
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 72 more files in changeset.
Fix included build path naming and tests

    • -7
    • +7
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 17 more files in changeset.
Move ExecuteTaskBuildOperationType (#7374)

* Move ExecuteTaskBuildOperationType to org.gradle.api.internal.tasks.execution

* Remove redundant import

    • -1
    • +1
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 25 more files in changeset.
Fire the 'task graph ready' event for a build once only per Gradle invocation, just prior to running the first task for that build.

When a build is reused to run more tasks, for example when it is used to provide a plugin and a production dependency to some other build, do not fire the event and instead spit out a cryptic warning. A later change will attempt to make the warning clearer.

    • -1
    • +83
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 7 more files in changeset.
Make tests robust against additional build operations

Prior to this commit, a lot of tests asserted that there's a single root

build operation. This assertion was too strict and did not account

for potential additional root build operations such as the recently

introduced cache cleanup for the artifact and artifact transform caches.

Now, `BuildOperationsFixture` provides a new `root()` method to get the

root for the supplied `BuildOperationType`.

    • -2
    • +2
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 6 more files in changeset.
Add more test coverage for the names of things and the build operations generated by various combinations of `buildSrc`, included builds and source dependencies.

    • -9
    • +18
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 7 more files in changeset.
Split up the task graph calculation and task execution of included builds, and move each to live with the corresponding work done for the root build. This change better attributes the work the the top level build operations and also means that we don't attempt to start running tasks for an included build while still discovering the tasks required to run for that build.

    • -1
    • +1
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 6 more files in changeset.
Split loading and configuring of included builds, so that included builds are loaded during the loading of the root build and configured during configuration of the root build (if required). Previously, included builds were loaded and also configured during loading (if required). This better allocates the work between the relevant top level build operation and also allows further laziness in configuring of included builds to be added later.

    • -6
    • +6
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 13 more files in changeset.
Added some test coverage for buildPath/buildIdentifier in various build compositions.

    • -12
    • +46
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 10 more files in changeset.
Completely separate `BuildLoader` from `SettingsLoader`

- Removed `BuildAndSettingsLoader`, that chained the 2 actions within a

`SettingsLoader` instance.

- Create a `NotifyingBuildLoader` for use directly by `DefaultGradleLauncher`

- Loading the project structure is now performed as part of the build configuration

operation, instead of within the operation for loading init scripts and settings.

- This means that less work needs to be done building the structure for a composite build.

    • -1
    • +1
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 12 more files in changeset.
Fix build events and operations for composite builds

- Add common 'Load build' operation for init and settings of every build

- Fire correct build events for unused included builds

- Fire correct build events for included build executed on-demand for

buildscript classpath

    • -0
    • +1
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 7 more files in changeset.
Improve failure reporting in test

    • -7
    • +1
    ./CompositeBuildOperationsIntegrationTest.groovy
Build operations from included builds should be nested under the outer most build operation

- Add root BuildOperation to GradleInternal

- Attach parent build operation to settings and configuration operations,

calculate task graph and execution operations

- buildSrc operations should also be under the outermost build

- In composite build tests, always assert operations are a single tree

    • -3
    • +26
    ./CompositeBuildOperationsIntegrationTest.groovy
  1. … 26 more files in changeset.
Added very basic test for build operations with composite builds

This test currently fails, showing that the task execution operations

for an included build are nested within the build operation for the

delegating task of the including build.

    • -0
    • +67
    ./CompositeBuildOperationsIntegrationTest.groovy