Skip to content

Broker controller new infrastructure#1073

Merged
knative-prow-robot merged 34 commits into
knative:masterfrom
nachocano:broker-controller
Apr 25, 2019
Merged

Broker controller new infrastructure#1073
knative-prow-robot merged 34 commits into
knative:masterfrom
nachocano:broker-controller

Conversation

@nachocano
Copy link
Copy Markdown
Contributor

@nachocano nachocano commented Apr 19, 2019

Contributes to #734

Proposed Changes

  • Changing Broker controller to match Kn Serving infra

Release Note

NONE

@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 19, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Apr 19, 2019
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 19, 2019
Copy link
Copy Markdown
Contributor

@vaikas vaikas left a comment

Choose a reason for hiding this comment

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

Just curious about a few things and lots of commented out code :)
Oh, and needs a rebase... :(

Comment thread pkg/reconciler/v1alpha1/broker/broker_test.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker_test.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker_test.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker_test.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker_test.go Outdated
# Conflicts:
#	cmd/controller/main.go
#	pkg/reconciler/testing/listers.go
#	pkg/reconciler/v1alpha1/trigger/trigger.go
#	pkg/reconciler/v1alpha1/trigger/trigger_test.go
@nachocano nachocano changed the title [WIP] Broker controller new infrastructure Broker controller new infrastructure Apr 24, 2019
Comment thread pkg/reconciler/v1alpha1/broker/broker_test.go Outdated
@nachocano
Copy link
Copy Markdown
Contributor Author

There is something weird going on with the broker integration test, that I may have messed up. It doesn't report to be ready and it hangs there forever until timeouts.
The weird thing is that it was passing, I made changes only to UTs, and then stopped passing in some of the previous commits.
Will dig in this further...

@nachocano
Copy link
Copy Markdown
Contributor Author

/cc @Harwayne can you take a look, especially the broker reconciler. I may have mess up something there as it is not becoming ready in the integration test...
It was passing, I added only few UTs and it started failing, and then did some merges (and keeps on failing)...

@nachocano
Copy link
Copy Markdown
Contributor Author

current error:

I0424 19:26:48.390] --- FAIL: TestMain/TestDefaultBrokerWithManyTriggers-in-memory (241.10s)
I0424 19:26:48.393] e2e.go:459: Creating Namespace: test-default-broker-with-many-triggers-in-memory
I0424 19:26:48.393] broker_trigger_test.go:63: Labeling namespace test-default-broker-with-many-triggers-in-memory
I0424 19:26:48.393] broker_trigger_test.go:69: Namespace test-default-broker-with-many-triggers-in-memory annotated
I0424 19:26:48.393] broker_trigger_test.go:72: Waiting for default broker to be ready
I0424 19:26:48.393] broker_trigger_test.go:76: Error waiting for default broker to become ready: timed out waiting for the condition

Comment thread cmd/controller/main.go
@n3wscott
Copy link
Copy Markdown
Contributor

/test pull-knative-eventing-integration-tests

Comment thread pkg/reconciler/testing/broker.go Outdated
Comment thread pkg/reconciler/testing/deployment.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker.go
Comment thread pkg/reconciler/v1alpha1/broker/broker.go
Comment thread pkg/reconciler/v1alpha1/broker/broker.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker.go Outdated
Comment thread pkg/reconciler/v1alpha1/broker/broker.go
@nachocano
Copy link
Copy Markdown
Contributor Author

nachocano commented Apr 24, 2019

fixed the readiness stuff...

/test pull-knative-eventing-integration-tests

Comment thread pkg/reconciler/subscription/subscription_test.go
@n3wscott
Copy link
Copy Markdown
Contributor

/approve
I will let Adam lgtm

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 25, 2019
Comment thread pkg/reconciler/trigger/trigger_test.go Outdated
@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Apr 25, 2019

looks like just needs a rebase?
/approve

@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: n3wscott, nachocano, vaikas-google

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [n3wscott,vaikas-google]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nachocano
Copy link
Copy Markdown
Contributor Author

looks like just needs a rebase?

yes, it was a rebase

@nachocano
Copy link
Copy Markdown
Contributor Author

@n3wscott @vaikas-google @Harwayne
If the test passes, it'd be great if someone can ltgtm it, otherwise I keep on having to rebase all the time.
The only cosmetic thing is a comment from Adam where I'm passing a string with the brokerName to a function instead of a Broker pointer. I guess we can change that back later on if you guys prefer the Broker pointer way.

@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Apr 25, 2019

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 25, 2019
@knative-metrics-robot
Copy link
Copy Markdown

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/subscription/subscription.go Do not exist 80.6%
pkg/reconciler/trigger/trigger.go Do not exist 78.6%
pkg/reconciler/v1alpha1/broker/broker.go 89.8% 88.1% -1.7

@knative-prow-robot knative-prow-robot merged commit 2a3b8a2 into knative:master Apr 25, 2019
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants