internal

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Track CompileOptions.annotationProcessorPath for up-to-date checking

    • -1
    • +5
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 3 more files in changeset.
Deprecate JavaCompile.effectiveAnnotationProcessorPath

    • -5
    • +1
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 3 more files in changeset.
Relax ordering of plugin application operation asserts

    • -19
    • +13
    ./plugins/ApplyPluginBuildOperationIntegrationTest.groovy
  1. … 1 more file in changeset.
Fix integration tests that relied on placeholder behavior

    • -0
    • +4
    ./plugins/ApplyPluginBuildOperationIntegrationTest.groovy
  1. … 7 more files in changeset.
Ignore `@Nested` properties when attaching output file `Property` instances to their producing task.

This is a work around to avoid the performance cost of `@Nested` property getters that throw exceptions when called immediately after the task is created. These issues will be addressed later and better support for output file `Property` properties attached to nested beans added.

    • -1
    • +1
    ./project/taskfactory/TaskPropertyNamingIntegrationTest.groovy
  1. … 12 more files in changeset.
Use separate reason for disabling caching

Also disable caching if any FileTree is used as output. We don't support DirectoryFileTrees as `@OutputDirectory` outputs either, so no reason to support them in plural outputs either.

    • -8
    • +16
    ./tasks/TaskCacheabilityReasonIntegrationTest.groovy
  1. … 5 more files in changeset.
