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

Eventing TLS: Add scheme label to metrics #7581

Merged
merged 19 commits into from
Jan 22, 2024

Conversation

sadath-12
Copy link
Contributor

@sadath-12 sadath-12 commented Jan 15, 2024

Fixes #6838

Proposed Changes

Added scheme label on ReporterArgs to be set by url.scheme in the request if it is empty http will be set

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note


Docs

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Copy link

knative-prow bot commented Jan 15, 2024

Welcome @sadath-12! It looks like this is your first PR to knative/eventing 🎉

@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 15, 2024
Copy link

knative-prow bot commented Jan 15, 2024

Hi @sadath-12. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sadath-12
Copy link
Contributor Author

PR is WIP

@pierDipi
Copy link
Member

pierDipi commented Jan 15, 2024

@sadath-12 when the PR is WIP you can add [WIP] in the title so that we and the CI bots know, for example:

[WIP] Eventing TLS: Add scheme label to metrics

@sadath-12 sadath-12 changed the title Eventing TLS: Add scheme label to metrics [WIP] Eventing TLS: Add scheme label to metrics Jan 15, 2024
@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 Jan 15, 2024
@sadath-12
Copy link
Contributor Author

@sadath-12 when the PR is WIP you can add [WIP] in the title so that we and the CI bots know, for example:

[WIP] Eventing TLS: Add scheme label to metrics

thanks for letting know @pierDipi 😊

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 15, 2024
@sadath-12 sadath-12 changed the title [WIP] Eventing TLS: Add scheme label to metrics Eventing TLS: Add scheme label to metrics Jan 15, 2024
@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 Jan 15, 2024
@sadath-12
Copy link
Contributor Author

ready for review

@Cali0707
Copy link
Member

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 15, 2024
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@sadath-12
Copy link
Contributor Author

sadath-12 commented Jan 15, 2024

/retest

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 15, 2024
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@pierDipi
Copy link
Member

pierDipi commented Jan 18, 2024

Can you check the test failures https://prow.knative.dev/view/gs/knative-prow/pr-logs/pull/knative_eventing/7581/unit-tests_eventing_main/1747823117209702400 and code style errors https://github.com/knative/eventing/actions/runs/7564936038/job/20612089237?pr=7581 ?

You can run unit tests locally with ./test/presubmit-tests.sh --unit-tests

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (c7520cc) 74.56% compared to head (94af9d0) 74.44%.
Report is 13 commits behind head on main.

❗ Current head 94af9d0 differs from pull request most recent head f1db6a6. Consider uploading reports for the commit f1db6a6 to get more accurate results

Files Patch % Lines
pkg/broker/filter/filter_handler.go 13.33% 11 Missing and 2 partials ⚠️
pkg/channel/fanout/fanout_event_handler.go 71.79% 7 Missing and 4 partials ⚠️
pkg/broker/ingress/ingress_handler.go 62.50% 1 Missing and 2 partials ⚠️
pkg/channel/event_receiver.go 40.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7581      +/-   ##
==========================================
- Coverage   74.56%   74.44%   -0.12%     
==========================================
  Files         262      262              
  Lines       14951    15041      +90     
==========================================
+ Hits        11148    11198      +50     
- Misses       3215     3243      +28     
- Partials      588      600      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
pkg/broker/filter/filter_handler.go Outdated Show resolved Hide resolved
pkg/broker/filter/filter_handler.go Outdated Show resolved Hide resolved
pkg/broker/filter/filter_handler.go Outdated Show resolved Hide resolved
pkg/broker/ingress/ingress_handler.go Outdated Show resolved Hide resolved
pkg/channel/event_receiver.go Outdated Show resolved Hide resolved
pkg/channel/fanout/fanout_event_handler.go Outdated Show resolved Hide resolved
pkg/channel/fanout/fanout_event_handler.go Outdated Show resolved Hide resolved
pkg/channel/fanout/fanout_event_handler.go Outdated Show resolved Hide resolved
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@pierDipi
Copy link
Member

/assign @Cali0707

@pierDipi
Copy link
Member

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@pierDipi
Copy link
Member

Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@sadath-12
Copy link
Contributor Author

sadath-12 commented Jan 22, 2024

Thanks @pierDipi @Cali0707 lot of lessons learned from this pr

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
/cc @pierDipi
For a final approval on this one, as I'm less familiar with metrics reporting code

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jan 22, 2024
@pierDipi
Copy link
Member

/approve

Thanks for the contribution @sadath-12

Copy link

knative-prow bot commented Jan 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pierDipi, sadath-12

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 knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 22, 2024
@knative-prow knative-prow bot merged commit 44ff98b into knative:main Jan 22, 2024
38 of 40 checks passed
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. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

Eventing TLS: Add scheme label to metrics
3 participants