Skip to content

Refactor ChannelTestRunner to ComponentTestRunner#3340

Merged
knative-prow-robot merged 3 commits into
knative:masterfrom
devguyio:3116-src-conf-refactor
Jun 18, 2020
Merged

Refactor ChannelTestRunner to ComponentTestRunner#3340
knative-prow-robot merged 3 commits into
knative:masterfrom
devguyio:3116-src-conf-refactor

Conversation

@devguyio
Copy link
Copy Markdown
Contributor

Related: #3122

Proposed Changes

  • Refactor ChannelTestRunner to ComponentTestRunner
  • Extracts test/flags package

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 18, 2020
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/test-and-release Test infrastructure, tests or release labels Jun 18, 2020
Comment thread test/conformance/main_test.go Outdated
@@ -26,15 +26,15 @@ import (
"knative.dev/eventing/test/lib"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

how about

	testlib "knative.dev/eventing/test/lib"

Comment thread test/e2e_flags.go Outdated

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
testflags "knative.dev/eventing/test/flags"
"knative.dev/eventing/test/lib"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

	testlib "knative.dev/eventing/test/lib"

@@ -25,11 +25,16 @@ import (
"knative.dev/eventing/test/lib"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

	testlib "knative.dev/eventing/test/lib"

@matzew
Copy link
Copy Markdown
Member

matzew commented Jun 18, 2020

@antoineco please take a look

Copy link
Copy Markdown
Contributor

@antoineco antoineco left a comment

Choose a reason for hiding this comment

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

That's the same PR as before but split in two parts, right? Just to know if I need another in depth review or not :)

)

var channelLabels = map[string]string{
"messaging.knative.dev/subscribable": "true",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This constant is defined so we should is it.

@devguyio
Copy link
Copy Markdown
Contributor Author

@antoineco yep, we agreed to split the refactoring from the conformance test

@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 18, 2020
Copy link
Copy Markdown
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v wire_gen.go)

"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/eventing/test/lib"
testlib "knative.dev/eventing/test/lib"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Format Go code:

Suggested change
testlib "knative.dev/eventing/test/lib"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/eventing/test/lib"
testlib "knative.dev/eventing/test/lib"
"knative.dev/eventing/pkg/apis/messaging"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Format Go code:

Suggested change
"knative.dev/eventing/pkg/apis/messaging"
"knative.dev/eventing/pkg/apis/messaging"
testlib "knative.dev/eventing/test/lib"


var channelLabels = map[string]string{
messaging.SubscribableDuckVersionAnnotation: "true",
"duck.knative.dev/addressable": "true",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Format Go code:

Suggested change
"duck.knative.dev/addressable": "true",
"duck.knative.dev/addressable": "true",

Copy link
Copy Markdown
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

let's see what the bot does, afterwards 🤷‍♂️

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Abd4llA, matzew

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:

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 18, 2020
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2020
@matzew
Copy link
Copy Markdown
Member

matzew commented Jun 18, 2020

/lgtm

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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants