CompositeBuildEventsIntegrationTest.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>

    • -6
    • +6
    ./CompositeBuildEventsIntegrationTest.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
    • +6
    ./CompositeBuildEventsIntegrationTest.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
    • +6
    ./CompositeBuildEventsIntegrationTest.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
    • +6
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 27 more files in changeset.
Deprecate BuildListener#buildStarted and Gradle#buildStarted

Registering this callback within an init, settings or build script has

no effect as the build is already started. Those callback are also part

of an older API. Removing it from the public API will prevent further

user confusion.

    • -0
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 13 more files in changeset.
Deprecate BuildListener#buildStarted and Gradle#buildStarted

Registering this callback within an init, settings or build script has

no effect as the build is already started. Those callback are also part

of an older API. Removing it from the public API will prevent further

user confusion.

    • -0
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 12 more files in changeset.
Deprecate BuildListener#buildStarted and Gradle#buildStarted

Registering this callback within an init, settings or build script has

no effect as the build is already started. Those callback are also part

of an older API. Removing it from the public API will prevent further

user confusion.

    • -0
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 13 more files in changeset.
Deprecate BuildListener#buildStarted and Gradle#buildStarted

Registering this callback within an init, settings or build script has

no effect as the build is already started. Those callback are also part

of an older API. Removing it from the public API will prevent further

user confusion.

    • -0
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 13 more files in changeset.
Let composite-build tests not use deprecated configurations

    • -1
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 12 more files in changeset.
Let composite-build tests not use deprecated configurations

    • -1
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 12 more files in changeset.
Let composite-build tests not use deprecated configurations

    • -1
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 12 more files in changeset.
Use java-library and its configurations in ResolveTestFixture

This mainly influences the composite build tests which intensively

use this fixture.

    • -2
    • +2
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 13 more files in changeset.
Report both failures when a `buildFinished` handler fails on a broken build.

    • -1
    • +56
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 6 more files in changeset.
Always run the `buildFinished` handlers for a build, regardless of whether any `buildFinished` handlers in another build fail or not.

Also include the location information for any `buildFinished` failures.

    • -0
    • +34
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 7 more files in changeset.
Stop using "task" to refer to nodes in the execution plan

    • -1
    • +1
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 23 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.

    • -4
    • +2
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 7 more files in changeset.
Fire 'build finished' event once only for each build per Gradle invocation. Previously, this may have been fired several times for a given build, when that build's tasks were required at both configuration time and execution time for some other build (this was intentional, but is no longer).

    • -10
    • +3
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 5 more files in changeset.
Change the lifecycle for included builds so that a given build is loaded and configured at most once, and a given task is executed at most once, during a Gradle invocation.

Previously, an included build could be discarded and its state recreated when tasks from that build were required at both configuration time and execution time of some other builds (possibly different builds for each). This was in order to avoid breaking changes to some public hooks, such as `taskGraph.whenReady()`. However this behaviour just adds too much complexity to justify. Instead, we'll look at replacements and possibly some minor breakages for these hooks.

This change fixes a number of edge cases in mixing plugin and production dependencies on included builds. There are a number of issues with the implementation which will be fixed in later commits.

    • -6
    • +7
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 4 more files in changeset.
Fire buildFinished for the root build after finishing all included builds (#4991)

Take 2.

    • -4
    • +57
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 3 more files in changeset.
Revert "Fire buildFinished for the root build after finishing all included builds (#4991)"

This reverts commit 324c2ca7ced373e829e03178490ef8f99de82f00.

    • -58
    • +4
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 2 more files in changeset.
Fire buildFinished for the root build after finishing all included builds (#4991)

    • -4
    • +58
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 2 more files in changeset.
Fix CompositeBuildEventsIntegrationTest usage of output test fixtures

    • -4
    • +5
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 6 more files in changeset.
Fix int test for changes to test fixtures.

    • -3
    • +2
    ./CompositeBuildEventsIntegrationTest.groovy
Remove @Ignore and widen what we consider passing

For some builds on CI, we see an additional :buildB configuration build

    • -6
    • +9
    ./CompositeBuildEventsIntegrationTest.groovy
Ignore flaky test

    • -0
    • +2
    ./CompositeBuildEventsIntegrationTest.groovy
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

    • -6
    • +50
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 7 more files in changeset.
Don't use NotYetImplemented since test will occasionally succeed

    • -2
    • +3
    ./CompositeBuildEventsIntegrationTest.groovy
Simplified the management of build phases in DefaultGradleLauncher

This makes it easier to manage the lifecycle of each included build

in a composite. In addition, buildStarted and buildFinished events

are now fired appropriately for included builds in most cases.

    • -1
    • +0
    ./CompositeBuildEventsIntegrationTest.groovy
  1. … 3 more files in changeset.
Mark build events test as NotYetImplemented

    • -16
    • +11
    ./CompositeBuildEventsIntegrationTest.groovy
Test buildListener events for included builds with internal (compileOnly) dependencies

    • -0
    • +30
    ./CompositeBuildEventsIntegrationTest.groovy