-
Notifications
You must be signed in to change notification settings - Fork 249
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
Adding a check for the set bundle max used in the pipeline controller. #1572
Conversation
Hi @williamlfish. 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. 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. |
/ok-to-test |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
pkg/bundle/builder_test.go
Outdated
func TestTooManyObjects(t *testing.T) { | ||
task := v1beta1.Task{ | ||
TypeMeta: metav1.TypeMeta{ | ||
APIVersion: "tekton.dev/v1beta1", | ||
Kind: "Task", | ||
}, | ||
ObjectMeta: metav1.ObjectMeta{Name: "foo"}, | ||
Spec: v1beta1.TaskSpec{Description: "foobar"}, | ||
} | ||
|
||
raw, err := yaml.Marshal(task) | ||
if err != nil { | ||
t.Error(err) | ||
return | ||
} | ||
// no error for less then max | ||
_, err = BuildTektonBundle([]string{string(raw)}, &bytes.Buffer{}) |
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 wonder if we should be breaking this into multiple functions so that it is more readable?
/cc @piyush-garg @pradeepitm12 @vdemeester
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'm happy to do that, however I have a feeling we may toss this pr out 😅
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.
@williamlfish will be better to have one scenario in a test case
The following is the coverage report on the affected files.
|
/retest |
2 similar comments
/retest |
/retest |
Is there any known issues with the e2e tests? Running locally I can get them to pass, but I personally noticed they can be a little brittle, mostly with the cluster wide resources, and hitting timeouts 😬 |
tests seems to be working fine |
/retest |
Currently a user does not know when they might have added to many objects untill they attempt to run an image. Adding to the bundle cmd will at least give them more imediate feedback before attempting to use the bundle.
7eaa3b2
to
d0aa6ce
Compare
/assign @vdemeester |
[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 |
/lgtm |
/retest |
@williamlfish: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Currently a user does not know when they might have added too many objects until they attempt to run an image. Adding to the bundle cmd will at least give them feedback before attempting to use the bundle.
Changes
Adding a quick check to the bundle to make sure its layers don't go over the max allowed in the pipeline controller. This is really more for devs using the cli, as it can be a poor ux to create a bundle and not know its unusable till attempting to 😅 .
There is a pr to double the current allowed about here so there is a potential for these to be out of sync and not sure if that should be addressed considering bundles are still in alpha.
Also added some tests 😸
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.
Release Notes