ExecutionReport

In package com.cdsap.talaiot.entities

class com.cdsap.talaiot.entities.ExecutionReport

Since the user of the plugin might customize metrics provider we have to make almost everything here optional

Fields

cacheRatio: String?

Cache ratio of the tasks = tasks_from_cache / all_tasks

var environment: Environment

information about the environment of gradle execution

var customProperties: CustomProperties

custom properties defined in com.cdsap.talaiot.configuration.MetricsConfiguration

var beginMs: String?

timestamp of gradle execution start

var endMs: String?

timestamp of gradle execution finish

var durationMs: String?

duration in millis of gradle execution

var configurationDurationMs: String?

duration of the configuration phase

var tasks: List?

list of executed tasks filtered according to com.cdsap.talaiot.configuration.FilterConfiguration

var unfilteredTasks: List?

list of executed tasks

var buildId: String?

unique build identifier generated by Talaiot

var rootProject: String?

name of the root gradle project

var requestedTasks: String?

gradle tasks requested by user, e.g. "assemble test"

var success: Boolean

true if build finished successfully, false otherwise

link to the generated gradle scan

var buildInvocationId: String?

unique build identifier generated by Gradle's org.gradle.internal.scan.scopeids.BuildScanScopeIds. It has the same value for multi-stage builds, e.g. wrapper invocation and actual tasks requested. For more info see comments at com.cdsap.talaiot.metrics.GradleBuildInvocationIdMetric

Constructors

Since the user of the plugin might customize metrics provider we have to make almost everything here optional

Parameters:
  • environment: Environment
  • customProperties: CustomProperties
  • beginMs: String?
  • endMs: String?
  • durationMs: String?
  • configurationDurationMs: String?
  • tasks: List?
  • unfilteredTasks: List?
  • buildId: String?
  • rootProject: String?
  • requestedTasks: String?
  • success: Boolean
  • scanLink: String?
  • buildInvocationId: String?

Methods

fun flattenBuildEnv(): Map
Parameters:
  • No parameters
fun estimateCriticalPath()

Fills in the TaskLength.critical to later check which task was on the critical (longest in terms of time) path

This would be a lot faster if it was actually a weighted graph

Parameters:
  • No parameters