-
Notifications
You must be signed in to change notification settings - Fork 113
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 Tolerations to Build and BuildRun objects #1711
base: main
Are you sure you want to change the base?
Conversation
872db31
to
462d9bb
Compare
4ecfc21
to
dfe25d5
Compare
e449fbd
to
03b3b21
Compare
3e66b55
to
43382a6
Compare
43382a6
to
c35d173
Compare
5dbdbba
to
30677bc
Compare
Bit stumped on the failing integration tests - after several revisions I can't find why the taint effect isn't getting set. It also looks like the e2e tests are running out of disk space. |
30677bc
to
7beef04
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
test/e2e/v1beta1/e2e_test.go
Outdated
validateBuildRunToFail(testBuild, buildRun) | ||
buildRun, err = testBuild.LookupBuildRun(types.NamespacedName{Name: buildRun.Name, Namespace: testBuild.Namespace}) | ||
|
||
Expect(buildRun.Status.FailureDetails.Message).To(Equal(shpgit.AuthPrompted.ToMessage())) | ||
Expect(buildRun.Status.FailureDetails.Reason).To(Equal(shpgit.AuthPrompted.String())) |
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.
Can you explain this. There is a BuildRun which cannot start because the tolerations do not match any node. Is not the result that the Pod is stuck in Pending, eventually the TaskRun and BuildRun time out. Why would there be a failure coming from the Git source step ?
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.
Ah, this was an oversight on my part. I would expect the Pending/timeout you mentioned instead. I'll change this.
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.
Okay, you may want to create the buildrun with a shorter timeout. I guess it would otherwise wait the default ten minutes.
7beef04
to
82b8018
Compare
An update - still looking into why TaintEffect isn't getting set in the integration tests. Integration tests are at least all failing in the same way. |
f17465b
to
5181b3f
Compare
Would I be able to get another look at this? I'm having an issue with the validation logic for the taint effect: In the case where the effect isn't specified in the yaml, as in this test: It should get explicitly set on the TaskRun object via the validation logic, but that doesn't happen. Confused, as everything else for the validation seems to work. |
Sry for the late reply @dorzel. The validation logic should imo NOT mutate anything on the object. It should only validate. If empty is a good value for the effect, then that's all the validation should do: not complain anything. The logic that creates the toleration on the TaskRun should then again be aware that empty is a valid value for the effect and translate that into TaintEffectNoSchedule. |
Signed-off-by: Dylan Orzel <[email protected]>
Signed-off-by: Dylan Orzel <[email protected]>
Signed-off-by: Dylan Orzel <[email protected]>
5181b3f
to
0ecf83f
Compare
Ok, reverted to setting the TaintEffect outside of validation and that has fixed the integration tests (one unrelated flaky test). Looks like we're just waiting on #1786 to get an actual signal from e2e tests. |
Changes
Fixes #1636
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes