Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Run perf with loopback

    • -1
    • +1
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 14 more files in changeset.
Deactivate failing tests

    • -0
    • +3
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 4 more files in changeset.
Deactivate failing tests

    • -0
    • +3
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 2 more files in changeset.
Explicitly add gradle runtime to worker API classpath

    • -0
    • +7
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Revert "Merge pull request #7838 from gradle/eskatos/messaging/bind-loopback-if-available"

Listening to the loopback device seems to cause some connection issues

to the daemon from IDEA. Reverting the change for now.

This reverts commit 9a940b21ee06ed0b5c83b7d88f7d191a0d7a590e, reversing

changes made to 18b1f6e10f32f623986868bb39e083b49467b16e.

    • -1
    • +1
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 6 more files in changeset.
Prefer loopback bind address if available for IPC

Keep file lock communicator bound to wildcard address

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

    • -1
    • +1
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 6 more files in changeset.
Prefer loopback bind address if available for IPC

Keep file lock communicator bound to wildcard address

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

    • -1
    • +1
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 6 more files in changeset.
Prefer loopback bind address if available for IPC

Keep file lock communicator bound to wildcard address

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

    • -1
    • +1
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 6 more files in changeset.
Rename a test case in DefaultFileLockManagerContentionIntegrationTest

This fixes https://github.com/gradle/gradle/issues/7811

Under certain conditions, the generated worker daemon classpath argument file triggers a

JDK argument file parser bug. This commit does a workaround to bypass it by simply renaming

the test case, which can greatly change the generated classpath file.

    • -1
    • +2
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Use TextUtil to escape path

    • -3
    • +4
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Fix DefaultFileLockManagerContentionIntegrationTest on Java 11

    • -1
    • +2
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Improve file lock contention handling

This commit improves the likelihood for lock requesters to acquire a

file lock after it is released due to contention. After the lock has

been released, the former lock holder now sends a packet to the sockets

of all requesters. While old clients will simply ignore the additional

packet, new clients will interpret it as a signal that the file lock has

been released and will try to acquire it immediately.

Issue: gradle/gradle-private#1412.

    • -1
    • +44
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 14 more files in changeset.
Fix custom service registries

    • -0
    • +2
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 5 more files in changeset.
Fix test flakiness by also checking the lock id in log messages

    • -5
    • +6
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
try to fix hanging test

use blocking HTTP fixture instead of polling for files

    • -10
    • +10
    ./gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessIntegrationTest.groovy
Strive to keep Gradle's monotonic clock in sync with the system clock

    • -4
    • +3
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 71 more files in changeset.
Simplify time handling internally and for build scans (#2857)

* Don't make TimeProvider Serializable.

This isn't safe and generally doesn't make sense.

* Extract and promote the concept of a build timer.

This was previously not well defined and being overlaid with the concept of when a user/tool requested something, which is not always the same thing.

* Pare down the deprecated org.gradle.util.Clock down to the minimum required.

Internal usage is replaced by a `getStartTime()` directly on BuildRequestContext.

What is left is only kept for backwards compatibility with scans.

* Rename TimeProvider to Clock.

* Move BuildExecutionTimer out of baseServices into core, and into a better package.

* Remove unused.

* Simplify the time package by merging types.

* Prevent the client's build started timestamp from being later than when the provider received the build request.

* Provide a dedicated mechanism for conveying the build start time to build scans.

* Consolidate the ways of formatting durations.

    • -2
    • +2
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 179 more files in changeset.
Fix assertion in test

    • -4
    • +4
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Fix assertion in test

    • -4
    • +4
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Use explicit assert to get better error output in case of failing test

This assertions seems to be flaky.

    • -2
    • +2
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Use explicit assert to get better error output in case of failing test

This assertions seems to be flaky.

    • -2
    • +2
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Fix issue with simultaneous attempts to initialize a shared cache (#2793)

Fixes #2737

    • -0
    • +99
    ./gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessIntegrationTest.groovy
  1. … 2 more files in changeset.
Minor readability improvements and test cleanup

    • -1
    • +5
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 1 more file in changeset.
Cleanup test thread after test finished

    • -4
    • +10
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
Restart timer if the lock owner changes

If many processes fight and wait for the same lock, the timeout in one

process could be triggered, because it is "last in line". All the times

others hold the lock are added up for the timeout.

This change resets the timeout as soon as the lock owner changes.

    • -0
    • +74
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
  1. … 2 more files in changeset.
Add integration test for cross-process cache lock contention handling

    • -0
    • +238
    ./gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy