ErrorInWorkerSocketIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixes.

    • -14
    • +5
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 1 more file in changeset.
Simplify the contract for 'single request' and 'mult-request' worker process clients and server implementations.

Previously, the contract used reflection to allow arbitrary methods to be called on the client and implemented in the server. However, all of the actual implementations had a single object in object out method. So, in this commit remove the reflection and support just a single 'run' method.

    • -17
    • +6
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 45 more files in changeset.
Simplify the contract for 'single request' and 'mult-request' worker process clients and server implementations.

Previously, the contract used reflection to allow arbitrary methods to be called on the client and implemented in the server. However, all of the actual implementations had a single object in object out method. So, in this commit remove the reflection and support just a single 'run' method.

    • -17
    • +6
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 45 more files in changeset.
Simplify the contract for 'single request' and 'mult-request' worker process clients and server implementations.

Previously, the contract used reflection to allow arbitrary methods to be called on the client and implemented in the server. However, all of the actual implementations had a single object in object out method. So, in this commit remove the reflection and support just a single 'run' method.

    • -4
    • +2
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 45 more files in changeset.
Simplify the contract for 'single request' and 'mult-request' worker process clients and server implementations.

Previously, the contract used reflection to allow arbitrary methods to be called on the client and implemented in the server. However, all of the actual implementations had a single object in object out method. So, in this commit remove the reflection and support just a single 'run' method.

    • -17
    • +6
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 45 more files in changeset.
Simplify the contract for 'single request' and 'mult-request' worker process clients and server implementations.

Previously, the contract used reflection to allow arbitrary methods to be called on the client and implemented in the server. However, all of the actual implementations had a single object in object out method. So, in this commit remove the reflection and support just a single 'run' method.

    • -17
    • +6
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 45 more files in changeset.
Annotate remaining tests invoking Task.getProject() during execution

as @ToBeFixedForInstantExecution

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

    • -0
    • +2
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 27 more files in changeset.
Fix scripts in test reaching out to project in task actions

where the fix is trivial

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

    • -1
    • +1
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 19 more files in changeset.
Fix scripts in test reaching out to project in task actions

where the fix is trivial

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

    • -1
    • +1
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 19 more files in changeset.
Increase ErrorInWorkerSocketIntegrationTest timeout to 180s

Analysis on some failures shows that 120s is still not enough under certain

conditions. This commit increases the timeout to 180s.

    • -1
    • +1
    ./ErrorInWorkerSocketIntegrationTest.groovy
Increase ErrorInWorkerSocketIntegrationTest timeout to 120s

Seems like sometimes this test timeouts on low-performance machine.

Currently we simply increase this number to 120.

    • -1
    • +1
    ./ErrorInWorkerSocketIntegrationTest.groovy
Handle unrecoverable errors in worker process (#6798)

We fork worker processes to do necessary work, such as test/start play application/run worker daemons, and control these worker processes via socket. However, if something is wrong in the worker processes' socket connection threads, the worker process might be stuck forever.

This PR makes an attempt by registering an "unrecoverable error handler" to `ObjectConnection`. If something unexpected happens, the worker can exit instead of hanging forever. This is not a perfect solution, but it's better than hanging forever. Also, the worker process can record the exceptions into a file to help people understand what's going on there.

    • -0
    • +80
    ./ErrorInWorkerSocketIntegrationTest.groovy
  1. … 8 more files in changeset.