Skip to content

Add tracing for TestBrokerWithManyTriggers#7077

Merged
knative-prow[bot] merged 4 commits intoknative:mainfrom
pierDipi:tracing-broker-with-many-triggers
Jul 5, 2023
Merged

Add tracing for TestBrokerWithManyTriggers#7077
knative-prow[bot] merged 4 commits intoknative:mainfrom
pierDipi:tracing-broker-with-many-triggers

Conversation

@pierDipi
Copy link
Member

@pierDipi pierDipi commented Jul 4, 2023

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 4, 2023
@pierDipi
Copy link
Member Author

pierDipi commented Jul 4, 2023

/cc @creydr @Cali0707

@knative-prow knative-prow bot requested review from Cali0707 and creydr July 4, 2023 15:34
@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label Jul 4, 2023
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 4, 2023
@Cali0707
Copy link
Member

Cali0707 commented Jul 4, 2023

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 4, 2023
@Cali0707
Copy link
Member

Cali0707 commented Jul 4, 2023

/test unit-tests

@Cali0707
Copy link
Member

Cali0707 commented Jul 4, 2023

/retest-required

@pierDipi
Copy link
Member Author

pierDipi commented Jul 4, 2023

/test unit-tests

Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

/lgtm

@creydr
Copy link
Member

creydr commented Jul 4, 2023

/retest

@Cali0707
Copy link
Member

Cali0707 commented Jul 4, 2023

/test reconciler-tests

1 similar comment
@Cali0707
Copy link
Member

Cali0707 commented Jul 4, 2023

/test reconciler-tests

@Cali0707
Copy link
Member

Cali0707 commented Jul 4, 2023

@pierDipi it's the tests that this PR is supposed to help debug that are failing on this PR. Any ideas what to do?

@pierDipi
Copy link
Member Author

pierDipi commented Jul 5, 2023

in https://prow.knative.dev/view/gs/knative-prow/pr-logs/pull/knative_eventing/7077/reconciler-tests_eventing_main/1676295572631326720

TestBrokerWithManyTriggers/broker_With_Many_Triggers/Assert/test_message_without_explicit_prefer_header_should_have_the_header_delivers_events#35

For dumper-12 assertion, we get

        - Match errors -
        0 - expecting attribute 'id' equal to '9187ff8c-b2b3-4664-9231-7a7eeaba253f', got 'dcb1f640-f055-4023-86ec-a8271af6b4a3'
        1 - expecting attribute 'id' equal to '9187ff8c-b2b3-4664-9231-7a7eeaba253f', got 'b2d28d34-f88e-4c21-9ab2-b710e62be731'
        2 - expecting attribute 'id' equal to '9187ff8c-b2b3-4664-9231-7a7eeaba253f', got '761a313c-e0cd-4614-948b-92da96833121'
        3 - expecting attribute 'id' equal to '9187ff8c-b2b3-4664-9231-7a7eeaba253f', got '6589d88c-2ec9-4fbc-94e1-2623c8f0aa1d'
        4 - expecting attribute 'id' equal to '9187ff8c-b2b3-4664-9231-7a7eeaba253f', got '6f47811a-fd12-4e89-9798-b8f1c3ea0b8e'
        5 - expecting attribute 'id' equal to '9187ff8c-b2b3-4664-9231-7a7eeaba253f', got 'ce0e2be1-3ae9-4b46-a6f2-3f2831560bd4'

This is the event with such id:

Context Attributes
specversion: 1.0
type: type2
source: http://source2.com
id: 9187ff8c-b2b3-4664-9231-7a7eeaba253f
datacontenttype: application/json

Extensions
extname1: extval1
extname2: extvalue2

Data (binary)

{ "msg": "3eb9045b-af05-4b4c-8458-0eb6995066d9" }

However, dumper-12 filters events with:

type: type1 and "any" source`:

eventFilters1["dumper-12"] = neweventTestCase(eventType1, any)

func neweventTestCase(tp, source string) eventTestCase {
return eventTestCase{Type: tp, Source: source}
}

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 5, 2023
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi force-pushed the tracing-broker-with-many-triggers branch from e77fb8c to e282312 Compare July 5, 2023 08:45
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Patch coverage: 58.76% and project coverage change: -0.17 ⚠️

Comparison is base (cb2a891) 78.75% compared to head (a6498b6) 78.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7077      +/-   ##
==========================================
- Coverage   78.75%   78.59%   -0.17%     
==========================================
  Files         248      249       +1     
  Lines       13148    13228      +80     
==========================================
+ Hits        10355    10396      +41     
- Misses       2273     2304      +31     
- Partials      520      528       +8     
Impacted Files Coverage Δ
pkg/adapter/mtping/runner.go 80.48% <0.00%> (ø)
pkg/channel/message_dispatcher.go 73.17% <0.00%> (-1.83%) ⬇️
pkg/reconciler/source/duck/duck.go 74.68% <0.00%> (-2.05%) ⬇️
pkg/resolver/kresource_resolver.go 0.00% <ø> (ø)
pkg/broker/ingress/ingress_handler.go 70.23% <11.11%> (-7.10%) ⬇️
pkg/broker/ttl.go 71.42% <66.66%> (ø)
pkg/broker/eventtypes.go 72.22% <72.22%> (ø)
pkg/adapter/v2/cloudevents.go 78.06% <100.00%> (+0.11%) ⬆️
pkg/apis/eventing/v1beta2/eventtype_defaults.go 100.00% <100.00%> (ø)
pkg/broker/filter/filter_handler.go 71.19% <100.00%> (+0.07%) ⬆️
... and 1 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pierDipi pierDipi changed the title Add tracing for TestBrokerWithManyTriggers [WIP] Add tracing for TestBrokerWithManyTriggers Jul 5, 2023
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 5, 2023
@pierDipi pierDipi force-pushed the tracing-broker-with-many-triggers branch from a16796f to c8e6855 Compare July 5, 2023 10:45
@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 5, 2023
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi force-pushed the tracing-broker-with-many-triggers branch from c8e6855 to a6498b6 Compare July 5, 2023 10:50
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 5, 2023
@pierDipi
Copy link
Member Author

pierDipi commented Jul 5, 2023

/test upgrade-tests

@pierDipi pierDipi changed the title [WIP] Add tracing for TestBrokerWithManyTriggers Add tracing for TestBrokerWithManyTriggers Jul 5, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 5, 2023
@pierDipi pierDipi requested review from Cali0707 and creydr July 5, 2023 12:05
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 5, 2023
@Cali0707
Copy link
Member

Cali0707 commented Jul 5, 2023

/test upgrade-tests

Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow
Copy link

knative-prow bot commented Jul 5, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, creydr, pierDipi

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 knative-prow bot merged commit eaf28a7 into knative:main Jul 5, 2023
@pierDipi pierDipi deleted the tracing-broker-with-many-triggers branch July 5, 2023 13:05
vishal-chdhry pushed a commit to vishal-chdhry/eventing that referenced this pull request Jul 6, 2023
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 lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants