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

Updated mtping TLS cert test to bind to free port #7036

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

Cali0707
Copy link
Member

Fixes #7028
Looking at the logs, it seems like this test fails because it cannot bind to the required port:

 === FAIL: pkg/adapter/mtping TestSendEventsTLS/Valid_CA_certs (unknown)
panic: listen tcp :8334: bind: address already in use
goroutine 226 [running]:
knative.dev/eventing/pkg/eventingtls/eventingtlstesting.StartServer.func1()
	/home/prow/go/src/knative.dev/eventing/pkg/eventingtls/eventingtlstesting/eventingtlstesting.go:77 +0x88
created by knative.dev/eventing/pkg/eventingtls/eventingtlstesting.StartServer
	/home/prow/go/src/knative.dev/eventing/pkg/eventingtls/eventingtlstesting/eventingtlstesting.go:74 +0x7ea 

Proposed Changes

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

@knative-prow knative-prow bot requested review from aslom and pierDipi June 22, 2023 14:25
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 22, 2023
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (6a890e0) 78.59% compared to head (bc737ba) 78.59%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7036   +/-   ##
=======================================
  Coverage   78.59%   78.59%           
=======================================
  Files         249      249           
  Lines       13228    13228           
=======================================
  Hits        10396    10396           
  Misses       2304     2304           
  Partials      528      528           

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

@Leo6Leo
Copy link
Member

Leo6Leo commented Jun 22, 2023

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 22, 2023
@Leo6Leo Leo6Leo removed their assignment Jun 22, 2023
@Leo6Leo
Copy link
Member

Leo6Leo commented Jun 22, 2023

/assign @Cali0707

@knative-prow knative-prow bot added size/XS Denotes a PR that changes 0-9 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 Jun 23, 2023
@Cali0707
Copy link
Member Author

/retest-required

Copy link
Member

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

@knative-prow knative-prow bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 6, 2023
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 6, 2023
@pierDipi
Copy link
Member

pierDipi commented Jul 6, 2023

Ah there are conflicts

Signed-off-by: Calum Murray <cmurray@redhat.com>
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2023
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 6, 2023
Copy link
Member

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

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

knative-prow bot commented Jul 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, 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

@Cali0707
Copy link
Member Author

Cali0707 commented Jul 6, 2023

/test upgrade-tests

@Cali0707
Copy link
Member Author

Cali0707 commented Jul 6, 2023

/retest-required

@Cali0707
Copy link
Member Author

Cali0707 commented Jul 6, 2023

/retest

@Cali0707
Copy link
Member Author

Cali0707 commented Jul 6, 2023

/retest-required

@knative-prow knative-prow bot merged commit 2fe1db6 into knative:main Jul 6, 2023
32 of 36 checks passed
vishal-chdhry pushed a commit to vishal-chdhry/eventing that referenced this pull request Jul 6, 2023
Fixes knative#7028 
Looking at the logs, it seems like this test fails because it cannot
bind to the required port:
```
 === FAIL: pkg/adapter/mtping TestSendEventsTLS/Valid_CA_certs (unknown)
panic: listen tcp :8334: bind: address already in use
goroutine 226 [running]:
knative.dev/eventing/pkg/eventingtls/eventingtlstesting.StartServer.func1()
	/home/prow/go/src/knative.dev/eventing/pkg/eventingtls/eventingtlstesting/eventingtlstesting.go:77 +0x88
created by knative.dev/eventing/pkg/eventingtls/eventingtlstesting.StartServer
	/home/prow/go/src/knative.dev/eventing/pkg/eventingtls/eventingtlstesting/eventingtlstesting.go:74 +0x7ea 
```

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

## Proposed Changes

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

- Update the test to bind to a free address, using port 0
(https://www.lifewire.com/port-0-in-tcp-and-udp-818145)


### Pre-review Checklist

<!-- 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

---------

Signed-off-by: Calum Murray <cmurray@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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flaky] pkg/adapter/mtping.TestSendEventsTLS/Valid_CA_certs
4 participants