CachedMissingModulesIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove `@ToBeFixedForInstantExecution` from `CachedMissingModulesIntegrationTest`

    • -1
    • +0
    ./CachedMissingModulesIntegrationTest.groovy
Test fixes for strictness.

    • -1
    • +3
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 13 more files in changeset.
Change `AbstractIntegrationSpec` to fail when a test runs a build that fails with more than one exception and does not verify the number of exceptions in the failure using `assertHasFailures()`.

This is to avoid additional exceptions unintentionally being introduced, for example when a failure starts being thrown because of configuration cache problems alongside the expected failure.

    • -1
    • +3
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 81 more files in changeset.
Change `AbstractIntegrationSpec` to fail when a test runs a build that fails with more than one exception and does not verify the number of exceptions in the failure using `assertHasFailures()`.

This is to avoid additional exceptions unintentionally being introduced, for example when a failure starts being thrown because of configuration cache problems alongside the expected failure.

    • -1
    • +3
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 81 more files in changeset.
Change `AbstractIntegrationSpec` to fail when a test runs a build that fails with more than one exception and does not verify the number of exceptions in the failure using `assertHasFailures()`.

This is to avoid additional exceptions unintentionally being introduced, for example when a failure starts being thrown because of configuration cache problems alongside the expected failure.

    • -1
    • +3
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 81 more files in changeset.
Annotate tests to account for new reported problems

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

    • -2
    • +0
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 48 more files in changeset.
Annotate tests to account for new reported problems

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

    • -2
    • +0
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 48 more files in changeset.
Annotate tests to account for new reported problems

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

    • -2
    • +0
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 49 more files in changeset.
Annotate tests to account for new reported problems

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

    • -2
    • +0
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 49 more files in changeset.
Annotate tests to account for new reported problems

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

    • -2
    • +0
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 49 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

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

    • -9
    • +9
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 872 more files in changeset.
Annotate integ tests failing with instant execution in various projects

removing most of @IgnoreWithInstantExecution annotations

after fixing the @FailsWithInstantExecution rule

and more ci feedback

also make @IgnoreWithInstantExecution require a reason from a fixed set

and add it to the remaining ignores

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

    • -3
    • +2
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 126 more files in changeset.
Annotate integ tests failing with instant execution in :dependencyManagement

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

    • -0
    • +10
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 93 more files in changeset.
Annotate integ tests failing with instant execution in :dependencyManagement

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

    • -0
    • +10
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 93 more files in changeset.
Annotate integ tests failing with instant execution in :dependencyManagement

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

    • -0
    • +10
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 93 more files in changeset.
Adjust tests and samples to new metadata sources defaults

    • -36
    • +4
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 95 more files in changeset.
wip - fix more tests

    • -36
    • +4
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 46 more files in changeset.
wip - fix more tests

    • -36
    • +4
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 14 more files in changeset.
wip - fix more tests

    • -36
    • +4
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 45 more files in changeset.
wip - fix more tests

    • -36
    • +4
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 46 more files in changeset.
Improve error reporting in case no matching dynamic version is found

This commit improves rendering of errors in case resolution fails because

all versions in a dynamic range are evicted, and that at least one of the

evicted versions was evicted because of attribute matching. The error will

now report the attributes on each tested version, as well as the requested

attributes.

For this, the module not found exception has been updated to carry more

context, and now makes use of the tree formatter for consistency with other

exceptions in the codebase.

    • -28
    • +28
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 37 more files in changeset.
Make caching of missing group:name permanent

This aligns the behavior with caching of missing group:name:version.

Added a number of integration tests to further document caching

behavior.

Fixes #4436

    • -1
    • +174
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 3 more files in changeset.
Some changes to `MavenModule` test fixtures to allow an artifact in a module to be defined using a path relative to the module directory, moved up some methods to more general interfaces, and some other tidy-ups.

    • -1
    • +1
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 13 more files in changeset.
Make `MavenMetadataLoader` use `CacheAwareExternalResourceAccessor`

This allows caching the calls to get `maven-metadata.xml`, and, since we now coordinate access to remote

resources through `CacheAwareExternalResourceAccessor`, reduce the number of remote calls in case several

projects are resolved in parallel: metadata loader honors the contract of not downloading the same

resource (`maven-metadata.xml`) concurrently.

    • -2
    • +2
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 21 more files in changeset.
Use doLast instead of left shift operator

Made this change in preparation for deprecating the left shift operator.

+review REVIEW-6236

    • -7
    • +11
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 163 more files in changeset.
Some fixes to reporting search locations when match for dynamic version not found and caching is involved.

    • -3
    • +42
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 4 more files in changeset.
Added some more int test coverage for dynamic version resolution and caching.

    • -2
    • +85
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 1 more file in changeset.
Added more detail to the 'could not find any matches for selector' error message, to distinguish between:

1. No versions were found.

2. Some candidate versions were found but none matched the selector (and what those versions were).

3. Some matching versions were found by all were rejected by component selection rules (and what those versions were).

Changed ModuleVersionResolveException constructor so that it does not pass the provided message through String.format().

    • -2
    • +2
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 22 more files in changeset.
Fleshed out int test case

    • -11
    • +54
    ./CachedMissingModulesIntegrationTest.groovy
Renamed subprojects/core-impl to subprojects/dependency-management.

    • -0
    • +335
    ./CachedMissingModulesIntegrationTest.groovy
  1. … 1384 more files in changeset.