Skip to content

Update docker integration tests to use golem - #1583

Merged
RichardScothern merged 2 commits into
distribution:masterfrom
dmcgowan:golem-integration-tests
Apr 5, 2016
Merged

RichardScothern merged 2 commits into
distribution:masterfrom
dmcgowan:golem-integration-tests

Conversation

@dmcgowan

Copy link
Copy Markdown
Collaborator

Use registry example from golem repository.
Use the golem test runner for the docker integration environment

@dmcgowan
dmcgowan force-pushed the golem-integration-tests branch 5 times, most recently from 9fbd701 to 3449065 Compare March 31, 2016 01:15
@codecov-io

Copy link
Copy Markdown

Current coverage is 51.25%

Merging #1583 into master will decrease coverage by -6.64% as of 2ea61dc

@@            master   #1583   diff @@
======================================
  Files          122     122       
  Stmts        10659   10637    -22
  Branches       840     746    -94
  Methods          0       0       
======================================
- Hit           6171    5452   -719
+ Partial        840     746    -94
- Missed        3648    4439   +791

Review entire Coverage Diff as of 2ea61dc


Uncovered Suggestions

  1. +0.30% via .../driver/s3-aws/s3.go#730...761
  2. +0.28% via .../driver/s3-aws/s3.go#266...295
  3. +0.22% via .../driver/s3-aws/s3.go#882...904
  4. See 7 more...

Powered by Codecov. Updated on successful CI builds.

Comment thread Makefile Outdated
fmt:
@echo "+ $@"
@test -z "$$(gofmt -s -l . 2>&1 | grep -v ^vendor/ | tee /dev/stderr)" || \
@test -z "$$(gofmt -s -l . 2>&1 | grep -v ^vendor/ | grep -v /vendor/ | tee /dev/stderr)" || \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

isn't it contrib you want here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I was originally thinking that, but there is no reason we cannot enforce go files in contrib, we just want to ignore anything that has "/vendor/" in its path, I could try and include that into a single regexp, not sure if it would look like something like grep -v "(^|/)vendor/"

@aaronlehmann

Copy link
Copy Markdown

Is the idea that the distribution-specific tests and fixtures will move out of the golem repository into distribution? Makes sense, but if that's not the plan, I would prefer that CI check out golem to get these files so they are not duplicated.

@dmp42

dmp42 commented Mar 31, 2016

Copy link
Copy Markdown
Contributor

I guess my main feedback (from a very quick look :)) is: do we have to "vendor" all that? Or can we rely on a prebuilt malevolent image instead of having all the code here?

@aaronlehmann

Copy link
Copy Markdown

I was just looking at the vendoring. We should at least remove malevolent/vendor/github.com/docker/distribution :).

@dmp42

dmp42 commented Mar 31, 2016

Copy link
Copy Markdown
Contributor

@aaronlehmann I guess we are poking the same issue here :)

@aaronlehmann

Copy link
Copy Markdown

No need to revendor logrus either.

@dmcgowan

Copy link
Copy Markdown
Collaborator Author

I am not opposed to splitting out malevolent, my feeling though when I originally wrote it is that it was highly specific to the tests. I agree it does bring in a lot of "cruft" by having another vendor directory, but I am not convinced that should not be allowed.

@dmcgowan
dmcgowan force-pushed the golem-integration-tests branch from 3449065 to 9f7f84a Compare March 31, 2016 22:09
@aaronlehmann

Copy link
Copy Markdown

Can we remove hello-golem and the hello binary? This might make sense for upstream golem, but I don't think it's applicable to the distribution tests. Also, I would like to avoid checking in binary executables if at all possible.

@dmcgowan

dmcgowan commented Apr 5, 2016

Copy link
Copy Markdown
Collaborator Author

@aaronlehmann yes we can remove it. These are only used for the v1 tests which don't need to be part of the distribution tests, it will also decrease startup time so it was already on the chopping block.

dmcgowan added 2 commits April 4, 2016 19:57
Use registry example from golem repository.
Use the golem test runner for the docker integration environment

Signed-off-by: Derek McGowan <[email protected]> (github: dmcgowan)
Signed-off-by: Derek McGowan <[email protected]> (github: dmcgowan)
@dmcgowan
dmcgowan force-pushed the golem-integration-tests branch from 9f7f84a to 2ea61dc Compare April 5, 2016 02:58
@dmcgowan

dmcgowan commented Apr 5, 2016

Copy link
Copy Markdown
Collaborator Author

Removed v1 tests (we can re-add something similar in the future if we have useful test cases). No more binaries.

@aaronlehmann

Copy link
Copy Markdown

LGTM

@RichardScothern

Copy link
Copy Markdown

Could you add a HOWTO or some documentation explaining golem in the /docs dir? ❤️

@dmcgowan

dmcgowan commented Apr 5, 2016

Copy link
Copy Markdown
Collaborator Author

@RichardScothern I will in a follow up PR, you have my word

@RichardScothern

Copy link
Copy Markdown

You have my blessing, child 🙏

@RichardScothern
RichardScothern merged commit 27e0be3 into distribution:master Apr 5, 2016
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.

6 participants