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

2nd iteration of Gobindata + RepoRoot removals. #25584

Merged
merged 1 commit into from
Jul 29, 2016

Conversation

jayunit100
Copy link
Member

Part of my overall life mission to kill reporoot.

Fixes part of #24348

cc @kubernetes/sig-testing .

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels May 13, 2016
@jayunit100
Copy link
Member Author

this is untested locally, but this should pass e2e's.

@jayunit100 jayunit100 force-pushed the kill-repo-root-slb branch 2 times, most recently from 7435036 to f2d0eda Compare May 13, 2016 19:56
@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 13, 2016
@jayunit100 jayunit100 changed the title kill repo-root : test/e2e/serviceloadbalancers.go [wip] kill repo-root : test/e2e/serviceloadbalancers.go May 16, 2016
@jayunit100
Copy link
Member Author

@k8s-bot test this please issue #IGNORE

@k8s-github-robot k8s-github-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 16, 2016
@jayunit100 jayunit100 force-pushed the kill-repo-root-slb branch 2 times, most recently from 9719918 to 96e16de Compare May 16, 2016 18:42
@jayunit100
Copy link
Member Author

jayunit100 commented May 16, 2016

@timothysc @spiffxp @ixdy PTAL

@jayunit100 jayunit100 changed the title [wip] kill repo-root : test/e2e/serviceloadbalancers.go 2nd iteration of Gobindata + RepoRoot removals. May 16, 2016
@timothysc
Copy link
Member

timothysc commented May 16, 2016

It's still a command line option..? What else needs it?

@timothysc timothysc added this to the v1.3 milestone May 16, 2016
@timothysc timothysc added area/test priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels May 16, 2016
nodeSelectionRoot := filepath.Join(framework.TestContext.RepoRoot, "test/e2e/testing-manifests/node-selection")
testPodPath := filepath.Join(nodeSelectionRoot, "pod-with-node-affinity.yaml")
framework.RunKubectlOrDie("create", "-f", testPodPath, fmt.Sprintf("--namespace=%v", ns))
affinityPod := string(framework.ReadOrDie("test/e2e/node-selection/pod-with-node-affinity.yaml")[:])
Copy link
Member

@spiffxp spiffxp May 16, 2016

Choose a reason for hiding this comment

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

I'm guessing since this merged you'll want to change this back to testing-manifests? #25564

Copy link
Member Author

Choose a reason for hiding this comment

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

Agh I guess i should automate this whole damn thing to check parity

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@k8s-github-robot k8s-github-robot removed the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label May 17, 2016
@k8s-bot
Copy link

k8s-bot commented Jul 29, 2016

GCE e2e build/test passed for commit 6166083.

@@ -28,7 +28,16 @@ set -x

. $1

if [ "$INSTALL_GODEP" = true ] ; then
Copy link
Member

Choose a reason for hiding this comment

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

minor style nit: prefer [[ ]] format for conditionals and ${var} format

Copy link
Member

Choose a reason for hiding this comment

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

I'm also not sure where INSTALL_GODEP is set.

Copy link
Member Author

Choose a reason for hiding this comment

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

i think i took the need for this out a while ago when e2e-node was updated, i left the if in here just in case it was needed again. should i delete entirely ?

Copy link
Member Author

@jayunit100 jayunit100 Jul 30, 2016

Choose a reason for hiding this comment

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

i just went ahead and removed this whole step. the new e2e-node-jenkins doesnt need this on any machine, it used to require it for some reason iirc on my mac (or some other machine i ran this on?)...

Copy link
Member

Choose a reason for hiding this comment

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

Please do all this in a rule in a makefile, so humans can call as much or as little of the build process as they want.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit df0d582 into kubernetes:master Jul 29, 2016
make generated_files

# TODO converge build steps with hack/build-go some day if possible.
go generate test/e2e/framework/gobindata_util.go
Copy link
Member

Choose a reason for hiding this comment

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

do the node e2e tests even use any of the examples/ files? @pwittrock @timstclair

Copy link
Member Author

Choose a reason for hiding this comment

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

Framework compilation is required by node e2e

@ixdy
Copy link
Member

ixdy commented Jul 29, 2016

basically LG, and thanks for doing this, but please take a look at the few comments I left.

@jayunit100
Copy link
Member Author

@ixdy submit queue pushed it , I'll do a follow on pr tonite

k8s-github-robot pushed a commit that referenced this pull request Jul 30, 2016
Automatic merge from submit-queue

[minor] couple of quick cleanups for kill reporoot

quick fixes from last one,  cc @spxtr @ixdy follow on to  #25584
@deads2k deads2k mentioned this pull request Aug 2, 2016
@lavalamp
Copy link
Member

