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

Update Oxy, fix for #1199 #1278

Merged
merged 5 commits into from
Mar 15, 2017
Merged

Update Oxy, fix for #1199 #1278

merged 5 commits into from
Mar 15, 2017

Conversation

akanto
Copy link
Contributor

@akanto akanto commented Mar 13, 2017

No description provided.

@timoreimann
Copy link
Contributor

@akanto With glide, you must not change glide.lock manually.

Please set the new version in glide.yaml and run script/glide.sh update afterwards.

@emilevauge
Copy link
Member

I suggest to put this fix in v1.2 branch instead. @akanto could you also rebase your PR on v1.2 branch ?

@emilevauge emilevauge added this to the 1.2 milestone Mar 13, 2017
@akanto
Copy link
Contributor Author

akanto commented Mar 13, 2017

Maybe I am doing something wrong, but a lot of dependencies has been changed after I have executed the ./script/glide.sh update. What I did:

  • Updated the vulcand oxy hash in glide.yml
  • Executed ./script/glide.sh update

I have executed the ./script/glide.sh update command from a container built from build.Dockerfile (https://raw.githubusercontent.com/containous/traefik/master/build.Dockerfile).

@timoreimann
Copy link
Contributor

@akanto I think you did everything correct. The problem with glide is that it does not support updating individual packages only. It needs to update all unpinned dependencies, including transitive ones. The latter is what was updated mostly by your last push.

The build currently fails because glide pulled in an update of go-github, which has changed its API apparently. We'll have to adjust, which I can help you with.

What you should do first though in order to reduce merge conflict effort is to rebase your feature branch onto the v1.2 branch as suggested by @emilevauge. Please also make sure that you commit all changes to the vendor/ folder (i.e., what changes after you run script/glide.sh update) in a separate commit in order to keep the git history manageable and Github's review UI usable. (Unfortunately, Github does a fairly bad job at dealing with vendor changes reasonably, even medium-sized ones.)

Sorry for the inconvenience!

@timoreimann
Copy link
Contributor

timoreimann commented Mar 14, 2017

I have pushed a commit that should help adjust to go-github's API change and fix the build problem.

You may need to apply it again after you've rebased the branch.

@timoreimann
Copy link
Contributor

timoreimann commented Mar 14, 2017

Next one:

---> Making bundle: binary (in .)
vendor/golang.org/x/oauth2/google/default.go:20:2: cannot find package "google.golang.org/cloud/compute/metadata" in any of:
	/go/src/github.com/containous/traefik/vendor/google.golang.org/cloud/compute/metadata (vendor tree)
	/usr/local/go/src/google.golang.org/cloud/compute/metadata (from $GOROOT)
	/go/src/google.golang.org/cloud/compute/metadata (from $GOPATH)
make: *** [binary] Error 1

The package has probably moved.

Grrrrr...

@akanto
Copy link
Contributor Author

akanto commented Mar 14, 2017

Right, meantime I have rebased to 1.2 as requested, but there I run into several issues, since some deps are not pinned and not only the compile but even "glide up" failed.

What I am doing now:

  • updating the glide.yaml with new oxy hash
  • pinning those deps to glide.yaml that are causing problems

As I see there is no committed vendor dir in v.1.2, therefore I have kept it as it is.

@akanto akanto changed the base branch from master to v1.2 March 14, 2017 09:40
@akanto
Copy link
Contributor Author

akanto commented Mar 14, 2017

@timoreimann it seems that somehow the build is stuck or not triggered on travis and the last build is still this: https://travis-ci.org/containous/traefik/builds/210780787 , could you trigger the build on travis, please?

@emilevauge
Copy link
Member

emilevauge commented Mar 14, 2017

@akanto

could you trigger the build on travis, please?

We can't (travis bug sometime), could you push force again?

@emilevauge
Copy link
Member

Tests are failing, @akanto @timoreimann any idea why ?

@timoreimann
Copy link
Contributor

@emilevauge I'm not sure but I guess it's caused by an undesirable package update. :/

Let me try something...

@timoreimann
Copy link
Contributor

timoreimann commented Mar 15, 2017

I managed to update the oxy package only and leave everything else untouched. Tests and validation look good on my machine locally, let's see what Travis says.

Here's what I did:

  1. Revert the glide manifest and lock files to the revisions from the v1.2 branch.
  2. Use the github.com/multiplay/glide-pin plugin to pin all versions in the manifest file to the ones given in the lock file.
  3. Bump the commit hash of github.com/containous/oxy in the manifest file to the new version.
  4. Run script/glide.sh update to update the lock file.
  5. Undo the pinning.
  6. Use glide-hash to get the manifest file hash and put it in the lock file to please validate-glide.

Pro: This might actually work.
Con: This is all very, very awful and sad.

@emilevauge
Copy link
Member

@timoreimann

Use the github.com/multiplay/glide-pin plugin to pin all versions in the manifest file to the ones given in the lock file.

Looking at the modified glide.yaml does not show any new pinned packages 🤔

@timoreimann
Copy link
Contributor

@emilevauge yeah sorry, I forgot to mention that I undid the pinning again.

Added one point to my list.

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐸 😈

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.

5 participants