Repository navigation
Run serialization tests against upstream types and update v1beta3 - #5485
Conversation
|
[test] |
There was a problem hiding this comment.
Given the way that UPSTREAM likes to test by re-running the whole bucket with a different version, I don't think we'll be able to get the structure of this changed moved up.
What about updating the serialization_test.go in our pkg/api to not exclude kube types?
There was a problem hiding this comment.
What about updating the serialization_test.go in our pkg/api to not exclude kube types?
I think this is plausible. Will try it.
|
Btw, I see that all TypeMeta in v1beta3 need to be updated to unversioned.TypeMeta:) |
There was a problem hiding this comment.
Sorry, this isn't obvious to me. These are somehow broken? Also, anything that needs to stay in sync should have a unit test to make sure it stays in sync.
There was a problem hiding this comment.
It isn't obvious to me either, so I located the PRs which added those upstream:
PodAttachOptions: kubernetes/kubernetes#12119
PodExecOptions: kubernetes/kubernetes#6869
ListOptions: kubernetes/kubernetes#5763
List: kubernetes/kubernetes#2786
@smarterclayton may have a word here
There was a problem hiding this comment.
Should we have test for each of these in compatibility_test.go?
|
I have removed Status which now is an unversioned object and added PodAttachOptions to v1beta3. Objects that still need to be updated in v1beta3:
Based on the massive error returned from the serialization test. We need to make it more readable. |
|
Have boiled down serialization failures to Pods |
There was a problem hiding this comment.
why is this needed? if the pkg path does equal "k8s.io/kubernetes/pkg/api", the first condition would already skip it...
There was a problem hiding this comment.
This is AND not OR...
There was a problem hiding this comment.
ah. Can we update the name of this test if the intent is to test serialized k8s types?
There was a problem hiding this comment.
I like the present name. How about adding godoc?
On Fri, Oct 30, 2015 at 3:10 PM, Jordan Liggitt [email protected]
wrote:
In pkg/api/serialization_test.go
#5485 (comment):func TestTypes(t *testing.T) {
for kind, reflectType := range api.Scheme.KnownTypes("") {
if !strings.Contains(reflectType.PkgPath(), "/origin/") {if !strings.Contains(reflectType.PkgPath(), "/origin/") && reflectType.PkgPath() != "k8s.io/kubernetes/pkg/api" {ah. Can we update the name of this test if the intent is to test
serialized k8s types?—
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/5485/files#r43505303.
There was a problem hiding this comment.
nevermind, I apparently can't interpret boolean statements today
|
can we get a hand crafted test specifically around pod spec in |
|
I finally got a clean run locally |
|
I think I'm willing to take an issue to figure out this: https://github.com/openshift/origin/pull/5485/files#diff-394377845c8dfd9eec363c059cdde354R420, squash the |
Opened #5529 |
|
@deads2k I have one comment on the conversion, LGTM otherwise. |
|
re[test] |
|
new-app flake [test] again |
|
Evaluated for origin test up to 308f910 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6466/) |
|
lgtm [merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3867/) (Image: devenv-rhel7_2607) |
|
Evaluated for origin merge up to 308f910 |
Merged by openshift-bot
|
Also LGTM, thanks for the clarification on the conversion. |
Fixes #5483
@deads2k @pmorie @smarterclayton @pweil-