ExecutionDiagnostics

data class ExecutionDiagnostics(val stageUsed: UsedExecutionStage?, val resolvedJarCount: Int, val parseFailures: List<ParseFailure> = emptyList(), val parsedFileCount: Int? = null, val estimatedTimeSaved: Duration? = null, val writeOutcome: WriteOutcome = WriteOutcome.EMPTY)(source)

Diagnostic info about which execution path produced the run and how its classpath was assembled.

Constructors

Link copied to clipboard
constructor(stageUsed: UsedExecutionStage?, resolvedJarCount: Int, parseFailures: List<ParseFailure> = emptyList(), parsedFileCount: Int? = null, estimatedTimeSaved: Duration? = null, writeOutcome: WriteOutcome = WriteOutcome.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

OpenRewrite's estimate of manual effort avoided by the run, summed across changed files. null means the value was not measured or could not be read; Duration.ZERO means the run completed and genuinely produced no estimated saving.

Link copied to clipboard

Count of successfully parsed source files in the in-process LST path, excluding org.openrewrite.tree.ParseError stubs. null means the count was not measured, which is currently true for the Stage 0 plugin path where no in-process LST is built.

Link copied to clipboard

Non-fatal failures collected across every parser the LST pipeline ran and the classpath-resolution stages. The signals end up here:

Link copied to clipboard

Number of .jar entries on the LST classpath (project class directories excluded). 0 when stageUsed is UsedExecutionStage.PLUGIN (the plugin handled resolution internally) or null.

Link copied to clipboard

The stage that produced the run, or null when every LST stage produced an empty classpath (recipe ran semantically blind — see #68).

Link copied to clipboard

Per-file outcome from applying LST results to disk. Dry-run, plugin-only, and no-change runs use WriteOutcome.EMPTY.