24fc6358d6
* Set starting slot and improve error gap capturing * Set starting slot and improve error gap capturing * Tests + Significant Refactor The code for historical processing has been significantly refactored to use a context to signify a shutdown. There have also been many tests added for historical and knownGaps processing. * Update MhKeys in test * Update correct values * Update Max Retry Genesis is not working as expected. * Ensure we release locks properly * Add ordered testing * Include system tests * Update workflow calls * Add secrets * Add required secrets * update path * Try using the absolute path * Remove volumes at the end. * Update system-tests.yml * Update system-tests.yml * Update test err * Update and test the shutdown * rename ethcl --> eth-beacon * Try forcing /bin/bash for docker-compose * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Use single quote cron * Dont run generic on schedule
110 lines
2.4 KiB
Makefile
110 lines
2.4 KiB
Makefile
BIN = $(GOPATH)/bin
|
|
BASE = $(GOPATH)/src/$(PACKAGE)
|
|
PKGS = go list ./... | grep -v "^vendor/"
|
|
|
|
# Tools
|
|
## Testing library
|
|
GINKGO = $(BIN)/ginkgo
|
|
$(BIN)/ginkgo:
|
|
go install github.com/onsi/ginkgo/ginkgo
|
|
|
|
|
|
.PHONY: installtools
|
|
installtools: | $(GINKGO)
|
|
echo "Installing tools"
|
|
|
|
.PHONY: test
|
|
test:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r
|
|
|
|
.PHONY: integration-test-ci
|
|
integration-test-ci:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter integration \
|
|
--procs=4 --compilers=4 \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--cover --coverprofile=cover.profile \
|
|
--race --trace --json-report=report.json
|
|
|
|
.PHONY: integration-test-ci-no-race
|
|
integration-test-ci-no-race:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter integration \
|
|
--procs=4 --compilers=4 \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--cover --coverprofile=cover.profile \
|
|
--trace --json-report=report.json
|
|
|
|
.PHONY: integration-test-local
|
|
integration-test-local:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter integration \
|
|
--procs=4 --compilers=4 \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--trace --race
|
|
|
|
.PHONY: integration-test-local-no-race
|
|
integration-test-local-no-race:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter integration \
|
|
--procs=4 --compilers=4 \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--trace
|
|
|
|
.PHONY: unit-test-local
|
|
unit-test-local:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter unit \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--trace
|
|
|
|
.PHONY: unit-test-ci
|
|
unit-test-ci:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter unit \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--cover --coverprofile=cover.profile \
|
|
--trace --json-report=report.json
|
|
|
|
.PHONY: system-test-ci
|
|
system-test-ci:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter system \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--cover --coverprofile=cover.profile \
|
|
--trace --json-report=report.json
|
|
|
|
.PHONY: system-test-local
|
|
system-test-local:
|
|
go vet ./...
|
|
go fmt ./...
|
|
$(GINKGO) -r --label-filter system \
|
|
--randomize-all --randomize-suites \
|
|
--fail-on-pending --keep-going \
|
|
--trace
|
|
|
|
.PHONY: build
|
|
build:
|
|
go fmt ./...
|
|
GO111MODULE=on go build
|
|
|
|
## Build docker image
|
|
.PHONY: docker-build
|
|
docker-build:
|
|
docker build -t vulcanize/ipld-eth-beacon-indexer .
|