Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
make inner classes static where possible

Signed-off-by: Steven Crockett <crockett.j.steven@gmail.com>

  1. … 42 more files in changeset.
Use ISO 8601 log format for logged daemon messages

    • -3
    • +3
    ./StyledTextOutputBackedRendererTest.groovy
  1. … 4 more files in changeset.
Use ISO 8601 log format for logged daemon messages

    • -3
    • +3
    ./StyledTextOutputBackedRendererTest.groovy
  1. … 4 more files in changeset.
Add failsafe limit on queued output events

On the Gradle client, we are constrained to 64MB (by default). In

some cases, the number of output events in a throttling interval

can exceed the amount of memory available to the client.

This change adds a heuristic to render output events when too many

events are queued at one time.

    • -0
    • +14
    ./ThrottlingOutputEventListenerTest.groovy
  1. … 1 more file in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 890 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 897 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Fix test expectations for subsecond time reported in console

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

    • -23
    • +23
    ./BuildStatusRendererTest.groovy
  1. … 5 more files in changeset.
Fix test expectations for subsecond time reported in console

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

    • -23
    • +23
    ./BuildStatusRendererTest.groovy
  1. … 4 more files in changeset.
Rename category attribute

Attribute is now `org.gradle.category` and the constant is named

VARIANT_CATEGORY.

The removal of the "component" part of the name was to clarify to what

the category applies.

    • -3
    • +3
    ./DefaultWorkInProgressFormatterTest.groovy
  1. … 25 more files in changeset.
Rename category attribute

Attribute is now `org.gradle.category` and the constant is named

VARIANT_CATEGORY.

The removal of the "component" part of the name was to clarify to what

the category applies.

    • -3
    • +3
    ./DefaultWorkInProgressFormatterTest.groovy
  1. … 25 more files in changeset.
Rename category attribute

Attribute is now `org.gradle.category` and the constant is named

VARIANT_CATEGORY.

The removal of the "component" part of the name was to clarify to what

the category applies.

    • -3
    • +3
    ./DefaultWorkInProgressFormatterTest.groovy
  1. … 25 more files in changeset.
Spelling (#8199)

Fix several spelling issues.

  1. … 36 more files in changeset.
Limit work in progress labels to 80 characters when the width of the console is not known (e.g. when running under Mintty or from the tooling API), to make wrapping less likely. Wrapping of the labels currently doesn't work particularly well on some consoles.

Also generate less garbage on each 'update now' console event.

  1. … 11 more files in changeset.
spelling: output

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

    • -2
    • +2
    ./StyledTextOutputBackedRendererTest.groovy
  1. … 2 more files in changeset.
spelling: header

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Document build operations categories

  1. … 3 more files in changeset.
Change the user prompt infrastructure to give the user some feedback when they enter a value that isn't valid for the question. Add some test coverage for user prompting.

    • -7
    • +14
    ./UserInputConsoleRendererTest.groovy
    • -11
    • +3
    ./UserInputStandardOutputRendererTest.groovy
  1. … 23 more files in changeset.
Change the `init` task to prompt the user for any build init settings that were not specified on the command-line.

  1. … 12 more files in changeset.
Fix the console rendering so that the `CONFIGURING` phase is considered to last until the root build task execution begins.

  1. … 2 more files in changeset.
Remove the 'parent build operation' property from `ProgressStartEvent` as this can be inferred from the other properties. Reduce the amount of mapping required to perform console output grouping and to simplify the output event stream before it is seen by any consumers.

  1. … 11 more files in changeset.
Merge the 'short description' and 'status' properties on progress start events, to avoid the cost of tracking and serializing these separately.

    • -16
    • +6
    ./DefaultWorkInProgressFormatterTest.groovy
  1. … 18 more files in changeset.
Change the console build status rendering to use the progress operation events associated with various build operations rather than injecting some additional synthetic progress events into the event stream to communicate this information. This avoids the cost of handling these additional events.

As a side benefit, the configuration phase % complete calculation now takes included builds into account.

    • -5
    • +186
    ./BuildStatusRendererTest.groovy
  1. … 24 more files in changeset.
Simplify the buffering logic in the console implementations to do less work. Use a single job running at a fixed rate only. Previously, there was a fixed rate job plus ad hoc jobs created when events were buffered.

Don't attempt to eagerly forward events when there haven't been any events forwarded for some time, but instead always buffer events. This was happening anyway due to the fixed rate job.

Change the buffering console stages to use the clock information in the periodic event rather than probing the current time on each event themselves.

    • -51
    • +28
    ./ThrottlingOutputEventListenerTest.groovy
  1. … 5 more files in changeset.
Merge stdout/stderr chains and introduce a throttled plain console

  1. … 7 more files in changeset.
Emit build operation progress events for logging output (#4537)

* Tweak BuildOperationListener#progress api

* Use build operation id to reference progress

* Add workaround for tracing log output via build operation progress for composite builds

* Replace some Object typing of operation identifiers with OperationIdentifier.

* Associate all progress logging with the current build operation.

* Update logic to accommodate for all progress events now having build operation IDs.

* Don't allow ProgressStartEvent.buildOperationCategory to be null.

** Default it to uncategorized.

  1. … 50 more files in changeset.
Rationalise handling of “current” build operation and build operation ID

For an upcoming change to emit console logging as build operation progress events, we need to associate all progress logging with the build operation. This pulled a thread on some long overdue cleanup.

The end result is:

1. Base build operation infrastructure is consolidated org.gradle.internal.operations.

2. Mechanism for passing thread global current build operation is more test friendly, and better named.

3. A consistent mechanism is used for binding the current operation to the thread, instead of two mechanisms.

4. Build operation IDs are typed to OperationIdentifier.

There is no public API or user behaviour change.

    • -1
    • +1
    ./DefaultWorkInProgressFormatterTest.groovy
  1. … 144 more files in changeset.