WorkerProcessIntegrationTest.groovy

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Only run these tests on unixy systems

  1. … 1 more file in changeset.
Only run these tests on unixy systems

  1. … 1 more file in changeset.
Only run these tests on unixy systems

  1. … 1 more file in changeset.
Only run these tests on unixy systems

  1. … 1 more file in changeset.
Add tests to for capturing output from workers before logging initialization

    • -20
    • +29
    ./WorkerProcessIntegrationTest.groovy
  1. … 1 more file in changeset.
Add tests to for capturing output from workers before logging initialization

    • -20
    • +29
    ./WorkerProcessIntegrationTest.groovy
  1. … 1 more file in changeset.
Make worker daemons reusable across builds

  1. … 26 more files in changeset.
Refactor WorkerFactory so that the idle working dir is injected on the server side

  1. … 26 more files in changeset.
Fix issue with worker output being sent after connection is closed

  1. … 2 more files in changeset.
Configure -Xmx for daemons and workers in various tests

    • -20
    • +22
    ./WorkerProcessIntegrationTest.groovy
  1. … 44 more files in changeset.
Set default log level back to LIFECYCLE (#2015)

  1. … 41 more files in changeset.
Change default log level to WARN (#1952)

  1. … 44 more files in changeset.
Unregister output event listener before stopping messaging services

- Avoids output in jvm shutdown hooks trying to send messages after

messaging services are stopped.

- Keeps logging manager alive while stopping messaging services and

then stops the logging manager to reattach stdout/stderr.

    • -0
    • +10
    ./WorkerProcessIntegrationTest.groovy
  1. … 2 more files in changeset.
Make worker action deserialization part of worker process startup

This makes successful worker startup mean the process started, the

worker action was deserialized, and a successful connection was made

back to the build process. Any failures in those steps throw an

exception on start(). Any failures after throw an exception on waitForStop().

  1. … 2 more files in changeset.
Capturing startup error for worker process test to investigate flakiness

Less frequently used idle worker daemons memory based expiration

Less frequently used idle worker daemons are expired when available system memory gets below a threshold.

Expiration strategy is triggered both by memory sampling and when the build daemon is about to fork a new process, or a new worker daemon. It will attempt to free enough system memory to fit the new process below the threshold according to it's fork options.

This implementation does an approximation on the amount of memory held by worker daemons, using their max heap setting instead of their committed memory. This will be fixed in subsequent changes.

  1. … 24 more files in changeset.
Move worker processes tests back in :core

Follow up on #943

Worker daemons are in :workers, but worker processes could not be

moved there because of dependencies to :core.

    • -0
    • +320
    ./WorkerProcessIntegrationTest.groovy
  1. … 41 more files in changeset.
Move workers into their own subproject

    • -226
    • +0
    ./WorkerProcessIntegrationTest.groovy
  1. … 122 more files in changeset.
Moved `o.g.messaging.*` to `o.g.internal.*`.

  1. … 295 more files in changeset.
Moved worker process classes into their own package.

  1. … 92 more files in changeset.
Added some test coverage that worker process stdout and stderr are forwarded to the build process' System.out and System.err

    • -0
    • +12
    ./WorkerProcessIntegrationTest.groovy
  1. … 1 more file in changeset.
Converted an int test from jmock to spock, extracted some duplication into a shared spot.

    • -0
    • +211
    ./WorkerProcessIntegrationTest.groovy
  1. … 11 more files in changeset.