lavalamp commented Aug 2, 2016

@ixdy, somehow this passed all of our test jobs even though it has a bunch of unresolved merge conflicts in test-cmd.sh. Why did no presubmit catch this?

@ixdy
Copy link
Member

ixdy commented Aug 2, 2016

well, as far as git was concerned, they were resolved, I think.

@spxtr
Copy link
Contributor

spxtr commented Aug 2, 2016

It was a bad rebase. I'm not sure why test-cmd wasn't run before merging.

@jayunit100
Copy link
Member Author

interesting. i guess the entire test-cmd file was overwritten during that rebase.

is this conversation related to #17579 ? "ci hides test-cmd failures".

@ixdy
Copy link
Member

ixdy commented Aug 2, 2016

The reason that hack/test-cmd.sh was broken but CI didn't notice is that CI is now using hack/make-rules/test-cmd.sh (via make test-cmd) instead of hack/test-cmd.sh (as of #25978 merging).

This is obviously super confusing. @thockin were you planning to delete the hack/* versions of scripts, or at least put HUGE WARNINGS that folks should not be using them anymore?

@ixdy
Copy link
Member

ixdy commented Aug 2, 2016

... oh, that's what it does. ha. OK, nothing to see here.

@ixdy ixdy mentioned this pull request Aug 2, 2016
@ixdy
Copy link
Member

ixdy commented Aug 2, 2016

@jayunit100 do you remember if you had any real changes to hack/test-cmd.sh? I'm guessing not, since everything is still passing...

@jayunit100
Copy link
Member Author

Iirc no, but the pr is old and I've been working on other things. I'll be back in kubernetes land on the 15th

@@ -1213,8 +1211,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() {

By("Trying to launch a pod that with PodAffinity & PodAntiAffinity setting as embedded JSON string in the annotation value.")
labelPodName := "with-newlabels"
nodeSelectionRoot := filepath.Join(framework.TestContext.RepoRoot, "test/e2e/testing-manifests/node-selection")
testPodPath := filepath.Join(nodeSelectionRoot, "pod-with-pod-affinity.yaml")
testPodPath := string(framework.ReadOrDie("test/e2e/testing-manifests/node-selection/pos-with-node-affinity.yaml"))
Copy link
Member

@kevin-wangzefeng kevin-wangzefeng Aug 3, 2016

Choose a reason for hiding this comment

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

The change here is not correct, should not read the file content.

testPodPath := "test/e2e/testing-manifests/node-selection/pod-with-pod-affinity.yaml"

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually this also doesn't work, as such file doesn't exist (or something) and kubectl can't read gobindata (I think). The point is - it doesn't work as well. @jayunit100 - I'm going to spend half a day fixing this, is using gobindata really, really, really worth it? @thockin

Copy link
Member

Choose a reason for hiding this comment

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

I just sent a PR #30061 to change it back, feel free to close if you have better solution :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I was exaggerating, as I was annoyed by this problem and the fact that somehow gobindeps PR went in even though it broke the test completely. We really, really, really should make serial suite blocking, however painful it may be. @lavalamp @fejta

Copy link
Member

Choose a reason for hiding this comment

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

What was missing in the PR automation?

Copy link
Member

Choose a reason for hiding this comment

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

we don't run [Serial] tests per-PR.

k8s-github-robot pushed a commit that referenced this pull request Aug 3, 2016
…tes-affinity-tests

Automatic merge from submit-queue

fix creating pod from file failure in scheduler-predicates

fix #29816
ref #25584 (comment) and #25584 (comment)
k8s-github-robot pushed a commit that referenced this pull request Aug 4, 2016
Automatic merge from submit-queue

Install go-bindata in cross-build image

Another follow-up to #25584.

We need `go-bindata` to create `test/e2e/generated`, and downloading it with `go get` at build time is painful for a variety of reasons. We can just include it in the cross-build image and not worry about it, especially as it updates very infrequently.

This fixes `hack/update-generated-protobuf.sh` as well.

cc @jayunit100 @soltysh
@@ -0,0 +1,59 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

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

@thockin has done a bunch of work to get our Makefile doing stuff like this automatically. The Makefile's topological sort ensures that it is always done when necessary and (depending how fancy) not done when unnecessary.

I would strongly recommend that you produce either your own makefile for building the test job, or (probably better) add a rule in the main makefile.

@lavalamp
Copy link
Member

lavalamp commented Aug 4, 2016

@jayunit100 sorry I didn't realize this was merged already, but please take a look at the comments I just left, maybe you can fix in a followup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

None yet