DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Combine project lock service with build operation worker registry

    • -1
    • +3
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 28 more files in changeset.
Change project lock service to only use synchronous locking methods

    • -35
    • +17
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 12 more files in changeset.
Only select task to execute if lock is acquired

Adds thread-based locking back in task execution plan.

Adds listener and callback so task workers blocked waiting

on a change in task state can be notified when locks are

released.

    • -8
    • +53
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 14 more files in changeset.
Rework the project locking service

- Lock based on operation

- Make locking/unlocking always occur in a single method

- Only use parallel task plan executor

- Lock around entire task instead of task actions

    • -46
    • +1
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 23 more files in changeset.
Use project locking to parallelize tasks with async work

- Allow tasks to start while running tasks are waiting on async work

- Lock on the entire build when --parallel is not used

- Discontinue handling of @ParallelizableTask

    • -347
    • +0
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 40 more files in changeset.
first stab at a project locking service

    • -4
    • +12
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 23 more files in changeset.
Use project locking to parallelize tasks with async work

- Allow tasks to start while running tasks are waiting on async work

- Lock on the entire build when --parallel is not used

- Discontinue handling of @ParallelizableTask

    • -347
    • +0
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 40 more files in changeset.
Remove deprecated methods on TestUtil (#672)

In order to use project builder correctly without having

leaking files on windows it is necessary to initialize

the test fixture for NativeServices and clean up

the test directory after building.

AbstractProjectBuilderSpec provides a nice base class

for Groovy tests.

I removed the deprecated methods since using them leads

to files lying around. Migrating all the usages to the "new"

way ensures it is used correctly.

    • -8
    • +4
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 97 more files in changeset.
Changed unit tests to use Project or ProjectInternal instead of the implementation classes.

    • -2
    • +2
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 32 more files in changeset.
Manually clean up symlinks in the test directories, as our auto cleanup stuff can't deal with it.

    • -0
    • +3
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 3 more files in changeset.
Adding initialDelay support to ConcurrentTestUtil.poll()

+review REVIEW-5540

    • -1
    • +1
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 4 more files in changeset.
Changing PollingConditions.poll() usages to ConcurrentTestUtil.poll()

+review REVIEW-5540

    • -3
    • +2
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 13 more files in changeset.
Initializing native services for more broken tests

+review REVIEW-5378

    • -2
    • +2
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 22 more files in changeset.
Introduce a 'org.gradle.parallel.intra' sysprop toggle for intra project task parallelization.

+review REVIEW-5311

    • -2
    • +18
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 5 more files in changeset.
Add test case for detecting overlaps when one task is writing to a symlink that is an output dir of another.

+review REVIEW-5293

    • -1
    • +25
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
Add some coverage for detecting overlapping task outputs when symlinks are involved.

+review REVIEW-5300

    • -0
    • +24
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
Don't run tasks in parallel if their outputs are declared as overlapping parts of the filesystem

+review REVIEW-5300

    • -0
    • +103
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 4 more files in changeset.
Suitable tasks of JavaPlugin are parallel enabled

+review REVIEW-5292

    • -0
    • +14
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 6 more files in changeset.
DefaultTask based task implementation opts in to parallel execution via annotation

+review REVIEW-5286

    • -0
    • +168
    ./DefaultTaskExecutionPlanParallelTaskHandlingTest.groovy
  1. … 25 more files in changeset.