Skip to content
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

Drop the hardcoded cluster.local #4277

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

mattmoor
Copy link
Member

Experimenting with Eventing's e2e and a non-standard cluster suffix, I noticed that this test failed.

Once my change to support KinD for Eventing e2e lands, we can make that pseudo-randomize this to prevent bugs like this in the future.

  • 🐛 Fix test bug

/cc @vaikas
/assign @vaikas

This was introduced in the initial MT broker change, I believe. Perhaps we should replace this with proper Addressable resolution via the source, but this seemed like the smallest change to unblock the scenario I'm chasing. LMK which you prefer.

Experimenting with Eventing's e2e and a non-standard cluster suffix, I noticed that this test failed.

Once my change to support KinD for Eventing e2e lands, we can make that pseudo-randomize this to prevent bugs like this in the future.
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 11, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added area/test-and-release Test infrastructure, tests or release approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 11, 2020
@codecov
Copy link

codecov bot commented Oct 11, 2020

Codecov Report

Merging #4277 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4277   +/-   ##
=======================================
  Coverage   80.25%   80.25%           
=======================================
  Files         287      287           
  Lines        7887     7887           
=======================================
  Hits         6330     6330           
  Misses       1174     1174           
  Partials      383      383           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32414b6...5fd270d. Read the comment docs.

@mattmoor
Copy link
Member Author

cc @tcnghia FYI (since you are chasing this in Serving)

Copy link

@tcnghia tcnghia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/hold
Hold for @vaikas

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 12, 2020
@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 12, 2020
@@ -91,7 +91,7 @@ func TestTriggerDependencyAnnotation(t *testing.T) {
if brokerClass == eventing.MTChannelBrokerClassValue {
pingSource.Spec.SourceSpec.Sink.URI = &apis.URL{
Scheme: "http",
Host: fmt.Sprintf("broker-ingress.%s.svc.cluster.local", resources.SystemNamespace),
Host: fmt.Sprintf("broker-ingress.%s.svc", resources.SystemNamespace),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should stop setting the URI directly and set the pingSource.Spec.SourceSpec.Sink.Ref to the Broker since we have all the bits here already, and would make this more resilient if we wanted to test against other brokers. Then we can drop the if clause and just do it in L87.

@vaikas
Copy link
Contributor

vaikas commented Oct 12, 2020

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 12, 2020
@knative-prow-robot knative-prow-robot merged commit 2c1d8d7 into knative:master Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release Test infrastructure, tests or release cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants