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

Re-enable PingSource TLS E2E test #7082

Merged
merged 10 commits into from
Jul 20, 2023

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Jul 7, 2023

Fixes #7021

This is the root cause: cloudevents/sdk-go#923

Proposed Changes

  • Re-enable PingSource TLS E2E test
  • Remove hacky client injection for PingSource

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

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/test-and-release Test infrastructure, tests or release labels Jul 7, 2023
@knative-prow knative-prow bot requested a review from aslom July 7, 2023 08:12
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 7, 2023
@knative-prow knative-prow bot requested a review from mgencur July 7, 2023 08:12
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 7, 2023
@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Patch coverage: 82.85% and project coverage change: +0.02 🎉

Comparison is base (ed05a35) 78.29% compared to head (3448a8a) 78.31%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7082      +/-   ##
==========================================
+ Coverage   78.29%   78.31%   +0.02%     
==========================================
  Files         250      250              
  Lines       13290    13320      +30     
==========================================
+ Hits        10405    10432      +27     
- Misses       2353     2357       +4     
+ Partials      532      531       -1     
Impacted Files Coverage Δ
pkg/adapter/v2/cloudevents.go 78.40% <78.57%> (+0.34%) ⬆️
pkg/adapter/mtping/runner.go 81.39% <100.00%> (+0.90%) ⬆️

... and 8 files 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
Copy link
Member Author

pierDipi commented Jul 7, 2023

1/1 worked, retesting
/test reconciler-tests

@pierDipi
Copy link
Member Author

pierDipi commented Jul 7, 2023

2/2 worked, retesting
/test reconciler-tests

@pierDipi
Copy link
Member Author

2023-07-07T12:33:00.200Z	debug	pingsource-mt-adapter	mtping/runner.go:153	sending cloudevent id: f75a89b2-221d-4ee6-a3de-5f32798662a8, source: /apis/v1/namespaces/test-iwvozcet/pingsources/pingsource-nefzvkzi, target: https://sink-gzgvnaci.test-iwvozcet.svc.cluster.local	{"commit": "1726300"}
2023-07-07T12:33:00.265Z	debug	pingsource-mt-adapter	mtping/runner.go:162	Finished sending cloudevent id: f75a89b2-221d-4ee6-a3de-5f32798662a8	{"commit": "1726300"}

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi force-pushed the re-enabled-ping-source-tests branch from f3eee7c to d815e1d Compare July 11, 2023 09:36
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi force-pushed the re-enabled-ping-source-tests branch from d815e1d to 936270d Compare July 11, 2023 09:38
@pierDipi
Copy link
Member Author

2023-07-11T10:01:00.419Z	debug	pingsource-mt-adapter	mtping/runner.go:153	sending cloudevent id: b9abde80-b372-4dcb-be8c-045e1f5603cd, source: /apis/v1/namespaces/test-jbulnljd/pingsources/pingsource-hxdvjuhz, target: https://sink-bqqsdgrf.test-jbulnljd.svc.cluster.local	{"commit": "0af1924"}
2023-07-11T10:01:03.576Z	error	pingsource-mt-adapter	mtping/runner.go:157	failed to send cloudevent result: {result 26 0  Post "https://sink-bqqsdgrf.test-jbulnljd.svc.cluster.local": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "selfsigned-ca") (5x)} {source 15 0 /apis/v1/namespaces/test-jbulnljd/pingsources/pingsource-hxdvjuhz <nil>} {target 15 0 https://sink-bqqsdgrf.test-jbulnljd.svc.cluster.local <nil>} {id 15 0 b9abde80-b372-4dcb-be8c-045e1f5603cd <nil>}	{"commit": "0af1924"}

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi force-pushed the re-enabled-ping-source-tests branch 3 times, most recently from 287a337 to 8024abe Compare July 17, 2023 15:50
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi pierDipi force-pushed the re-enabled-ping-source-tests branch from 8024abe to 6486546 Compare July 17, 2023 15:51
@pierDipi
Copy link
Member Author

1/1 worked, retesting
/test reconciler-tests

@pierDipi
Copy link
Member Author

2/2 worked, retesting
/test reconciler-tests

@pierDipi
Copy link
Member Author

3/3 worked, retesting
/test reconciler-tests

@pierDipi pierDipi changed the title [WIP] Re-enable PingSource TLS E2E test Re-enable PingSource TLS E2E test Jul 18, 2023
@pierDipi
Copy link
Member Author

/cc @creydr

@knative-prow knative-prow bot requested a review from creydr July 18, 2023 09:22
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.

🎉
Thanks for fixing!
/lgtm

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

knative-prow bot commented Jul 18, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@pierDipi pierDipi removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 20, 2023
@knative-prow knative-prow bot merged commit a755429 into knative:main Jul 20, 2023
32 of 35 checks passed
@pierDipi pierDipi deleted the re-enabled-ping-source-tests branch July 20, 2023 10:50
pierDipi added a commit to pierDipi/eventing that referenced this pull request Jul 25, 2023
Fixes knative#7021

This is the root cause: cloudevents/sdk-go#923

<!-- Please include the 'why' behind your changes if no issue exists -->

<!-- Please categorize your changes:
- 🎁 Add new feature
- 🐛 Fix bug
- 🧹 Update or clean up current behavior
- 🗑️ Remove feature or internal logic
-->

- Re-enable PingSource TLS E2E test
- Remove hacky client injection for PingSource

<!-- If these boxes are not checked, you will be asked to complete these
requirements or explain why they do not apply to your PR. -->

- [ ] **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**

<!--
📄 If this change has user-visible impact, write a release
note in the block
below. Include the string "action required" if additional action is
required of
users switching to the new release, for example in case of a breaking
change.

Write as if you are speaking to users, not other Knative contributors.
If this
change has no user-visible impact, no release note is needed.
-->

```release-note

```

**Docs**

<!--
📖 If this change has user-visible impact, link to an issue or PR in
https://github.com/knative/docs.
-->

---------

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
openshift-merge-robot pushed a commit to openshift-knative/eventing that referenced this pull request Jul 27, 2023
Fixes knative#7021

This is the root cause: cloudevents/sdk-go#923

<!-- Please include the 'why' behind your changes if no issue exists -->

<!-- Please categorize your changes:
- 🎁 Add new feature
- 🐛 Fix bug
- 🧹 Update or clean up current behavior
- 🗑️ Remove feature or internal logic
-->

- Re-enable PingSource TLS E2E test
- Remove hacky client injection for PingSource

<!-- If these boxes are not checked, you will be asked to complete these
requirements or explain why they do not apply to your PR. -->

- [ ] **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**

<!--
📄 If this change has user-visible impact, write a release
note in the block
below. Include the string "action required" if additional action is
required of
users switching to the new release, for example in case of a breaking
change.

Write as if you are speaking to users, not other Knative contributors.
If this
change has no user-visible impact, no release note is needed.
-->

```release-note

```

**Docs**

<!--
📖 If this change has user-visible impact, link to an issue or PR in
https://github.com/knative/docs.
-->

---------

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.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 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.

Re-Enable TestPingSourceTLS rekt-test
2 participants