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

Changes made to connectivity/check/logging.go #2210

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AHB102
Copy link

@AHB102 AHB102 commented Jan 5, 2024

Hi there @joestringer, I forgot to add a PR, resolved issue #2042, added context as a parameter to the failCommon method, to allow each test caller to pass their own context down when invoking Fail(), Failf(), Fatal(), and Fatalf()

@AHB102 AHB102 requested a review from a team as a code owner January 5, 2024 19:14
@maintainer-s-little-helper
Copy link

Commit b71a58d does not match "Signed-off-by".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@joestringer
Copy link
Member

Thanks for the PR. It doesn't build, could you fix, build and test it and re-push a fresh version?

@AHB102
Copy link
Author

AHB102 commented Jan 5, 2024

@joestringer I have some questions which might not be fully within the scope of this issue, so can I message you on slack ?

@joestringer
Copy link
Member

I would suggest posting in #development channel on Slack. I am not deeply involved with cilium-cli, I just noticed the issue. Posting in that public channel should provide opportunities for other developers in the community to see your messages and provide input.

@maintainer-s-little-helper
Copy link

Commits b71a58d, 05deb85 do not match "Signed-off-by".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

Copy link
Member

@christarazi christarazi 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 the PR. A comment below to address.

Additionally, as mentioned in the issue, please link the issue in the description of the commit msg. You can also squash the commits into one as there is no need for multiple commits here. For more info on how to format commit msgs, please see https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#submit-pr.

connectivity/check/logging.go Show resolved Hide resolved
@AHB102
Copy link
Author

AHB102 commented Jan 11, 2024

@christarazi Thanks for the comment! I'm quite new to open source, but I'm slowly but surely getting the hang of it.

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

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

Thanks!

Could you reword the title of the commit msg to be:

connectivity: Plumb context for SIGINT notifications

@@ -312,7 +312,8 @@ func (t *Test) failCommon() {
// will go directly to the user-specified writer.
func (t *Test) Fail(a ...interface{}) {
t.log(fail, a...)
t.failCommon()
t.failCommon(t.ctx.Context())

Copy link
Member

Choose a reason for hiding this comment

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

Nit: extra line here that's not necessary

Before:
Each test caller set up signal handling indiviually
After:
A globally declared SIGTERM handler now manages signals
Fixes: cilium#2042

Signed-off-by: Archit H Barve <[email protected]>
@AHB102
Copy link
Author

AHB102 commented Jan 12, 2024

@christarazi I have reworded the commit message and removed the extra line at line 316.

@christarazi
Copy link
Member

@AHB102 Seems like the code has some compilation errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants