Docs: Add TaskRun Status documentation section#7147
Docs: Add TaskRun Status documentation section#7147tekton-robot merged 1 commit intotektoncd:mainfrom
Conversation
|
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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/kind documentation |
|
/ok-to-test |
docs/taskruns.md
Outdated
| - `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. |
There was a problem hiding this comment.
I think this is retriesStatus
docs/taskruns.md
Outdated
| - 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: |
There was a problem hiding this comment.
The go types are upper case, but the yaml/json rendering is lower case. Same goes for refSource, featureFlags, sidecars, etc...
There was a problem hiding this comment.
this comment made everything clear.
I couldn't think through this naming used, now I have some idea. thanks
afrittoli
left a comment
There was a problem hiding this comment.
Thanks for this!
It looks mostly good - I left a couple of comments.
docs/taskruns.md
Outdated
| - 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: |
There was a problem hiding this comment.
The go types are upper case, but the yaml/json rendering is lower case. Same goes for refSource, featureFlags, sidecars, etc...
| The `TaskRun`'s `status` field can contain the following fields: | ||
|
|
||
| - Required: | ||
| - `status` - The most relevant information about the TaskRun's state. This field includes: |
There was a problem hiding this comment.
NIT: I think the "most relevant" comment is not necessary, but it's also ok to keep
| ### The `status` field | ||
| The `TaskRun`'s `status` field can contain the following fields: | ||
|
|
||
| - Required: |
There was a problem hiding this comment.
podName is missing in the "Required" section
There was a problem hiding this comment.
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
docs/taskruns.md
Outdated
| - [`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`. |
There was a problem hiding this comment.
This should be results.
NIT: I would say "contains" instead of "describes" - there is no description really. it's their names and values
docs/taskruns.md
Outdated
| - `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`. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
can you please elaborate a bit more on this? should I write this line instead of the one already there?
There was a problem hiding this comment.
I just wanted to point out that it can be multiple sidecars, so maybe you could reuse part of that wording
| - `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: |
There was a problem hiding this comment.
spanContext is missing in this list
docs/taskruns.md
Outdated
| 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` |
There was a problem hiding this comment.
I guess this was changed by mistake?
|
I will edit this PR and send my changes as soon as I am done with them. Thanks for your thorough review, appreciated! |
In response to feedback received on PR tektoncd#7147, this commit addresses the following changes: - Updated the TaskRun status documentation based on reviewer comments. - Clarified descriptions for certain fields to improve understanding. - Ensured consistency in formatting and terminology throughout the TaskRun status section. - Fixed some typos in corresponding PipelineRuns section for consistency. Files Changed: taskruns.md pipelineruns.md These changes enhance the clarity and completeness of the TaskRun status documentation, providing users with accurate and detailed information. Fixes tektoncd#5720
afrittoli
left a comment
There was a problem hiding this comment.
Thank you for the updates, it lgtm!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
docs/taskruns.md
Outdated
| - [`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`. |
There was a problem hiding this comment.
I think this should be just results?
There was a problem hiding this comment.
Ohh, I will update it again. Thanks!
There was a problem hiding this comment.
Thanks! lmk when it's updated and we can merge this
There was a problem hiding this comment.
Update done! (the commit message isn't very accurate) but I didn't see the point of changing it for just a typo.
There was a problem hiding this comment.
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.
In response to feedback received on PR tektoncd#7147, this commit addresses the following changes: - Updated the TaskRun status documentation based on reviewer comments. - Clarified descriptions for certain fields to improve understanding. - Ensured consistency in formatting and terminology throughout the TaskRun status section. - Fixed some typos in corresponding PipelineRuns section for consistency. Files Changed: taskruns.md pipelineruns.md Fixes: tektoncd#5720
In response to issue tektoncd#5720, this commit adds a new section to the docs/taskruns.md file to document the fields in TaskRun status in detail. The new section follows a similar structure to the PipelineRun status documentation and is divided into Required and Optional sections. - The Required section provides a comprehensive list of essential fields in TaskRun status, offering users insights into the key aspects of a TaskRun's state. - The Optional section complements the Required section by listing additional fields that provide more context and flexibility for TaskRuns. This addition enhances the documentation and helps users understand the details of TaskRun status, aligning it with the structure and clarity of PipelineRun documentation. Files changed: 1. taskruns.md 2. pipelineruns.md Fixes: tektoncd#5720
931abae to
13996e7
Compare
|
/lgtm |
[Issue Link: #5720]
Description:
This PR addresses the issue by adding a new section to the
docs/taskruns.mdfile 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:
docs/taskruns.mdfor TaskRun Status documentation.Files Changed
Testing Done:
Verified the changes by building the documentation locally and reviewing the updated
taskruns.mdfile. Ensured that the new section follows the established documentation structure.Screenshots:
N/A
Checklist:
contributing.mdfor documentation contributions.git commit -s).Fixes #5720
Release Notes