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

Re-enable a test.

Ignore flaky BlockingHttpServerTest for now

Change `BlockingHttpServer.stop()` to wait for all current requests to complete before collecting failures, so as to not miss failures that are happening at the same time that the test calls `stop()`.

Also some tweaks to error messages.

  1. … 7 more files in changeset.
Tweak the API of `BlockingHttpServer` and fix some flakiness in its error reporting.

Also replace the remaining usages of `CyclicBarrierHttpServer` with `BlockingHttpServer`.

  1. … 16 more files in changeset.
Rework `BlockingHttpServer` API to separate expected HTTP request from the action that should be performed when the request is received. Also remove usages of `HttpExchange` from tests (but not fixtures) as this is an internal detail of the fixture.

  1. … 22 more files in changeset.
Move serialization of the exception to send back to the client out of the `BuildActionRunner` implementations so that it is a cross cutting concern applied for all build actions.

  1. … 25 more files in changeset.
Improve error handling for tooling model invocations, so that any failure to build a model or run a client provided action is always treated as a build failure. Previously, some failures were ignored by error reporting.

Add a bunch of test coverage for TAPI error handling.

  1. … 30 more files in changeset.
Report both failures when a `buildFinished` handler fails on a broken build.

  1. … 6 more files in changeset.
Fix failed JavaProcessStackTracesMonitorSpec

Verify tests running in modular Java can access SLF4j

  1. … 7 more files in changeset.
Generate a settings file for integTests that don't define one

Instead of `AbstractGradleExecuter` relying on a magic system property to

effectively enable `--no-search-upward`, an empty settings file is instead

generated when none is defined for an integration test build.

  1. … 2 more files in changeset.
Ignore known flaky tests

  1. … 7 more files in changeset.
Introduce separate package for execution plan

This is the code that does not depend on tasks.

  1. … 59 more files in changeset.
Stop using "task" to refer to nodes in the execution plan

  1. … 23 more files in changeset.
Simplify BuildOperationNotificationListenerRegistrar

Only keep the method used by build scan plugin 2.0, which is the minimum

version required for Gradle 5.0+.

  1. … 9 more files in changeset.
Shorten samples integ test temp dir path

to prevent long path issues on Windows

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

    • -0
    • +50
    ./gradle/integtests/fixtures/SampleRuleTest.groovy
  1. … 2 more files in changeset.
Also support merging jar for Unix; add more tests

    • -0
    • +62
    ./gradle/integtests/fixtures/executer/ClassPathMergerTest.groovy
  1. … 1 more file in changeset.
Merge classpath if necessary

  1. … 2 more files in changeset.
Remove deprecated Class.newInstance() (#6496)

`Class.newInstance()` was deprecated in Java 9.

  1. … 34 more files in changeset.
Ignore JavaProcessStackTracesMonitorSpec test for now

See https://github.com/gradle/gradle-private/issues/1240#issuecomment-414227004

We've observed some timeout of JavaProcessStackTracesMonitorSpec.can print all threads of all running JVM by jstack.

Let's ignore this test for now to make sure the timeout isn't caused by itself.

Change `BlockingHttpServer` so that it can handle multiple concurrent requests to the same URL.

  1. … 4 more files in changeset.
Monitor execution timeout in build (#6078)

We have been bitten by execution timeout for a long time. Now we set a hourly timer when

integration tests start, and print all java processes' stack traces on the machine.

  1. … 3 more files in changeset.
Make task output parsing robust against sub progress loggers

Prior to this commit only logged status messages from subtasks and

"Compiling ... into cache" actions from embedded builds were recognized

as valid ends of task outputs. Now any action from an embedded build,

including "Deleting from versions-specific caches in ..." is handled.

Fixes gradle/gradle-private#1401.

  1. … 1 more file in changeset.
Fix flaky IntegrationTestTimeoutInterceptorSpec

Due to https://issues.apache.org/jira/browse/GROOVY-7414, sometimes

Groovy's Process.consumeProcessOutput can't catch subprocess's output

correctly. This commit fixes it by reading Process's output stream

directly.

  1. … 1 more file in changeset.
Ignore flaky test IntegrationTestTimeoutInterceptorSpec for now

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.).

  1. … 29 more files in changeset.
Add a bunch of test coverage for the console and fix the work in progress display for projects in nested builds.

  1. … 9 more files in changeset.
Rename to ArtifactCacheLockingManager

The name CacheLockingManager suggested it was used to manage locking of

caches in general instead of just for the artifacts cache.

Resolves gradle/gradle-private#1338.

  1. … 28 more files in changeset.
Externalize samples testing infrastructure

This change replaces UserGuideSamplesRunner with an external library

called sample-check. Sample discovery, execution, and normalization

is delegated to this library, with some custom normalizers remaining

in the Gradle codebase.

Samples output has become co-located with the sample code. Samples tests

must be run with Java 8+.

  1. … 782 more files in changeset.