Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
Do not run a task whose dependency in another build has failed and do not report a failure in an included build multiple times.

  1. … 16 more files in changeset.
Fix test fixture build failure query methods to handle multiple build failures.

  1. … 6 more files in changeset.
Fix broken test for OutputScrapingExecutionFailure

Change plain console to join stdout/stderr only when console is attached

  1. … 37 more files in changeset.
Strip illegal access warnings one-by-one

Prior to this commit the regex used was greedy and thus deleted all

output between the start of the first and the end of the last illegal

access warning.

  1. … 1 more file in changeset.
Ignore illegal access warnings when parsing the build outcome

Prior to this commit, JVM emitted warnings (e.g. for illegal access)

that were sometimes printed in the middle of the build outcome message

of integration tests caused tests to fail.

  1. … 1 more file in changeset.
Strip work in progress area when using OutputScrapingExecutionResult

This allows us to safely use this fixture even with the rich console tests.

  1. … 3 more files in changeset.
Fix flaky tests on rich console

Sometimes, the status bar and work in progress sections can flush

and end up on the same line as the build failure message. When this

happens, we can fail to split the output properly, causing tests to

be flaky.

  1. … 1 more file in changeset.
Write the build failure to stderr when using the plain console, so that the plain console behaviour is a somewhat backwards compatible wrt error reporting.

  1. … 19 more files in changeset.
Add some diagnostics to assertion failure message.

  1. … 1 more file in changeset.
Add a little more unit test coverage for test fixtures.

Fix minor flakiness with task status line scraping

  1. … 1 more file in changeset.
Add some more assertion methods to `ExecutionResult` and change several tests and utility methods to use these methods instead of reimplementing the logic.

  1. … 11 more files in changeset.
Clean up test fixtures, add more context to error messages, add some test coverage.

  1. … 6 more files in changeset.
Make the parallel mode test fixtures less special and instead reuse more of the behaviour of the base fixtures.

  1. … 2 more files in changeset.