Skip to content

Replacing port-forwarding with k8s events in recordevents#4171

Merged
knative-prow-robot merged 23 commits into
knative:masterfrom
slinkydeveloper:observer_and_record_events
Oct 6, 2020
Merged

Replacing port-forwarding with k8s events in recordevents#4171
knative-prow-robot merged 23 commits into
knative:masterfrom
slinkydeveloper:observer_and_record_events

Conversation

@slinkydeveloper
Copy link
Copy Markdown
Contributor

@slinkydeveloper slinkydeveloper commented Sep 30, 2020

Signed-off-by: Francesco Guardiani francescoguard@gmail.com

Fixes #3570

Proposed Changes

  • This PR takes the ideas from pkg/test/observer and ports them to recordevents, without changing the API. This change is meant to be transparent both here in eventing and in downstream projects.
  • Reorganizes some code of recordevents to make it more "self-contained" (simpler to port to newer test framework).

@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 Sep 30, 2020
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 30, 2020
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Sep 30, 2020
@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. labels Sep 30, 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 -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 2, 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 -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)

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 -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)

@slinkydeveloper slinkydeveloper force-pushed the observer_and_record_events branch from b9b27bb to bf8d8cf Compare October 5, 2020 13:35
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 5, 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 -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)

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 -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)

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 -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)

@slinkydeveloper slinkydeveloper changed the title [WIP] Replacing port-forwarding with k8s events in recordevents Replacing port-forwarding with k8s events in recordevents Oct 5, 2020
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 5, 2020
@slinkydeveloper
Copy link
Copy Markdown
Contributor Author

/assign @lionelvillard @n3wscott

@n3wscott Can i remove the code under pkg/test/observer? At this point that code is orphan and not used in this repo (I've moved the bits i needed and modified them under test/lib/recordevents)

Comment thread test/lib/k8s_events.go
Comment on lines +43 to +63
informerFactory := informers.NewSharedInformerFactoryWithOptions(
client,
0,
informers.WithNamespace(namespace),
)
eventsInformer := informerFactory.Core().V1().Events().Informer()

el := EventListener{
cancel: cancelCtx,
}

eventsInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: func(obj interface{}) {
el.handle(obj.(*corev1.Event))
},
})

go func() {
eventsInformer.Run(ctx.Done())
logf("EventListener stopped")
}()
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.

In reconciler-test the event informer is injected into the context (something to keep in mind when moving this code over).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Cool so we can avoid creating it manually!

Copy link
Copy Markdown
Contributor Author

@slinkydeveloper slinkydeveloper Oct 5, 2020

Choose a reason for hiding this comment

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

We'll still need this EventListener, right? Note that this is shared between different EventInfoStore

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.

Yup I think so.

@knative-test-reporter-robot
Copy link
Copy Markdown

The following jobs failed:

Test name Triggers Retries
pull-knative-eventing-conformance-tests 0/3
pull-knative-eventing-upgrade-tests 0/3

Failed non-flaky tests preventing automatic retry of pull-knative-eventing-conformance-tests:

test/conformance.TestBrokerV1Beta1DataPlaneIngress/MTChannelBasedBroker-eventing.knative.dev/v1beta1
test/conformance.TestBrokerV1Beta1DataPlaneIngress
test/conformance.TestBrokerV1Beta1ControlPlane/MTChannelBasedBroker-eventing.knative.dev/v1beta1/Trigger_V1Beta1_can_be_crated_before_Broker_(with_attributes_filter)
test/conformance.TestBrokerV1Beta1ControlPlane/MTChannelBasedBroker-eventing.knative.dev/v1beta1
test/conformance.TestBrokerV1Beta1ControlPlane
test/conformance.TestChannelForwardHeadersPrependedWithKnative/InMemoryChannel-messaging.knative.dev/v1beta1
test/conformance.TestChannelForwardHeadersPrependedWithKnative/Channel-messaging.knative.dev/v1
test/conformance.TestChannelForwardHeadersPrependedWithKnative/Channel-messaging.knative.dev/v1beta1

