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

Enable protobuf in Origin for server-to-server #9814

Merged
merged 12 commits into from Jul 25, 2016

Conversation

smarterclayton
Copy link
Contributor

This builds on top of the other protobuf PR and tests full protobuf throughout the stack (client -> server, server -> server). Also fixes some conversion inefficiencies in authorization (which is surprisingly slow).

@smarterclayton
Copy link
Contributor Author

[test]

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 13, 2016
@smarterclayton smarterclayton force-pushed the protobuf_enabled branch 2 times, most recently from 2152acf to 7f04141 Compare July 19, 2016 04:39
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 19, 2016
@smarterclayton
Copy link
Contributor Author

[test]

On Tue, Jul 19, 2016 at 12:30 PM, OpenShift Bot notifications@github.com
wrote:

continuous-integration/openshift-jenkins/test FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6462/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9814 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_p56MkNoVnxHJ1Rj9cQNdmZTDKvvqks5qXPu6gaJpZM4JLFc7
.

@smarterclayton
Copy link
Contributor Author

[test]

@smarterclayton
Copy link
Contributor Author

[test]

On Tue, Jul 19, 2016 at 3:00 PM, OpenShift Bot notifications@github.com
wrote:

continuous-integration/openshift-jenkins/test FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6482/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9814 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_p0s_DTT4LupxnOrPHXSeQIOMdiFhks5qXR7igaJpZM4JLFc7
.

@smarterclayton
Copy link
Contributor Author

[test]

On Tue, Jul 19, 2016 at 3:21 PM, OpenShift Bot notifications@github.com
wrote:

continuous-integration/openshift-jenkins/test FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6491/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9814 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_p_l7qbJJZZ2R99Kvs4ap3wDtKtKDks5qXSOzgaJpZM4JLFc7
.

@smarterclayton smarterclayton force-pushed the protobuf_enabled branch 2 times, most recently from 5d8d35e to ba54434 Compare July 20, 2016 03:40
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 21, 2016
@smarterclayton smarterclayton force-pushed the protobuf_enabled branch 2 times, most recently from eba5cec to 50ca5c9 Compare July 22, 2016 03:30
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 22, 2016
@smarterclayton smarterclayton force-pushed the protobuf_enabled branch 2 times, most recently from 3cdb26a to 7360833 Compare July 22, 2016 05:43
@smarterclayton smarterclayton changed the title WIP - Test enabling protobuf everywhere Fully enable us for protobuf Jul 22, 2016
@smarterclayton
Copy link
Contributor Author

@deads2k @liggitt this is ready for review (or delegation to someone else). This is running all of our tests with protobuf enabled for both client and server - prior to merge I'll drop the "DO NOT MERGE" commit that forces it on for clients. I need to backport a few comments from c983121 from the other PR - it's easier to make the changes in here because I have better round tripping tests for both proto and json and it has the optional names changes.

@smarterclayton
Copy link
Contributor Author

All but 28933 is merged upstream.

@smarterclayton smarterclayton changed the title Fully enable us for protobuf Enable protobuf in Origin for server-to-server Jul 22, 2016
@smarterclayton
Copy link
Contributor Author

Omg

@deads2k
Copy link
Contributor

deads2k commented Jul 22, 2016

Omg

had to have been a flake, no way it succeeded :)

panic(err)
func (c *Template) EncodeNestedObjects(e runtime.Encoder) error {
for i := range c.Objects {
if err := extension.EncodeNestedRawExtension(runtime.UnstructuredJSONScheme, &c.Objects[i]); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

well this worked shockingly well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sometimes I get things right.

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 24, 2016
Has already been removed in the next rebase.
…sion generation

Currently it only skips if the fields don't match, but that leaves no
way for callers to say "no really, ignore this field".
Forces templates to round-trip to JSON, not any other serialization.
Force PATH on update-generated-protobuf

Run verify-generated-protobuf.sh during test-end-to-end

We don't assume docker elsewhere, so for now we'll put it in this step
and then move it later.
Handle more optional API fields
Allows conversions to be automatically generated, and the name is not
externally visible.
@smarterclayton
Copy link
Contributor Author

smarterclayton commented Jul 24, 2016 via email

@smarterclayton
Copy link
Contributor Author

[test] secret mount failure

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 92685ee

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6806/)

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Jul 25, 2016 via email

ExternalKubernetesClientConnectionOverrides *ClientConnectionOverrides
}

type ClientConnectionOverrides struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really like this being all or nothing and we have to live with this config forever.

@liggitt do you object too or am I just being ornery?

@deads2k
Copy link
Contributor

deads2k commented Jul 25, 2016

lgtm [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 25, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6806/) (Image: devenv-rhel7_4663)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 92685ee

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