WorkerExecutorParallelIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix WorkerExecutorParallelIntegrationTest

    • -0
    • +6
    ./WorkerExecutorParallelIntegrationTest.groovy
Fix https://github.com/gradle/gradle-private/issues/2551

This commit fixes the flaky issue by using null-safety operator.

    • -1
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
Remove displayName from work queue api for now

    • -16
    • +8
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 11 more files in changeset.
Rename WorkerExecution to WorkAction, WorkerParameters to WorkParameters

    • -50
    • +50
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 37 more files in changeset.
Refactor worker api to support WorkQueue API

    • -24
    • +29
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 30 more files in changeset.
Use a ConfigurableFileCollection for classpath in worker specs

    • -4
    • +4
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 12 more files in changeset.
Update worker api test coverage to use typed parameter api

    • -134
    • +97
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 18 more files in changeset.
Improve task names to clarify test

    • -11
    • +11
    ./WorkerExecutorParallelIntegrationTest.groovy
Do not reacquire project lock when completing a worker-based task

The project lock is released if submitted work items are pending when the

task action completes. With this change, the lock is no longer reacquired

once these work items finish: instead, the task is marked as "complete"

without reacquiring the project-mutation lock.

This isn't quite correct, since there are cases where the project lock

should be reacquired, such as when a task as further task actions to execute.

This will be addressed in a subsequent commit.

    • -3
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 11 more files in changeset.
Add test for eager completion of worker-based tasks

This test uses build operations to verify that a worker-based task

can complete while another task in the same project is executing

in parallel.

    • -0
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 1 more file in changeset.
Add test for worker-based task completing without reacquiring project lock

This test demonstrates the current behaviour, where a worker-based task is

not considered 'complete' until it has reacquired the project lock. This will

be fixed in subsequent commits.

    • -30
    • +68
    ./WorkerExecutorParallelIntegrationTest.groovy
Extract WorkerExecutorFixture to enable reuse

    • -1
    • +3
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 9 more files in changeset.
Fix flakiness in thread-management test

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

We observed some timeouts on EC2 agents. Now try to increase the timeout.

    • -1
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
Add some coverage for thread pool size with nested work and improve some comments

    • -2
    • +4
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 7 more files in changeset.
Move worker executor queue up to build session scope so that it is used by all projects

    • -1
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 5 more files in changeset.
Fix issue with threads leaking from Worker API

    • -0
    • +46
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 5 more files in changeset.
Set timeout for AbstractIntegrationSpec (#5806)

We have been bitten by CI build exection timeout for a long time.

This PR introduces timeout for AbstractIntegrationSpec in order to

monitor execution timeout. Upon timeout, a spock interceptor can

print all threads' stack traces in all JVMs so that we can diagnose

the potential issues in other JVMs (daemons, test workers, etc.).

    • -2
    • +2
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 29 more files in changeset.
Dogfood ImmutableFileCollection on production code (#4988)

This reverts commit 13eaebc2b1244511dcbff4c59cd41253e3b69642.

    • -1
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 88 more files in changeset.
Revert "Dogfood ImmutableFileCollection on production code (#4988)"

This reverts commit 834632674ca29b6fd190857947338b2b54a9bb62.

The commit caused a bug in incremental compilation, causing changes

to go undetected.

    • -1
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 88 more files in changeset.
Dogfood ImmutableFileCollection on production code (#4988)

Use ImmutableFileCollection in production code

    • -1
    • +1
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 88 more files in changeset.
Change int tests to use relevant fixture methods to express their expectations about the build log output.

    • -6
    • +0
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 30 more files in changeset.
Limit memory usage of worker daemons in tests

    • -0
    • +3
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 2 more files in changeset.
WorkerDaemonFactory acquires worker lease before daemon client

    • -9
    • +118
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 3 more files in changeset.
Add some test coverage for a task with multiple actions run in parallel

    • -0
    • +25
    ./WorkerExecutorParallelIntegrationTest.groovy
Change worker API to not release project locks on user wait

    • -12
    • +41
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 7 more files in changeset.
Tweaked the API of `BlockingHttpServer` to make it somewhat more convenient to use in tests.

    • -24
    • +24
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 15 more files in changeset.
Add test to ensure worker action params are immutable

    • -0
    • +61
    ./WorkerExecutorParallelIntegrationTest.groovy
Some fixes for timeout in int test: switched to using Java for unit tests in the test build, and compile everything prior to starting the test build.

    • -6
    • +6
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 8 more files in changeset.
Basic support for no-isolation workers

    • -46
    • +52
    ./WorkerExecutorParallelIntegrationTest.groovy
  1. … 15 more files in changeset.