-
Notifications
You must be signed in to change notification settings - Fork 39k
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
2nd iteration of Gobindata + RepoRoot removals. #25584
Conversation
this is untested locally, but this should pass e2e's. |
7435036
to
f2d0eda
Compare
@k8s-bot test this please issue #IGNORE |
f2d0eda
to
8d1cc0b
Compare
9719918
to
96e16de
Compare
@timothysc @spiffxp @ixdy PTAL |
It's still a command line option..? What else needs it? |
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")[:]) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
96e16de
to
4e54e08
Compare
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. |
GCE e2e build/test passed for commit 6166083. |
@@ -28,7 +28,16 @@ set -x | |||
|
|||
. $1 | |||
|
|||
if [ "$INSTALL_GODEP" = true ] ; then |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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?)...
There was a problem hiding this comment.
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.
Automatic merge from submit-queue |
make generated_files | ||
|
||
# TODO converge build steps with hack/build-go some day if possible. | ||
go generate test/e2e/framework/gobindata_util.go |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
basically LG, and thanks for doing this, but please take a look at the few comments I left. |
@ixdy submit queue pushed it , I'll do a follow on pr tonite |
@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? |
well, as far as git was concerned, they were resolved, I think. |
It was a bad rebase. I'm not sure why test-cmd wasn't run before merging. |
interesting. i guess the entire test-cmd file was overwritten during that rebase. is this conversation related to #17579 ? "ci hides test-cmd failures". |
The reason that 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? |
... oh, that's what it does. ha. OK, nothing to see here. |
@jayunit100 do you remember if you had any real changes to |
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")) |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
…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)
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 |
There was a problem hiding this comment.
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.
@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. |
Part of my overall life mission to kill reporoot.
Fixes part of #24348
cc @kubernetes/sig-testing .