-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fixSparkTemplate
- Loading branch information
Showing
110 changed files
with
3,724 additions
and
24,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,13 +54,14 @@ jobs: | |
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{ steps.image-tag.outputs.DOCKER_IMAGE_TAG }} | ||
outputs: | ||
DOCKER_IMAGE_TAG: ${{ steps.image-tag.outputs.DOCKER_IMAGE_TAG }} | ||
integration-test-python: | ||
integration-test-python-and-go: | ||
needs: build-lambda-docker-image | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.7, 3.8, 3.9 ] | ||
go-version: [ 1.17.0 ] | ||
os: [ ubuntu-latest ] | ||
env: | ||
OS: ${{ matrix.os }} | ||
|
@@ -73,6 +74,11 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Setup Go | ||
id: setup-go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
|
@@ -113,13 +119,12 @@ jobs: | |
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: ${{ matrix.redis-version }} | ||
redis-port: 12345 | ||
- name: Setup Redis Cluster | ||
run: | | ||
docker pull vishnunair/docker-redis-cluster:latest | ||
docker run -d -p 6001:6379 -p 6002:6380 -p 6003:6381 -p 6004:6382 -p 6005:6383 -p 6006:6384 --name redis-cluster vishnunair/docker-redis-cluster | ||
- name: Test python | ||
- name: Test python and go | ||
env: | ||
FEAST_SERVER_DOCKER_IMAGE_TAG: ${{ needs.build-lambda-docker-image.outputs.DOCKER_IMAGE_TAG }} | ||
FEAST_USAGE: "False" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,4 +74,3 @@ module.exports = { | |
}], | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,6 @@ | |
|
||
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
MVN := mvn -f java/pom.xml ${MAVEN_EXTRA_OPTS} | ||
PROTO_TYPE_SUBDIRS = core serving types storage | ||
PROTO_SERVICE_SUBDIRS = core serving | ||
OS := linux | ||
ifeq ($(shell uname -s), Darwin) | ||
OS = osx | ||
|
@@ -35,13 +33,11 @@ protos: compile-protos-go compile-protos-python compile-protos-docs | |
|
||
build: protos build-java build-docker build-html | ||
|
||
install-ci-dependencies: install-python-ci-dependencies install-java-ci-dependencies install-go-ci-dependencies | ||
|
||
# Python SDK | ||
|
||
install-python-ci-dependencies: | ||
install-python-ci-dependencies: install-go-ci-dependencies | ||
cd sdk/python && python -m piptools sync requirements/py$(PYTHON)-ci-requirements.txt | ||
cd sdk/python && python setup.py develop | ||
cd sdk/python && COMPILE_GO=true python setup.py develop | ||
|
||
lock-python-ci-dependencies: | ||
cd sdk/python && python -m piptools compile -U --extra ci --output-file requirements/py$(PYTHON)-ci-requirements.txt | ||
|
@@ -50,8 +46,7 @@ package-protos: | |
cp -r ${ROOT_DIR}/protos ${ROOT_DIR}/sdk/python/feast/protos | ||
|
||
compile-protos-python: | ||
@$(foreach dir,$(PROTO_TYPE_SUBDIRS),cd ${ROOT_DIR}/protos; python -m grpc_tools.protoc -I. --grpc_python_out=../sdk/python/feast/protos/ --python_out=../sdk/python/feast/protos/ --mypy_out=../sdk/python/feast/protos/ feast/$(dir)/*.proto;) | ||
@$(foreach dir,$(PROTO_TYPE_SUBDIRS),grep -rli 'from feast.$(dir)' sdk/python/feast/protos | xargs -I@ sed -i.bak 's/from feast.$(dir)/from feast.protos.feast.$(dir)/g' @;) | ||
python setup.py build_python_protos | ||
|
||
install-python: | ||
cd sdk/python && python -m piptools sync requirements/py$(PYTHON)-requirements.txt | ||
|
@@ -81,6 +76,14 @@ test-python-universal-local: | |
test-python-universal: | ||
FEAST_USAGE=False IS_TEST=True python -m pytest -n 8 --integration --universal sdk/python/tests | ||
|
||
test-python-go-server: | ||
go build -o ${ROOT_DIR}/sdk/python/feast/binaries/goserver github.com/feast-dev/feast/go/cmd/goserver | ||
FEAST_USAGE=False IS_TEST=True python -m pytest -n 8 --integration --goserver sdk/python/tests | ||
|
||
test-python-go-server-lifecycle: | ||
go build -o ${ROOT_DIR}/sdk/python/feast/binaries/goserver github.com/feast-dev/feast/go/cmd/goserver | ||
FEAST_USAGE=False IS_TEST=True python -m pytest -n 8 --integration --goserverlifecycle sdk/python/tests | ||
|
||
format-python: | ||
# Sort | ||
cd ${ROOT_DIR}/sdk/python; python -m isort feast/ tests/ | ||
|
@@ -123,20 +126,25 @@ build-java-no-tests: | |
# Go SDK | ||
|
||
install-go-ci-dependencies: | ||
go get -u github.com/golang/protobuf/protoc-gen-go | ||
go get -u golang.org/x/lint/golint | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
|
||
compile-protos-go: install-go-ci-dependencies | ||
pip install grpcio-tools==1.34.0 | ||
python sdk/python/setup.py build_go_protos | ||
|
||
compile-protos-go: | ||
$(foreach dir,types serving core storage,cd ${ROOT_DIR}/protos; protoc -I/usr/local/include -I. --go_out=plugins=grpc,paths=source_relative:../sdk/go/protos feast/$(dir)/*.proto;) | ||
compile-go-feature-server: compile-protos-go | ||
go mod tidy | ||
go build -o ${ROOT_DIR}/sdk/python/feast/binaries/goserver github.com/feast-dev/feast/go/cmd/goserver | ||
|
||
test-go: | ||
cd ${ROOT_DIR}/sdk/go; go test ./... | ||
test-go: install-go-ci-dependencies | ||
go test ./... | ||
|
||
format-go: | ||
cd ${ROOT_DIR}/sdk/go; gofmt -s -w *.go | ||
gofmt -s -w go/ | ||
|
||
lint-go: | ||
cd ${ROOT_DIR}/sdk/go; go vet | ||
lint-go: compile-protos-go | ||
go vet ./go/internal/feast ./go/cmd/goserver | ||
|
||
# Docker | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,29 @@ | ||
module github.com/feast-dev/feast | ||
|
||
go 1.17 | ||
|
||
require ( | ||
github.com/Masterminds/goutils v1.1.0 // indirect | ||
github.com/Masterminds/semver v1.5.0 // indirect | ||
github.com/Masterminds/sprig v2.22.0+incompatible // indirect | ||
github.com/feast-dev/feast/sdk/go v0.0.0-20200516052424-09ff3dda724c // indirect | ||
github.com/ghodss/yaml v1.0.0 | ||
github.com/gogo/protobuf v1.3.1 // indirect | ||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect | ||
github.com/golang/mock v1.2.0 | ||
github.com/go-redis/redis/v8 v8.11.4 | ||
github.com/golang/protobuf v1.5.2 | ||
github.com/google/go-cmp v0.5.5 | ||
github.com/huandu/xstrings v1.2.0 // indirect | ||
github.com/lyft/protoc-gen-validate v0.1.0 // indirect | ||
github.com/mitchellh/copystructure v1.0.0 // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 | ||
github.com/mwitkow/go-proto-validators v0.2.0 // indirect | ||
github.com/pseudomuto/protoc-gen-doc v1.3.0 // indirect | ||
github.com/pseudomuto/protokit v0.2.0 // indirect | ||
github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
github.com/spf13/cobra v0.0.4 | ||
github.com/spf13/viper v1.4.0 | ||
github.com/woop/protoc-gen-doc v1.3.0 // indirect | ||
go.opencensus.io v0.22.3 // indirect | ||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect | ||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect | ||
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f | ||
golang.org/x/tools v0.1.8 // indirect | ||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect | ||
google.golang.org/grpc v1.29.1 | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
gopkg.in/russross/blackfriday.v2 v2.0.0 // indirect | ||
gopkg.in/yaml.v2 v2.2.4 | ||
istio.io/gogo-genproto v0.0.0-20191212213402-78a529a42cd8 // indirect | ||
istio.io/tools v0.0.0-20191228030621-c4eb6a11039c // indirect | ||
github.com/google/uuid v1.1.2 | ||
github.com/kelseyhightower/envconfig v1.4.0 | ||
github.com/spaolacci/murmur3 v1.1.0 | ||
github.com/stretchr/testify v1.7.0 | ||
google.golang.org/grpc v1.44.0 | ||
google.golang.org/protobuf v1.27.1 | ||
) | ||
|
||
go 1.13 | ||
require ( | ||
github.com/cespare/xxhash/v2 v2.1.2 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect | ||
github.com/google/go-cmp v0.5.7 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 // indirect | ||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect | ||
golang.org/x/text v0.3.6 // indirect | ||
google.golang.org/genproto v0.0.0-20220118154757-00ab72f36ad5 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect | ||
) |
Oops, something went wrong.