-
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
Break Pipelines' dependency on Build #648
Break Pipelines' dependency on Build #648
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
a024fd2
to
4dfdbac
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.
Looking great!!
My main feedback is that there are a few function + test names that I think we could update to no longer include Build
(even tho its super tedious 😩 ) (also I dont think i pointed them all out but I caught some of them!) but mostly looks great!!! 😻
if err != nil { | ||
return nil, fmt.Errorf("failed to add entrypoint to steps of TaskRun %s: %v", tr.Name, err) | ||
} | ||
// Add the step which will copy the entrypoint into the volume | ||
// we are going to be using, so that all of the steps will have | ||
// access to it. | ||
entrypoint.AddCopyStep(bs) | ||
b := &buildv1alpha1.Build{ |
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.
oh weird, we were instantiating Build
twice ! 🤔
Type: v1alpha1.GCSManifest, | ||
Location: "gs://foo/bar", | ||
}, | ||
TargetPath: "path/foo", |
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.
do we still need TargetPath
covered in this test, using resources (https://github.com/tektoncd/pipeline/blob/3e8b177fbeb39126a9c9de121008db571ef45bfa/docs/tasks.md#controlling-where-resources-are-mounted) ? (im not sure myself!)
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 it's already covered with resources. This code was testing something we never set as is anymore I think 👼
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.
kk coo :D
pkg/reconciler/v1alpha1/taskrun/resources/input_resource_test.go
Outdated
Show resolved
Hide resolved
e49c72b
to
72dd6d2
Compare
@@ -67,10 +67,6 @@ required = [ | |||
name = "go.uber.org/zap" | |||
revision = "67bc79d13d155c02fd008f721863ff8cc5f30659" | |||
|
|||
[[constraint]] | |||
name = "github.com/knative/build" |
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.
👋 🎉
/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.
Just one super minor thing (some commented out code 😭 lol wanted to lgtm ... ) otherwise looks great!!
/meow space
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. |
72dd6d2
to
dedb5dc
Compare
This removes the latest piece of dependencies on `knative/build` that were in `pkg/reconcilier/v1alpha1/taskrun/…` packages. `TaskRun`/`TaskSpec` are no more translated to `Build` types, that are used to create `Pod` later on. We now create `Pod` directly from `TaskRun`/`TaskSpec` definitions. This also remove test builder code related to those types. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
dedb5dc
to
e8d1e55
Compare
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
/lgtm |
/test pull-tekton-pipeline-integration-tests |
Changes
This removes the dependencies on
knative/build
. Onlypkg/reconcilier/v1alpha1/taskrun/…
packages were the last packages, and now there are not depending on build anymore.With this "Phase 2" is effectively complete !
Marking asWIP
as I feel there is still room for improvements on the refactoring I did — and the commits in there are not final, I'll rebase and squash before we can merge 😉.Closes #252
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
[ ] Includes docs (if user facing)See the contribution guide
for more details.
Release Notes