-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
switch to glide #17391
switch to glide #17391
Conversation
ef18ff0
to
0e3c8e2
Compare
@liggitt alright, this builds locally for me and it creates symlinks for the staging folders when you do |
running that left a diff in my working dir... that expected?
|
hack/update-deps.sh
Outdated
for pkg in vendor/k8s.io/kubernetes/staging/src/k8s.io/*; do | ||
dir=$(basename $pkg) | ||
unlink vendor/k8s.io/$dir || true | ||
rm -rf vendor/k8s.io/$dir || true |
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.
@deads2k will this leave the deps broken when the glide below fails?
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.
@deads2k will this leave the deps broken when the glide below fails?
Yeah. We'll call that something to iterate on.
- package: k8s.io/kubernetes | ||
repo: git@github.com:openshift/kubernetes | ||
version: release-1.8.1 | ||
# only used by pkg/build/builder |
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 thought pkg/build/builder is excluded?
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 thought pkg/build/builder is excluded?
they have an incomplete vendor folder. Go them. Another thing to fix up post-this.
version: a8ee86b1cce0c13bd541a99140682a92635ba9f7 | ||
- package: github.com/containers/image | ||
repo: git@github.com:openshift/containers-image | ||
version: openshift-3.8 |
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.
so does this mean that if I want to bump this I will have to bump the fork branch and then re-run update-deps ?
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.
so does this mean that if I want to bump this I will have to bump the fork branch and then re-run update-deps ?
Yeah. Or you can find the person who made that ridiculous carry and make them fix it.
I ended up with same diff as @liggitt but it seems like a progress! :) UPDATE: The diff is not the same, I don't see changes in |
@deads2k @liggitt this fixed the appengine diff: deads2k@e9ee6ff |
hack/update-deps.sh
Outdated
|
||
source "$(dirname "${BASH_SOURCE}")/lib/init.sh" | ||
|
||
# fail early if any of the staging dirs is checked out |
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.
why do we care about this in update script?
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.
symlinks
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.
how is GOPATH relevant to symlinks which are in vendor folder? vendor takes precedence
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.
how is GOPATH relevant to symlinks which are in vendor folder? vendor takes precedence
We symlink into vendor. This is pre-existing and it looks correct to me.
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.
to me it seems unrelated to the task. If the bellow lines are not affected by stuff present in GOPATH why does it check for whats there? If this is preexisting, that's likely because of Godeps specifics when it worked with your GOPATH. Can't see any relations to glide.
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 used to have hard to debug re-vendoring errors where the GOPATH version was picked up and the result differed depending on the developer's GOPATH. This was added as a sanity check to avoid this situation.
hack/update-deps.sh
Outdated
# "github.com/jteeuwen/go-bindata/go-bindata" | ||
#) | ||
|
||
# remove symlinks for glide update |
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.
glide switches vendor/ and tmp/vendor/ as far as I recall so this shouldn't be needed or am I wrong?
dir=$(basename $pkg) | ||
rm -rf vendor/k8s.io/$dir | ||
ln -s kubernetes/staging/src/k8s.io/$dir vendor/k8s.io/$dir | ||
done |
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.
\n
for pkg in vendor/k8s.io/kubernetes/staging/src/k8s.io/*; do | ||
dir=$(basename $pkg) | ||
rm -rf vendor/k8s.io/$dir | ||
ln -s kubernetes/staging/src/k8s.io/$dir vendor/k8s.io/$dir |
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 ln
can do this in one step, it was something like ln -sfn
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 ln can do this in one step, it was something like ln -sfn
tried, does not work
repo: git@github.com:openshift/containers-image | ||
version: openshift-3.8 | ||
- package: github.com/vjeantet/ldapserver | ||
version: v1.0 |
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.
\n
+100 for switching to glide. Since I have been there I don't think the symlinking can ever work properly. The issue is that glide has to resolve all the dependencies in The appropriate staging repo commits for kubernetes commit
|
The only worrying thing for me is the huge diff here, but I assume it's godep vs glide thing, I'll be looking more into it after tomorrow. |
@soltysh the diff is due to appengine version in pkg/build/builder I have commit that pin the version to the sha256 used in our level, so we should be fine? |
Actually yes. I didn't explicitly pin levels. We'll have to decide whether we're really going to pin everything, whether we'll try to find branches, whether we'll try to match kube (which I think happens by inspection of their godep.json), or whether we'll try to stay current when possible. Pinning levels is heavy, but possible if we want to. I did go ahead and pin that one. |
5d1f6de
to
386e904
Compare
33dccde
to
02dcece
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, mfojtik The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
# Some things we want in godeps aren't code dependencies, so ./... | ||
# won't pick them up. | ||
# TODO seems like this should be failing something somewhere | ||
#REQUIRED_BINS=( |
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.
rm -rf vendor/k8s.io/code-generator &&
git clone --branch master git@github.com:kubernetes/code-generator.git vendor/k8s.io/code-generator &&
pushd vendor/k8s.io/code-generator &>/dev/null &&
git checkout <SHA> &&
rm -rf .git &&
popd >/dev/null
@@ -152,7 +152,7 @@ func TestCRDShadowGroup(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestCRD(t *testing.T) { | |||
func ETestCRD(t *testing.T) { |
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.
?
Disables a test (when I thought I had one to two) without making a large diff to deal with. I think its a lack of entropy creating new certs problem.
/retest |
1 similar comment
/retest |
Automatic merge from submit-queue. |
@deads2k: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
No description provided.