and 47 more.

@knative-test-reporter-robot
Copy link
Copy Markdown

The following jobs failed:

Test name Triggers Retries
pull-knative-eventing-integration-tests 0/3
pull-knative-eventing-upgrade-tests 0/3

Failed non-flaky tests preventing automatic retry of pull-knative-eventing-integration-tests:

test/e2e.TestDefaultBrokerWithManyTriggers/test_default_broker_with_many_attribute_triggers
test/e2e.TestDefaultBrokerWithManyTriggers/test_default_broker_with_many_attribute_and_extension_triggers
test/e2e.TestDefaultBrokerWithManyTriggers/test_default_broker_with_many_deprecated_triggers
test/e2e.TestDefaultBrokerWithManyTriggers/test_default_broker_with_many_attribute_triggers_using_v1beta1_trigger
test/e2e.TestDefaultBrokerWithManyTriggers
test/e2e.TestApiServerSourceV1/event-ref
test/e2e.TestApiServerSourceV1/event-ref-match-label-expr
test/e2e.TestApiServerSourceV1/event-ref-unmatch-label

and 35 more.

package recordevents

// EventLog is the contract for an event logger to vent an event.
type EventLog interface {
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.

why are you copying this to test/lib?

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.

now we have three copies of this code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because that code is hard to reuse, I had to do some important changes (interfaces and impls looks similar, but they're different)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's why I'm saying, if we use that code only in recordevents, what if we just remove the one under test/lib?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

now we have three copies of this code?

Copying to the new test framework was a mistake, i'm going to port this new code there 😄

@slinkydeveloper
Copy link
Copy Markdown
Contributor Author

The issue here is weird, for some reason it timeouts on waiting for pods to delete

@slinkydeveloper
Copy link
Copy Markdown
Contributor Author

Solved, I was not closing the http server correctly

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@slinkydeveloper slinkydeveloper force-pushed the observer_and_record_events branch from 6996305 to 1196010 Compare October 6, 2020 10:12
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@slinkydeveloper
Copy link
Copy Markdown
Contributor Author

/retest

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Copy link
Copy Markdown
Contributor

@n3wscott n3wscott 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

MessageFunc: func(event *corev1.Event) string {
return event.Message
},
MaxEvents: 1,
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.

NICE FIND!!!

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: n3wscott, slinkydeveloper

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,slinkydeveloper]

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 merged commit b7a7126 into knative:master Oct 6, 2020
@slinkydeveloper slinkydeveloper deleted the observer_and_record_events branch October 6, 2020 15:31
@matzew
Copy link
Copy Markdown
Member

matzew commented Oct 6, 2020

@slinkydeveloper is it possible to backport this to 0.17 and 0.18 ? 😁

@slinkydeveloper
Copy link
Copy Markdown
Contributor Author

slinkydeveloper commented Oct 6, 2020

@matzew Not sure for 0.17, changes are too much extensive both on recordevents and lib test code... There are also other changes in that code before this one. If we need it i can work on it but that's not a trivial port :) 0.18 might be doable

slinkydeveloper added a commit that referenced this pull request Oct 6, 2020
* WIP Replacing port-forwarding with k8s events in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* WIP Events are sent properly from recordevents to k8s events

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Sending the beast in battle

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Update

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Moved resources of recordevents in proper module

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* gofmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Another one

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other stuff

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other lints checks

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Warn

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Now the linter

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Missing decorator in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Simplified the sink definition, just sending events to myself

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Happy linter, happy me

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Correct HTTP server shutdown

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Try fix correlator config

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Just close the server

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Still messing up with the Event correlator options

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* lint check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit b7a7126)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
slinkydeveloper added a commit to slinkydeveloper/eventing that referenced this pull request Oct 6, 2020
* WIP Replacing port-forwarding with k8s events in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* WIP Events are sent properly from recordevents to k8s events

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Sending the beast in battle

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Update

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Moved resources of recordevents in proper module

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* gofmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Another one

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other stuff

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other lints checks

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Warn

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Now the linter

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Missing decorator in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Simplified the sink definition, just sending events to myself

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Happy linter, happy me

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Correct HTTP server shutdown

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Try fix correlator config

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Just close the server

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Still messing up with the Event correlator options

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* lint check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit b7a7126)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
knative-prow-robot pushed a commit that referenced this pull request Oct 9, 2020
…nts (#4230)

* Replacing port-forwarding with k8s events in recordevents (#4171)

* WIP Replacing port-forwarding with k8s events in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* WIP Events are sent properly from recordevents to k8s events

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Sending the beast in battle

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Update

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Moved resources of recordevents in proper module

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* gofmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Another one

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other stuff

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other lints checks

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Warn

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Now the linter

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Missing decorator in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Simplified the sink definition, just sending events to myself

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Happy linter, happy me

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Correct HTTP server shutdown

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Try fix correlator config

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Just close the server

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Still messing up with the Event correlator options

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* lint check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit b7a7126)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Reverted gomod

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Regenerated go mod

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
slinkydeveloper added a commit to slinkydeveloper/eventing that referenced this pull request Oct 20, 2020
* WIP Replacing port-forwarding with k8s events in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* WIP Events are sent properly from recordevents to k8s events

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Sending the beast in battle

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Update

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Moved resources of recordevents in proper module

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* gofmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Another one

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other stuff

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other lints checks

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Warn

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Now the linter

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Missing decorator in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Simplified the sink definition, just sending events to myself

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Happy linter, happy me

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Correct HTTP server shutdown

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Try fix correlator config

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Just close the server

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Still messing up with the Event correlator options

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* lint check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit b7a7126)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
slinkydeveloper added a commit to slinkydeveloper/eventing that referenced this pull request Oct 20, 2020
* WIP Replacing port-forwarding with k8s events in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* WIP Events are sent properly from recordevents to k8s events

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Sending the beast in battle

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Update

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Moved resources of recordevents in proper module

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* gofmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Another one

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other stuff

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other lints checks

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Warn

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Now the linter

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Missing decorator in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Simplified the sink definition, just sending events to myself

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Happy linter, happy me

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Correct HTTP server shutdown

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Try fix correlator config

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Just close the server

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Still messing up with the Event correlator options

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* lint check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit b7a7126)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
knative-prow-robot pushed a commit that referenced this pull request Oct 20, 2020
* Replacing port-forwarding with k8s events in recordevents (#4171)

* WIP Replacing port-forwarding with k8s events in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* WIP Events are sent properly from recordevents to k8s events

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Sending the beast in battle

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Update

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Moved resources of recordevents in proper module

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* gofmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Another one

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other stuff

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other copyrights

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* boilerplate check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Other lints checks

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Warn

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Now the linter

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Missing decorator in recordevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Simplified the sink definition, just sending events to myself

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Happy linter, happy me

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Correct HTTP server shutdown

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Try fix correlator config

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Just close the server

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Still messing up with the Event correlator options

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* lint check

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit b7a7126)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Reuse recordevents as transformevents (#4291)

* transformevents done

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* transformevents done

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Test

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fix copyright

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Did something

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit d5d4f42)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Using recordevents as sequencestepper (#4313)

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
(cherry picked from commit 656ab81)

* Remove transformevents usages (#4309)

* Remove transformevents

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Comments

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Let's be less breaky: brought back the image

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit 3e7f942)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixes after cherry pick

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Remove sequence stepper usages (#4344)

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

(cherry picked from commit 515f416)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Remove filterevents usages (#4347)

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
(cherry picked from commit ca85d86)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

# Conflicts:
#	test/lib/resources/kube.go

* Update

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Not sure why SYSTEM_NAMESPACE doesn't work in 0.17

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Did the same error 2 times

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the eventstore pods more resilient to failures. Causing flakes in our tests.

8 participants