← Back to Pull requests

Docs: Add TaskRun Status documentation section #7147

Merged
HamzaMateen merged 2 files (36 lines) on Oct 03, 2023 20:26 UTC
View on GitHub
HamzaMateen HamzaMateen commented on Sep 25, 2023 11:39 UTC
Author

[Issue Link: #5720]

Description:

This PR addresses the issue by adding a new section to the docs/taskruns.md file to document the fields in TaskRun status. The structure of the new section closely follows that of the PipelineRun status documentation, with Required and Optional sections.

Changes Made:

  • Added a new section to docs/taskruns.md for TaskRun Status documentation.

  • Documented the key fields in TaskRun status, including their descriptions and significance.

  • Ensured consistency and clarity in the documentation, aligning it with the existing PipelineRun documentation style.
  • Files Changed

  • docs/taskruns.md
  • Testing Done:

    Verified the changes by building the documentation locally and reviewing the updated taskruns.md file. Ensured that the new section follows the established documentation structure.

    Screenshots:

    N/A

    Checklist:

  • I have followed the guidelines in contributing.md for documentation contributions.

  • I have linked this PR to the related issue (#<issue_number>).

  • The documentation changes are technically accurate and easy to understand.

  • I have tested the changes locally and ensured they display correctly in the documentation.

  • I have reviewed and proofread the documentation to eliminate errors or inconsistencies.

  • All commits are signed-off (verified using git commit -s).

  • The PR is ready for review and merge.
  • Fixes #5720

    Release Notes

    ``release-note
    NONE
    ``

    Diff: 36 lines (+31 / -5) across 2 files Reviewer: afrittoli Review duration: 12047m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.26) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.26 · 36 lines diff across 2 files
    0.26
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.88 · 5 substantive comment(s)
    0.88
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.216
    Real PR Conversation Timeline
    31 items
    tekton-robot tekton-robot commented on Sep 25, 2023 11:39 UTC
    Contributor

    Hi @HamzaMateen. Thanks for your PR.

    I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

    Once the patch is verified, the new status will be reflected by the ok-to-test label.

    I understand the commands that are listed here.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
    </details>

    HamzaMateen HamzaMateen commented on Sep 25, 2023 11:40 UTC
    Author

    /kind documentation

    afrittoli afrittoli commented on Sep 25, 2023 14:45 UTC
    Contributor

    /ok-to-test

    afrittoli afrittoli commented on code on Sep 27, 2023 12:54 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.
    +
    +  - `Provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are:
    +    - `RefSource`: the source from where a remote `Task` definition was fetched.
    +    - `FeatureFlags`: Identifies the feature flags used during the `TaskRun`.
    +  - `Step` - Reports the results of running a `step` in a `Task`.
    +  - `Retries` - Contains the history of `TaskRun`'s `status` in case of a retry in order to keep record of failures. 

    I think this is retriesStatus

    afrittoli afrittoli commented on code on Sep 27, 2023 12:54 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.
    +
    +  - `Provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are:

    provenance (lower case)

    afrittoli afrittoli commented on code on Sep 27, 2023 12:55 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.
    +
    +  - `Provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are:

    The go types are upper case, but the yaml/json rendering is lower case. Same goes for refSource, featureFlags, sidecars, etc...

    afrittoli afrittoli commented on code on Sep 27, 2023 12:57 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:

    NIT: I think the "most relevant" comment is not necessary, but it's also ok to keep

    afrittoli afrittoli commented on code on Sep 27, 2023 12:59 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:

    podName is missing in the "Required" section

    afrittoli afrittoli commented on code on Sep 27, 2023 13:07 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.

    This should be results.
    NIT: I would say "contains" instead of "describes" - there is no description really. it's their names and values

    afrittoli afrittoli commented on code on Sep 27, 2023 13:20 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.
    +
    +  - `Provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are:
    +    - `RefSource`: the source from where a remote `Task` definition was fetched.
    +    - `FeatureFlags`: Identifies the feature flags used during the `TaskRun`.
    +  - `Step` - Reports the results of running a `step` in a `Task`.
    +  - `Retries` - Contains the history of `TaskRun`'s `status` in case of a retry in order to keep record of failures. 
    +  - [`Sidecar`](tasks.md#using-a-sidecar-in-a-task) - Reports the results of running a `sidecar` in a `Task`.

    sidecars (plural). This is the comment in the code:

    The list has one entry per sidecar in the manifest. Each entry represents the imageid of the corresponding sidecar.

    afrittoli afrittoli commented on code on Sep 27, 2023 13:21 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:

    spanContext is missing in this list

    afrittoli afrittoli commented on code on Sep 27, 2023 13:23 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`

    I guess this was changed by mistake?

    afrittoli afrittoli commented on Sep 27, 2023 13:23 UTC
    Reviewer

    Thanks for this!
    It looks mostly good - I left a couple of comments.

    HamzaMateen HamzaMateen commented on code on Sep 27, 2023 13:49 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:

    When I generated the API spec using Swagger, I found out that podName was required but default so I skipped it. I will add it in my next edition. Thanks

    HamzaMateen HamzaMateen commented on code on Sep 27, 2023 13:50 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.

    Got it!

    HamzaMateen HamzaMateen commented on code on Sep 27, 2023 14:40 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.
    +
    +  - `Provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are:

    this comment made everything clear.
    I couldn't think through this naming used, now I have some idea. thanks

    HamzaMateen HamzaMateen commented on code on Sep 27, 2023 14:46 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`

    indeed!

    HamzaMateen HamzaMateen commented on Sep 27, 2023 14:47 UTC
    Author

    I will edit this PR and send my changes as soon as I am done with them. Thanks for your thorough review, appreciated!

    HamzaMateen HamzaMateen commented on code on Sep 29, 2023 05:37 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.
    +
    +  - `Provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are:
    +    - `RefSource`: the source from where a remote `Task` definition was fetched.
    +    - `FeatureFlags`: Identifies the feature flags used during the `TaskRun`.
    +  - `Step` - Reports the results of running a `step` in a `Task`.
    +  - `Retries` - Contains the history of `TaskRun`'s `status` in case of a retry in order to keep record of failures. 
    +  - [`Sidecar`](tasks.md#using-a-sidecar-in-a-task) - Reports the results of running a `sidecar` in a `Task`.

    can you please elaborate a bit more on this? should I write this line instead of the one already there?

    afrittoli afrittoli commented on code on Oct 02, 2023 19:25 UTC
    Code Review
    docs/taskruns.md:1
    @@ -766,11 +768,35 @@ or fails from an error.
     You can execute the `Task` in your `TaskRun` with a specific set of credentials by
     specifying a `ServiceAccount` object name in the `serviceAccountName` field in your `TaskRun`
     definition. If you do not explicitly specify this, the `TaskRun` executes with the credentials
    -specified in the `configmap-defaults` `ConfigMap`. If this default is not specified, `TaskRuns`
    +specified in the `configmap-defaults` `ConfigMap`. If this defaulPipelineRunt is not specified, `TaskRuns`
     will execute with the [`default` service account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server)
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +The `TaskRun`'s  `status` field can contain the following fields:
    +
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  <!-- - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s. -->
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Describes the results of this `task`.
    +
    +  - `Provenance` - Provenance contains metadata about resources used in the `TaskRun` such as the source from where a remote `task` definition was fetched. It carries minimum amount of metadata in `TaskRun` `status` so that `Tekton Chains` can utilize it for provenance, its two subfields are:
    +    - `RefSource`: the source from where a remote `Task` definition was fetched.
    +    - `FeatureFlags`: Identifies the feature flags used during the `TaskRun`.
    +  - `Step` - Reports the results of running a `step` in a `Task`.
    +  - `Retries` - Contains the history of `TaskRun`'s `status` in case of a retry in order to keep record of failures. 
    +  - [`Sidecar`](tasks.md#using-a-sidecar-in-a-task) - Reports the results of running a `sidecar` in a `Task`.

    I just wanted to point out that it can be multiple sidecars, so maybe you could reuse part of that wording

    afrittoli afrittoli approved these changes on Oct 02, 2023 19:27 UTC
    Approved Reviewer

    Thank you for the updates, it lgtm!

    tekton-robot tekton-robot commented on Oct 02, 2023 19:27 UTC
    Contributor

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/tektoncd/pipeline/pull/7147#pullrequestreview-1653361632" title="Approved">afrittoli</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [afrittoli]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Yongxuanzhang Yongxuanzhang commented on code on Oct 02, 2023 19:59 UTC
    Code Review
    docs/taskruns.md:1
    @@ -771,6 +773,29 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s.
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Contains the results of this `task`.
    HamzaMateen HamzaMateen commented on code on Oct 02, 2023 21:11 UTC
    Code Review
    docs/taskruns.md:1
    @@ -771,6 +773,29 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s.
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Contains the results of this `task`.

    Ohh, I will update it again. Thanks!

    Yongxuanzhang Yongxuanzhang commented on code on Oct 02, 2023 21:32 UTC
    Code Review
    docs/taskruns.md:1
    @@ -771,6 +773,29 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s.
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Contains the results of this `task`.

    Thanks! lmk when it's updated and we can merge this

    HamzaMateen HamzaMateen commented on code on Oct 03, 2023 18:49 UTC
    Code Review
    docs/taskruns.md:1
    @@ -771,6 +773,29 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s.
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Contains the results of this `task`.

    Update done! (the commit message isn't very accurate) but I didn't see the point of changing it for just a typo.

    Yongxuanzhang Yongxuanzhang commented on code on Oct 03, 2023 18:51 UTC
    Code Review
    docs/taskruns.md:1
    @@ -771,6 +773,29 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s.
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Contains the results of this `task`.

    Update done! (the commit message isn't very accurate) but I didn't see the point of changing it for just a typo.

    Thanks! Would you mind squashing the 3 commits? This should be the one last thing to merge it.

    HamzaMateen HamzaMateen commented on code on Oct 03, 2023 19:44 UTC
    Code Review
    docs/taskruns.md:1
    @@ -771,6 +773,29 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s.
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Contains the results of this `task`.

    Done!

    Yongxuanzhang Yongxuanzhang commented on code on Oct 03, 2023 19:51 UTC
    Code Review
    docs/taskruns.md:1
    @@ -771,6 +773,29 @@ will execute with the [`default` service account](https://kubernetes.io/docs/tas
     set for the target [`namespace`](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/).
     
     For more information, see [`ServiceAccount`](auth.md).
    +## `TaskRun` status
    +The `status` field defines the observed state of `TaskRun`
    +### The `status` field
    +- Required:
    +  - `status` - The most relevant information about the TaskRun's state. This field includes:
    +    - `status.conditions`, which contains the latest observations of the `TaskRun`'s state. [See here](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for information on typical status properties. 
    +  - `podName` - Name of the pod containing the containers responsible for executing this `task`'s `step`s.
    +  - `startTime` - The time at which the `TaskRun` began executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - `completionTime` - The time at which the `TaskRun` finished executing, conforms to [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    +  - [`taskSpec`](tasks.md#configuring-a-task) - `TaskSpec` defines the desired state of the `Task` executed via the `TaskRun`.
    +
    +- Optional:
    +  - `taskResults`- Contains the results of this `task`.

    Thank you!

    Yongxuanzhang Yongxuanzhang commented on Oct 03, 2023 19:51 UTC
    Contributor

    /lgtm

    Reviewers
    Assignees
    HamzaMateen HamzaMateen
    Labels
    risk: low confidence: 90.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 26.1% (LOW) · Higher = larger blast radius
    26.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 90.1% · Lower = rushed or shallow review
    90.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 2.6% · Safe to merge
    2.6%