CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixes.

    • -7
    • +7
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 7 more files in changeset.
Move execution of `TaskExecutionGraph.whenReady()` events so that it happens as part of model configuration, rather than task execution.

This better reflects its role and also allows changes made by the event handler to be captured to the instant execution cache.

    • -7
    • +7
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 12 more files in changeset.
Move execution of `TaskExecutionGraph.whenReady()` events so that it happens as part of model configuration, rather than task execution.

This better reflects its role and also allows changes made by the event handler to be captured to the instant execution cache.

    • -7
    • +7
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 12 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

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

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

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

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

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

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

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

    • -0
    • +3
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.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
    • +12
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 72 more files in changeset.
Fix included build path naming and tests

    • -7
    • +12
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 17 more files in changeset.
Build buildSrc after applying the settings file (#10305)

Fixes #9094 and #5333

    • -19
    • +19
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 54 more files in changeset.
Update composite build tests

    • -19
    • +19
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
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.

    • -0
    • +28
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.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`.

    • -3
    • +3
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.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.

    • -2
    • +21
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 7 more files in changeset.
Always use `buildSrc` as identity path of the root project of a `buildSrc` build, regardless of what the root project name happens to be.

Continue to move responsibility for calculation of the identifiers, paths and names of builds into the `BuildState` implementations from various other places. The calculation of the build and project identity paths is still quite messy.

    • -1
    • +1
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 14 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.

    • -2
    • +2
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.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.

    • -13
    • +13
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 13 more files in changeset.
Fix assignment of `BuildIdentifier` when there are multiple `buildSrc` builds in the build tree.

    • -0
    • +79
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 4 more files in changeset.
Added some test coverage for buildPath/buildIdentifier in various build compositions.

    • -0
    • +106
    ./CompositeBuildBuildSrcBuildOperationsIntegrationTest.groovy
  1. … 10 more files in changeset.