-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the imageID for each step to the TaskRun.Spec.Status object. #1026
Conversation
c50ad3e
to
97b5ebe
Compare
This is great. Would it be useful to have an integration test that checks that I'm imagining a test that uses ggcr to resolve some public image's digest then runs that image by tag as a step and checks that the step state reports the image at the same digest. |
I think such E2E test could be interesting to have, but what it would verify additionally is that the image specified in the Step is passed properly into the container spec, and that k8s pulls the image correctly. I think that the fact that the image + digest from the pod is passed to the step status is already verified by the unit test. |
/test pull-tekton-pipeline-integration-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you, this looks useful to have.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli, dlorenc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-tekton-pipeline-integration-tests |
ddd1f38
to
e5736e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense!
Couple quick requests 😇 :
- I think @afrittoli was asking for this as well but can this PR include an update to an end to end test to verify this field? if we update an example Task to use a specific image at a specific sha then we dont have to worry about the value changing or anything. (i.e. at least one test where we don't
cmpopts.IgnoreFields(v1alpha1.StepState{}, "ImageID")
for all imageID fields) - can we add docs on this to https://github.com/tektoncd/pipeline/blob/master/docs/taskruns.md ? (there isnt yet a section for status but we can add one - we've got https://github.com/tektoncd/pipeline/blob/master/docs/taskruns.md#steps which should really be in a separate
status
section)
Whoops, added!
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One super minor println away!
7b0483f
to
2869209
Compare
This allows users to trace the exact steps (including digest) used in each TaskRun. This information is already available on a Pod, but we need to assume completed Pods will be GC'ed and not available long after the run is complete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/meow space
@@ -18,7 +18,8 @@ A `TaskRun` runs until all `steps` have completed or until a failure occurs. | |||
- [Overriding where resources are copied from](#overriding-where-resources-are-copied-from) | |||
- [Service Account](#service-account) | |||
- [Pod Template](#pod-template) | |||
- [Steps](#steps) | |||
- [Status](#status) | |||
- [Steps](#steps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
In response to this:
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. |
interesting definition of "space" |
Changes
This allows users to trace the exact steps (including digest) used in each TaskRun.
This information is already available on a Pod, but we need to assume completed Pods
will be GC'ed and not available long after the run is complete.
Fixes #1025
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Release Notes