Remove deprecated Class.newInstance() (#6496)

`Class.newInstance()` was deprecated in Java 9.

    • -1
    • +1
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 34 more files in changeset.
Enable caching for most plural outputs

When @OutputFiles or @OutputDirectories is used with an Iterable (instead of a Map), we previously disabled caching without much explanation. The original reason for this was that we expected a difference in cardinality of outputs between the task producing the output and the one consuming it. However, if we represent each entry in the collection as an indexed property, then unmatched cardinality will produce a different cache key anyway. Thus there's no need for this limitation.

    • -3
    • +5
    ./tasks/TaskCacheabilityReasonIntegrationTest.groovy
  1. … 6 more files in changeset.
Move test to live with other related tests.

    • -193
    • +0
    ./provider/ListPropertyIntegrationTest.groovy
  1. … 1 more file in changeset.
Replace internal `SourceDirectorySetFactory` with a method on public `ObjectFactory` service, to allow plugins to create instances of this type without resorting to using internal types.

    • -0
    • +11
    ./model/DefaultObjectFactoryIntegrationTest.groovy
  1. … 44 more files in changeset.
Reduce poll interval even further

There still seems to be some flakyness left.

    • -2
    • +2
    ./changedetection/CorruptedTaskHistoryIntegrationTest.groovy
Minor tweak to layout of prompt used to ask user to select an option from a list.

    • -3
    • +3
    ./tasks/userinput/UserInputHandlingIntegrationTest.groovy
  1. … 3 more files in changeset.
Allow the user to be prompted with a yes/no question that has a default response.

    • -0
    • +66
    ./tasks/userinput/UserInputHandlingIntegrationTest.groovy
  1. … 4 more files in changeset.
Change test class so that it doesn't run each test case using both daemon and no-daemon execution. Instead, the test runs with whichever execution the current test suite is using, and all of the execution modes will be covered at least once in various stages of CI.

    • -6
    • +0
    ./tasks/userinput/AbstractUserInputHandlerIntegrationTest.groovy
    • -20
    • +14
    ./tasks/userinput/UserInputHandlingIntegrationTest.groovy
Change the user prompt infrastructure to give the user some feedback when they enter a value that isn't valid for the question. Add some test coverage for user prompting.

    • -2
    • +2
    ./tasks/userinput/AbstractUserInputHandlerIntegrationTest.groovy
    • -124
    • +0
    ./tasks/userinput/DefaultBuildScanUserInputHandlerIntegrationTest.groovy
    • -0
    • +354
    ./tasks/userinput/UserInputHandlingIntegrationTest.groovy
  1. … 22 more files in changeset.
Remove SimpleFileCollection

#6274

    • -33
    • +0
    ./file/collections/SimpleFileCollectionIntegrationTest.groovy
  1. … 2 more files in changeset.
Reduce flakiness of CorruptedTaskHistoryIntegrationTest

Instead of using a fixed interval after which to kill the Gradle

process we poll until 40 tasks have completed. That should isolate

the test from varying build durations.

    • -16
    • +16
    ./changedetection/CorruptedTaskHistoryIntegrationTest.groovy
Change the `init` task to prompt the user for any build init settings that were not specified on the command-line.

    • -1
    • +1
    ./tasks/userinput/AbstractUserInputHandlerIntegrationTest.groovy
  1. … 12 more files in changeset.
Don't address task input directories for now and get all tests passing

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

    • -15
    • +38
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 4 more files in changeset.
Show current idea and start fixing tests

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

    • -38
    • +15
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 3 more files in changeset.
Fix `ListProperty` and `SetProperty` implementations to coerce `GString` values to `String` when the property element type is `String`, and remove work around from C++ model builder.

    • -6
    • +68
    ./provider/ListPropertyIntegrationTest.groovy
  1. … 3 more files in changeset.
Expose input file snapshots to build operation listeners (#6153)

    • -16
    • +160
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 32 more files in changeset.
Use external repository mirrors in build (#6094)

We've been bitten by external repository fluctuation for a long time.

This PR makes most of tests use repository mirrors set up by ourselves

via init script and system property.

There're still some tests not switching to mirrors, which would be fixed

in follow-up commits.

    • -1
    • +3
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 99 more files in changeset.
Expose deprecation warning messages and stacktraces via build operations (#5881)

Expose deprecation warnings as operation progress events

- introduce split of message, warning and advice

- make deprecation progress events immutable

- rework deprecation handling/messages to support more a richer model

- update build operation progress model

- tweak existing deprecation warnings to match new model

- Add performance test + make stacktrace calculation for build ops lazy

- Always include a trace with FeatureUsage now that its always required

  1. … 65 more files in changeset.
Require distribution in less integration tests

No distribution is required in any of the tests changed here.

Requiring a distribution has several drawbacks:

- you need to run intTestImage before testing any change

- the test can't run in the embedded executer, making it slow

- the test is harder to debug, as it's not run in the embedded executer

There are probably more tests that don't really needs this,

but just changing these few should improve turnarounds a bit.

    • -3
    • +0
    ./tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
  1. … 6 more files in changeset.
Add assertRawErrorOutput method to execution result fixtures

    • -3
    • +3
    ./buildevents/AbstractBuildResultLoggerFunctionalTest.groovy
  1. … 5 more files in changeset.
Add test coverage for console attached to stderr but not stdout

    • -2
    • +2
    ./buildevents/AbstractBuildResultLoggerFunctionalTest.groovy
  1. … 9 more files in changeset.
Simplify ConsoleAttachment so that it always carries the console metadata with it

    • -0
    • +1
    ./buildevents/AbstractBuildResultLoggerFunctionalTest.groovy
    • -1
    • +0
    ./buildevents/RichConsoleBuildResultLoggerFunctionalTest.groovy
    • -1
    • +0
    ./buildevents/VerboseConsoleBuildResultLoggerFunctionalTest.groovy
  1. … 8 more files in changeset.
Make rich/verbose consoles behave similar to plain when streams are not attached

    • -2
    • +2
    ./buildevents/AbstractBuildResultLoggerFunctionalTest.groovy
    • -2
    • +2
    ./buildevents/RichConsoleBuildResultLoggerFunctionalTest.groovy
    • -2
    • +2
    ./buildevents/VerboseConsoleBuildResultLoggerFunctionalTest.groovy
  1. … 22 more files in changeset.
Fix BuildResultLogger tests when using rich/verbose consoles

    • -1
    • +2
    ./buildevents/RichConsoleBuildResultLoggerFunctionalTest.groovy
    • -1
    • +2
    ./buildevents/VerboseConsoleBuildResultLoggerFunctionalTest.groovy