Skip to content

kube rebase - #6947

Merged
openshift-bot merged 45 commits into
openshift:masterfrom
deads2k:rebase
Feb 5, 2016
Merged

openshift-bot merged 45 commits into
openshift:masterfrom
deads2k:rebase

Conversation

@deads2k

@deads2k deads2k commented Feb 1, 2016

Copy link
Copy Markdown
Contributor

Code compiles and the master can start, but there are severe problems because of behavioral changes with encoding/decoding, RESTMappings for types, API Group registration, and API Server implementation changes. In addition, we're pulling in a new etcd client which is incompatible with our old one, so that will need some work too.

I've called out interesting and dangerous pieces.

This is currently broken because runtime.RawExtension no longer gets converted and encoded during encoding. Well, it looks like templates are now hosed because of this problem.

  • compile
  • test-go
  • test-integration
  • test-cmd
  • test-end-to-end

@deads2k

deads2k commented Feb 1, 2016

Copy link
Copy Markdown
Contributor Author

@soltysh @liggitt @pweil- if you want to start looking.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 1, 2016
@deads2k

deads2k commented Feb 2, 2016

Copy link
Copy Markdown
Contributor Author

@smarterclayton please vet IMPORTANT: runtime.Object conversion method that works-ish for now, particularly the comment. I'm pretty sure this is solvable in a predictable and controllable way that would make these changes less painful.

@deads2k
deads2k force-pushed the rebase branch 2 times, most recently from 35ef3c6 to 794556a Compare February 2, 2016 13:31
@deads2k

deads2k commented Feb 2, 2016

Copy link
Copy Markdown
Contributor Author

@bparees @csrwng take a look at IMPORTANT: template encoding no longer applies conversions on contents. Template conversion and encoding no longer ripples down into the contained objects. This means that everywhere that is building a template in our codebase needs to be updated. I've added a helper to perform the "default" sort of conversion that we're doing now.

I'll update the scheme to build a full list of all available GroupVersions to make this a little easier as I go on, but this is a significant change.

@soltysh

soltysh commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

You can safely remove all Copyright 2015 The Kubernetes from all the places we have this, a few introduced in your rebase, rest are old timers.

@deads2k

deads2k commented Feb 2, 2016

Copy link
Copy Markdown
Contributor Author

@Kargakis see I hate generators so much. They should die.

@soltysh

soltysh commented Feb 3, 2016

Copy link
Copy Markdown
Contributor

There's one slight problem with k8s bump here, it's using 9da202e242d8ceedb549332fb31bf1a933a6c6b6 which is the id of last UPSTREAM commit, but not the actual k8s we're basing off. I'd rather this point to actual base k8s commit, imho.

@deads2k

deads2k commented Feb 3, 2016

Copy link
Copy Markdown
Contributor Author

@smarterclayton @miminar Can you help with hack/test-integration.sh TestV2RegistryGetTags? I don't know enough about what's happen in that test to quickly diagnose it.

@deads2k

deads2k commented Feb 3, 2016

Copy link
Copy Markdown
Contributor Author

rebased for easier review.

  1. boring will be squashed down, but its separated by category if you want to look through it
  2. important should be reviewed. These are important to have as history for blame. Behavior changes in these.
  3. interesting should be reviewed. These are worth looking at, but I'll squash them all in before I merge.
  4. DANGER. This scared me. I've left a lot of cruft in place around them in case I have to revert.

@deads2k
deads2k force-pushed the rebase branch 2 times, most recently from f2713b2 to 8cbeb10 Compare February 3, 2016 20:35
@deads2k

deads2k commented Feb 3, 2016

Copy link
Copy Markdown
Contributor Author

@soltysh I did not make much progress on the unit tests, but I did successfully make the fuzzer pass.

Need to make sure that @liggitt is ok with "INTERESTING: eliminate v1beta3 round trip", but I'm not seeing what it buys us except more work. We need to make sure that v1beta3 can come into internal, but we don't care about the other direction. Fuzzing doesn't help, because our problem isn't transfering fields, its having a valid object afterwards.

@0xmichalis

Copy link
Copy Markdown
Contributor

Need to make sure that @liggitt is ok with "INTERESTING: eliminate v1beta3 round trip", but I'm not seeing what it buys us except more work. We need to make sure that v1beta3 can come into internal, but we don't care about the other direction. Fuzzing doesn't help, because our problem isn't transfering fields, its having a valid object afterwards.

Then why not run validation after fuzzing? We would need fuzzing to specify valid values in the first place, right?

