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

Splitting out interop's server helper. #7447

Merged
merged 9 commits into from
Aug 4, 2016

Conversation

nicolasnoble
Copy link
Member

No description provided.

std::shared_ptr<ServerCredentials> CreateInteropServerCredentials() {
if (FLAGS_use_tls) {
SslServerCredentialsOptions::PemKeyCertPair pkcp = {test_server1_key,
test_server1_cert};
Copy link
Member

Choose a reason for hiding this comment

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

This would normally get my spidey-sense tingling (brace-lists) but this case was certainly safe, so it's all good.

Copy link
Member Author

Choose a reason for hiding this comment

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

Note that I didn't write this. I only moved code from one file to another.

On Mon, Jul 18, 2016 at 11:32 AM, Vijay Pai notifications@github.com
wrote:

In test/cpp/interop/server_helper_auth.cc
#7447 (comment):

+#include <gflags/gflags.h>
+#include <grpc++/security/server_credentials.h>
+
+#include "src/core/lib/surface/call_test_only.h"
+#include "test/core/end2end/data/ssl_test_data.h"
+
+DECLARE_bool(use_tls);
+
+namespace grpc {
+namespace testing {
+
+std::shared_ptr CreateInteropServerCredentials() {

  • if (FLAGS_use_tls) {
  • SslServerCredentialsOptions::PemKeyCertPair pkcp = {test_server1_key,
  •                                                    test_server1_cert};
    

This would normally get my spidey-sense tingling (brace-lists) but this
case was certainly safe, so it's all good.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/pull/7447/files/6b00175833540ad8af4c13627c9690145a9f158b#r71202414,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AG8bptvie7YnjNmN7AR49B2O4lFguKb-ks5qW8bCgaJpZM4JO_6g
.

@vjpai
Copy link
Member

vjpai commented Jul 18, 2016

LGTM, but what's the motivation?

@nicolasnoble
Copy link
Member Author

I'm actually going to change radically that PR for a different approach...

@nicolasnoble nicolasnoble force-pushed the interop_server_split branch from 6b00175 to 6570b83 Compare July 18, 2016 21:42
@nicolasnoble
Copy link
Member Author

Updated. Also superseeds #7358.

@vjpai
Copy link
Member

vjpai commented Jul 19, 2016

LGTM.

@vjpai vjpai mentioned this pull request Jul 19, 2016
@vjpai
Copy link
Member

vjpai commented Jul 25, 2016

Rebuilding to see some greenness.

@vjpai
Copy link
Member

vjpai commented Jul 25, 2016

Needs a merge with master for the sanity checks to work, I think.

@nicolasnoble
Copy link
Member Author

Probably. Merged from master.

@nicolasnoble
Copy link
Member Author

Merged again, after conflict resolution.

@vjpai
Copy link
Member

vjpai commented Jul 29, 2016

Any new on this PR? It's passed the required tests but the basic tests that are still failing are the ones that seem directly related (interop_test), as well as sanity.

@vjpai
Copy link
Member

vjpai commented Aug 1, 2016

Ok, I found the problem (I think). The test in interop_server.cc needs to be changed from !got_sigint to
!grpc::testing::interop::g_got_sigint . I'll send a PR to this PR.

@vjpai
Copy link
Member

vjpai commented Aug 1, 2016

Any idea why sanity is still failing here?

@pgrosu
Copy link

pgrosu commented Aug 1, 2016

@vjpai are you in the same namespace? I think g_got_sigint is in grpc::testing::interop.

nathanielmanistaatgoogle pushed a commit to nathanielmanistaatgoogle/grpc that referenced this pull request Aug 3, 2016
Just want to know if tests pass.

Squashed commit of the following:

commit 4e7259d
Merge: 138d3e1 abaa705
Author: Nicolas "Pixel" Noble <pixel@nobis-crew.org>
Date:   Tue Aug 2 18:32:05 2016 +0200

    Merge branch 'master' of https://github.com/grpc/grpc into interop_server_split

commit 138d3e1
Merge: 64f8d09 96b7b52
Author: Nicolas Noble <nicolasnoble@users.noreply.github.com>
Date:   Mon Aug 1 10:09:04 2016 -0700

    Merge pull request grpc#9 from vjpai/sigint

    Fix exit condition

commit 96b7b52
Author: Vijay Pai <vpai@google.com>
Date:   Mon Aug 1 09:33:38 2016 -0700

    Fix exit condition

commit 64f8d09
Merge: bc0b088 818564c
Author: Nicolas "Pixel" Noble <pixel@nobis-crew.org>
Date:   Wed Jul 27 19:50:56 2016 +0200

    Merge branch 'master' of https://github.com/grpc/grpc into interop_server_split

commit bc0b088
Merge: c326407 01da196
Author: Nicolas "Pixel" Noble <pixel@nobis-crew.org>
Date:   Mon Jul 25 23:51:01 2016 +0200

    Merge branch 'master' of https://github.com/grpc/grpc into interop_server_split

    Conflicts:
    	Makefile

commit c326407
Merge: 6570b83 de2d9fc
Author: Nicolas "Pixel" Noble <pixel@nobis-crew.org>
Date:   Mon Jul 25 21:51:59 2016 +0200

    Merge branch 'master' of https://github.com/grpc/grpc into interop_server_split

commit 6570b83
Author: Nicolas "Pixel" Noble <pixel@nobis-crew.org>
Date:   Mon Jul 18 23:29:50 2016 +0200

    Splitting interop_server.cc
@nicolasnoble
Copy link
Member Author

for Jenkins: test this please

@nicolasnoble
Copy link
Member Author

Finally, sanity comes back green - it didn't before on my last amendment. However, due to #7639, the interop tests aren't passing, so I'll have to override merging that one.

@nicolasnoble nicolasnoble merged commit ffbfd01 into grpc:master Aug 4, 2016
@vjpai
Copy link
Member

vjpai commented Aug 4, 2016

Great! Glad to see this complete.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants