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

Dockerfile-test: add test image with Go 1.9 #8512

Merged
merged 1 commit into from
Sep 7, 2017
Merged

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Sep 7, 2017

While Semaphore CI does not support Go 1.9 yet, we can do:

docker build --tag etcd-test --file ./Dockerfile-test .
# Or serve this image in registry

docker run \
  --volume=`pwd`:/go/src/github.com/coreos/etcd \
  etcd-test \
  /bin/sh -c "RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional' ./test 2>&1 | tee test.log"

To test #8511.


ADD ./scripts/install-marker.sh ./scripts/install-marker.sh

RUN go get -v -u -tags spell github.com/chzchzchz/goword \
Copy link
Contributor

Choose a reason for hiding this comment

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

go get github.com/wadey/gocovmerge so this container can run coverage reports?

Dockerfile-test Outdated
&& go get -v -u honnef.co/go/tools/cmd/gosimple \
&& go get -v -u honnef.co/go/tools/cmd/unused \
&& go get -v -u honnef.co/go/tools/cmd/staticcheck \
&& ./scripts/install-marker.sh amd64
Copy link
Contributor

Choose a reason for hiding this comment

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

comment about how to run?

Not to be blocked on Go 1.9 migration by CIs
(e.g. Semaphore CI not supporting Go 1.9).

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
@gyuho
Copy link
Contributor Author

gyuho commented Sep 7, 2017

@heyitsanthony PTAL. Will update the semaphore commands once merged. Thanks.

Copy link
Contributor

@heyitsanthony heyitsanthony left a comment

Choose a reason for hiding this comment

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

lgtm, but will semaphore try to rebuild the docker container on every run? it might be too slow in that case

@gyuho
Copy link
Contributor Author

gyuho commented Sep 7, 2017

@heyitsanthony I will host public image on gcr.io.

@gyuho gyuho merged commit ff31fb4 into etcd-io:master Sep 7, 2017
@gyuho gyuho deleted the docker branch September 7, 2017 20:33
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@9c3474e). Click here to learn what that means.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #8512   +/-   ##
=========================================
  Coverage          ?   65.94%           
=========================================
  Files             ?      360           
  Lines             ?    29515           
  Branches          ?        0           
=========================================
  Hits              ?    19463           
  Misses            ?     8384           
  Partials          ?     1668
Impacted Files Coverage Δ
lease/lessor.go 83.33% <84.61%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c3474e...a44e114. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants