Skip to content

Commit 143bd21

Browse files
authored
Delete docker-compose crossdock testing (#1368)
1 parent f51ecbe commit 143bd21

11 files changed

+10
-215
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ TAGS
1212

1313
encoding/thrift/thriftrw-plugin-yarpc/thriftrw-plugin-yarpc
1414
encoding/protobuf/protoc-gen-yarpc-go/protoc-gen-yarpc-go
15-
internal/crossdock/crossdock
1615
internal/examples/json-keyvalue/client/client
1716
internal/examples/json-keyvalue/server/server
1817
internal/examples/protobuf/protobuf

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/encoding/thrift/thriftrw-plugin-yarpc/thriftrw-plugin-yarpc
1414
/encoding/protobuf/protoc-gen-yarpc-go/protoc-gen-yarpc-go
15-
/internal/crossdock/crossdock
1615
/internal/examples/json-keyvalue/client/client
1716
/internal/examples/json-keyvalue/server/server
1817
/internal/examples/protobuf/protobuf

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ env:
66
matrix:
77
include:
88
- env: CI_TYPES='codecov'
9-
- env: CI_TYPES='crossdock'
109
- env: CI_TYPES='lint test examples' DOCKER_GO_VERSION=1.8
1110
- env: CI_TYPES='lint test examples' DOCKER_GO_VERSION=1.9
1211
script:

Dockerfile.crossdock

-12
This file was deleted.

Makefile

-12
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,13 @@ else
66
include etc/make/deps.mk
77
include etc/make/local.mk
88
endif
9-
include etc/make/crossdock.mk
109

1110
CI_TYPES ?= lint test examples
12-
ifneq ($(filter crossdock,$(CI_TYPES)),)
13-
CI_CROSSDOCK := true
14-
CI_TYPES := $(filter-out crossdock,$(CI_TYPES))
15-
endif
1611

1712
.DEFAULT_GOAL := ci
1813

1914
.PHONY: ci
2015
ci: __print_ci $(CI_TYPES) ## run continuous integration tasks
21-
ifdef CI_CROSSDOCK
22-
$(MAKE) crossdock-fresh || ($(MAKE) crossdock-logs && false)
23-
endif
2416

2517
.PHONY: help
2618
help: __print_info ## show this help message
@@ -43,9 +35,5 @@ endif
4335

4436
.PHONY: __print_ci
4537
__print_ci: __print_info
46-
ifdef CI_CROSSDOCK
47-
$(info CI_TYPES=$(CI_TYPES) crossdock)
48-
else
4938
$(info CI_TYPES=$(CI_TYPES))
50-
endif
5139
@echo

docker-compose.yml

-110
This file was deleted.

etc/make/base.mk

-44
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,6 @@ CACHE := $(CACHE_BASE)/$(UNAME_OS)/$(UNAME_ARCH)
1313
LIB := $(CACHE)/lib
1414
BIN = $(CACHE)/bin
1515

16-
DOCKER_COMPOSE_VERSION := 1.16.1
17-
DOCKER_COMPOSE_OS := $(UNAME_OS)
18-
DOCKER_COMPOSE_ARCH := $(UNAME_ARCH)
19-
20-
DOCKER_COMPOSE_LIB = $(LIB)/docker-compose-$(DOCKER_COMPOSE_VERSION)
21-
DOCKER_COMPOSE_BIN = $(DOCKER_COMPOSE_LIB)/docker-compose
22-
DOCKER_COMPOSE = $(BIN)/docker-compose
23-
24-
$(DOCKER_COMPOSE_BIN):
25-
@mkdir -p $(DOCKER_COMPOSE_LIB)
26-
curl -L "https://github.com/docker/compose/releases/download/$(DOCKER_COMPOSE_VERSION)/docker-compose-$(DOCKER_COMPOSE_OS)-$(DOCKER_COMPOSE_ARCH)" > $(DOCKER_COMPOSE_BIN)
27-
28-
$(DOCKER_COMPOSE): $(DOCKER_COMPOSE_BIN)
29-
@mkdir -p $(BIN)
30-
cp $(DOCKER_COMPOSE_BIN) $(DOCKER_COMPOSE)
31-
@chmod +x $(DOCKER_COMPOSE)
32-
33-
DOCKER_COMPOSE_RUN_FLAGS ?= -e V -e RUN -e EXAMPLES_JOBS -e PACKAGES -e WITHIN_DOCKER=1 -e TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST
34-
ifneq ($(TEST_TIME_SCALE),)
35-
DOCKER_COMPOSE_RUN_FLAGS += -e TEST_TIME_SCALE
36-
endif
37-
3816
.PHONY: clean
3917
clean: ## remove installed binaries and artifacts
4018
rm -rf $(CACHE_BASE)
41-
42-
.PHONY: compose-codecov
43-
compose-codecov: SHELL := /bin/bash
44-
compose-codecov: $(DOCKER_COMPOSE) ## run code coverage and upload to coveralls inside docker-compose
45-
$(DOCKER_COMPOSE) kill
46-
$(DOCKER_COMPOSE) rm --force
47-
$(DOCKER_COMPOSE) build gotest
48-
$(DOCKER_COMPOSE) run $(shell bash <(curl -s https://codecov.io/env)) $(DOCKER_COMPOSE_RUN_FLAGS) gotest make codecov
49-
50-
.PHONY: compose-cover
51-
compose-cover: $(DOCKER_COMPOSE) ## run all tests and output code coverage inside docker-compose
52-
$(DOCKER_COMPOSE) kill
53-
$(DOCKER_COMPOSE) rm --force
54-
$(DOCKER_COMPOSE) build gotest
55-
$(DOCKER_COMPOSE) run $(DOCKER_COMPOSE_RUN_FLAGS) gotest make cover
56-
57-
.PHONY: compose-test
58-
compose-test: $(DOCKER_COMPOSE) ## run all tests inside docker-compose
59-
$(DOCKER_COMPOSE) kill
60-
$(DOCKER_COMPOSE) rm --force
61-
$(DOCKER_COMPOSE) build gotest
62-
$(DOCKER_COMPOSE) run $(DOCKER_COMPOSE_RUN_FLAGS) gotest make test

etc/make/crossdock.mk

-19
This file was deleted.

etc/make/docker.mk

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ ifdef DOCKER_HOST
66
DOCKER_BUILD_FLAGS ?= --compress
77
endif
88

9-
DOCKER_RUN_FLAGS ?= $(DOCKER_COMPOSE_RUN_FLAGS)
9+
DOCKER_RUN_FLAGS ?= -e V -e RUN -e EXAMPLES_JOBS -e PACKAGES -e WITHIN_DOCKER=1 -e TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST
10+
ifneq ($(TEST_TIME_SCALE),)
11+
DOCKER_RUN_FLAGS += -e TEST_TIME_SCALE
12+
endif
1013
ifneq ($(DOCKER_CPUS),)
1114
DOCKER_RUN_FLAGS += --cpus=$(DOCKER_CPUS)
1215
endif

internal/crossdock/main.go renamed to internal/crossdock/crossdock.go

+5-13
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,11 @@
1818
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919
// THE SOFTWARE.
2020

21-
package main
21+
package crossdock
2222

2323
import (
24-
"github.com/opentracing/opentracing-go"
25-
jaeger "github.com/uber/jaeger-client-go"
26-
"go.uber.org/yarpc/internal/crossdock/client"
27-
"go.uber.org/yarpc/internal/crossdock/server"
24+
// this is to make sure etc/bin/cover.sh picks this up with .Deps
25+
_ "go.uber.org/yarpc/internal/crossdock/client"
26+
// this is to make sure etc/bin/cover.sh picks this up with .Deps
27+
_ "go.uber.org/yarpc/internal/crossdock/server"
2828
)
29-
30-
func main() {
31-
tracer, _ := jaeger.NewTracer("crossdock", jaeger.NewConstSampler(true), jaeger.NewNullReporter())
32-
opentracing.InitGlobalTracer(tracer)
33-
34-
server.Start()
35-
client.Start()
36-
}

internal/crossdock/main_test.go renamed to internal/crossdock/crossdock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919
// THE SOFTWARE.
2020

21-
package main
21+
package crossdock
2222

2323
import (
2424
"net/url"

0 commit comments

Comments
 (0)