PropertyKotlinInterOpIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add additional assertions in interoperability tests for org.gradle.api.provider.Property

Signed-off-by: Gregor Dschung <gregor@chkpnt.de>

    • -0
    • +3
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 9 more files in changeset.
Remove always-true KOTLIN_SCRIPT test precondition

    • -3
    • +0
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 43 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 16 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 24 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 24 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -100
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 16 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 24 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 24 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 24 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 24 more files in changeset.
Add test coverage to verify the various managed things work well when defined in/used from Java, Groovy and Kotlin.

    • -97
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 24 more files in changeset.
Disable stacktrace checking for PropertyKotlinInterOpIntegrationTest

This closes https://github.com/gradle/build-tool-flaky-tests/issues/76

It's not Gradle's fault for these stacktraces. Disable them.

    • -0
    • +1
    ./PropertyKotlinInterOpIntegrationTest.groovy
Archive Kotlin compiler logs

We see test failures on CI that are linked to the Kotlin compiler daemon

We now attempt at archiving these logs whenever a impacted test fails.

Issue gradle/build-tool-flaky-tests#76

    • -5
    • +22
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 2 more files in changeset.
Archive Kotlin compiler logs

We see test failures on CI that are linked to the Kotlin compiler daemon

We now attempt at archiving these logs whenever a impacted test fails.

Issue gradle/build-tool-flaky-tests#76

    • -5
    • +29
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 2 more files in changeset.
Archive Kotlin compiler logs

We see test failures on CI that are linked to the Kotlin compiler daemon

We now attempt at archiving these logs whenever a impacted test fails.

Issue gradle/build-tool-flaky-tests#76

    • -5
    • +30
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 2 more files in changeset.
Fix property integration tests

    • -0
    • +7
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 5 more files in changeset.
Fix construction of list, set and map properties created using Kotlin types that map to Java primitive types.

    • -1
    • +19
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 5 more files in changeset.
Integ test should reuse kotlin compiler daemon

to prevent OOME

by not setting -Dkotlin.compiler.execution.strategy=in-process

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

    • -0
    • +2
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 3 more files in changeset.
Finalize the value of any task `@Input` property whose getter returns a property instance, at the start of execution of the task.

This means that the property value will not change once the task has started execution, so that the same value is always used during fingerprinting, cache key calculation, validation, when queried by a task action, and so on.

This behaviour only applies to `@Input` properties in this commit. This was just a place to start. Other properties will be added in later commits.

Changes to the property are ignored once the value is finalized implicitly in this way and generate a deprecation warning instead of failing, as would happen after `finalizeValue()` is called. This allows a migration path for task types that can add a new property to represent some input and keep their existing lenient (but now deprecated) behaviour for an existing property backed by the new property. It might prove better to flip this around, let's see.

    • -4
    • +19
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 61 more files in changeset.
Change those integration tests that are using the Kotlin plugin to disable the Kotlin compiler daemon.

    • -2
    • +0
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 4 more files in changeset.
Move some provider integration tests to live with the implementations.

    • -0
    • +105
    ./PropertyKotlinInterOpIntegrationTest.groovy
  1. … 14 more files in changeset.