-
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.
feat: Use a daemon thread to monitor the go feature server exclusively (
#2391) * feat: Use a daemon thread to monitor the go feature server exclusively Also reenable the tests for lifecycle management of the goserver Signed-off-by: Achal Shah <[email protected]> * fix workflow Signed-off-by: Achal Shah <[email protected]> * Fix setup.py build_python_protos Signed-off-by: Achal Shah <[email protected]> * CR comments Signed-off-by: Achal Shah <[email protected]> * mkdir is needed Signed-off-by: Achal Shah <[email protected]> * explicit commit Signed-off-by: Achal Shah <[email protected]> * flush file explicitly Signed-off-by: Achal Shah <[email protected]> * Flush registry changes Signed-off-by: Achal Shah <[email protected]> * Signal handler can only be triggered from main thread Signed-off-by: Achal Shah <[email protected]> * join on background thread when cancelling and update test Signed-off-by: Achal Shah <[email protected]> * fix redis Signed-off-by: Achal Shah <[email protected]> * add back go_build.py Signed-off-by: Achal Shah <[email protected]> * wait on grpc connection check Signed-off-by: Achal Shah <[email protected]> * Add a more robust wait Signed-off-by: Achal Shah <[email protected]> * Add a sleep Signed-off-by: Achal Shah <[email protected]> * Remove explicitt cleanup Signed-off-by: Achal Shah <[email protected]> * More defensive Signed-off-by: Achal Shah <[email protected]> * Even more defensive Signed-off-by: Achal Shah <[email protected]> * Stop join Signed-off-by: Achal Shah <[email protected]> * Clean up the process to ensure next one is fine Signed-off-by: Achal Shah <[email protected]> * join thread Signed-off-by: Achal Shah <[email protected]> * remove a sleep Signed-off-by: Achal Shah <[email protected]> * Cleanup Signed-off-by: Achal Shah <[email protected]>
- Loading branch information
Showing
18 changed files
with
181 additions
and
237 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
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ build: protos build-java build-docker build-html | |
|
||
# Python SDK | ||
|
||
install-python-ci-dependencies: install-go-ci-dependencies | ||
install-python-ci-dependencies: install-go-proto-dependencies | ||
cd sdk/python && python -m piptools sync requirements/py$(PYTHON)-ci-requirements.txt | ||
cd sdk/python && COMPILE_GO=true python setup.py develop | ||
|
||
|
@@ -125,19 +125,21 @@ build-java-no-tests: | |
|
||
# Go SDK | ||
|
||
install-go-ci-dependencies: | ||
install-go-proto-dependencies: | ||
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 | ||
install-protoc-dependencies: | ||
pip install grpcio-tools==1.34.0 | ||
|
||
compile-protos-go: install-go-proto-dependencies install-protoc-dependencies | ||
python sdk/python/setup.py build_go_protos | ||
|
||
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: install-go-ci-dependencies | ||
test-go: compile-protos-go | ||
go test ./... | ||
|
||
format-go: | ||
|
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
Binary file removed
BIN
-15.3 MB
sdk/python/$/Users/achal/tecton/feast/sdk/python/feast/binaries/goserver
Binary file not shown.
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
Oops, something went wrong.