@deads2k

deads2k commented Feb 4, 2016

Copy link
Copy Markdown
Contributor Author

Then why not run validation after fuzzing? We would need fuzzing to specify valid values in the first place, right?

Correct. That's not impossible, but it is substantial work.

@deads2k
deads2k force-pushed the rebase branch 3 times, most recently from 626d451 to 22b2b33 Compare February 4, 2016 20:15
@deads2k

deads2k commented Feb 4, 2016

Copy link
Copy Markdown
Contributor Author

All tests pass! Picking up all recent UPSTREAM commits, updating the fork, updating the bump, rebasing on master, and then we're good.

@deads2k deads2k changed the title [WIP] kube rebase kube rebase Feb 4, 2016
@soltysh

soltysh commented Feb 4, 2016

Copy link
Copy Markdown
Contributor

Yay!!! Friday is perfect for reviews :-)
On Feb 4, 2016 9:20 PM, "David Eads" [email protected] wrote:

All tests pass! Picking up all recent UPSTREAM commits, updating the fork,
updating the bump, rebasing on master, and then we're good.

—
Reply to this email directly or view it on GitHub
#6947 (comment).

@deads2k

deads2k commented Feb 4, 2016

Copy link
Copy Markdown
Contributor Author

Rebased. I expect some tests to fail, I'll fix them in the morning.

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 4, 2016
@deads2k

deads2k commented Feb 4, 2016

Copy link
Copy Markdown
Contributor Author

@danmcp did I anger travis?

@deads2k

deads2k commented Feb 5, 2016

Copy link
Copy Markdown
Contributor Author

rebased again.

@deads2k

deads2k commented Feb 5, 2016

Copy link
Copy Markdown
Contributor Author

re[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 28c5502

@liggitt

liggitt commented Feb 5, 2016

Copy link
Copy Markdown
Contributor

one test failed with

SUCCESS after 0.407s: hack/../test/cmd/templates.sh:71: executing 'oc get pod/template-type-precision -o json' expecting success and text 'patch comment'
Running hack/../test/cmd/templates.sh:72: executing 'oc delete template/template-type-precision' expecting success...
SUCCESS after 0.471s: hack/../test/cmd/templates.sh:72: executing 'oc delete template/template-type-precision' expecting success
Running hack/../test/cmd/templates.sh:73: executing 'oc delete pod/template-type-precision' expecting success...
FAILURE after 0.463s: hack/../test/cmd/templates.sh:73: executing 'oc delete pod/template-type-precision' expecting success: the command returned the wrong error code
There was no output from the command.
Standard error from the command:
Error from server: pods "template-type-precision" not found

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 28c5502

@smarterclayton

Copy link
Copy Markdown
Contributor

I can't recreate it locally on my machine.

@smarterclayton

Copy link
Copy Markdown
Contributor

With Go 1.5 that is

@liggitt

liggitt commented Feb 5, 2016

Copy link
Copy Markdown
Contributor

it was a flake... the other test run got past that point

@smarterclayton

Copy link
Copy Markdown
Contributor

Trying to recreate it locally.

On Fri, Feb 5, 2016 at 5:17 PM, Jordan Liggitt [email protected]
wrote:

it was a flake... the other test run got past that point

—
Reply to this email directly or view it on GitHub
#6947 (comment).

@smarterclayton

Copy link
Copy Markdown
Contributor

Because I don't know how in the world that can flake

On Fri, Feb 5, 2016 at 5:23 PM, Clayton Coleman [email protected] wrote:

Trying to recreate it locally.

On Fri, Feb 5, 2016 at 5:17 PM, Jordan Liggitt [email protected]
wrote:

it was a flake... the other test run got past that point

—
Reply to this email directly or view it on GitHub
#6947 (comment).

@openshift-bot

Copy link
Copy Markdown
Contributor

@smarterclayton

Copy link
Copy Markdown
Contributor

Definitely cosmic races (like cosmic rays but faster) - ran templates.sh
and unit tests in parallel for 30 minutes on both go 1.4 and go 1.5 and
didn't see it.

On Fri, Feb 5, 2016 at 5:35 PM, OpenShift Bot [email protected]
wrote:

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

—
Reply to this email directly or view it on GitHub
#6947 (comment).

@@ -24,8 +24,10 @@ import (
"strings"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can I drop this in 1.4?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can I drop this in 1.4?

No. You'll still need to have oapi function. We're carrying this until those types not longer need registration.

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.

8 participants