-
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.
chore: Stop compiling embedded go components (#3520)
* chore: Stop compiling embedded go components Signed-off-by: Achal Shah <[email protected]> * remove more stuff Signed-off-by: Achal Shah <[email protected]> * remove more stuff Signed-off-by: Achal Shah <[email protected]> * kill test Signed-off-by: Achal Shah <[email protected]> * remove arrow and go setup from github workflows Signed-off-by: Achal Shah <[email protected]> * newline Signed-off-by: Achal Shah <[email protected]> * format Signed-off-by: Achal Shah <[email protected]> --------- Signed-off-by: Achal Shah <[email protected]>
- Loading branch information
Showing
12 changed files
with
10 additions
and
707 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,16 +72,6 @@ jobs: | |
CIBW_BUILD: "cp3*_x86_64" | ||
CIBW_SKIP: "cp36-* cp37-* *-musllinux_x86_64 cp310-macosx_x86_64" | ||
CIBW_ARCHS: "native" | ||
CIBW_ENVIRONMENT: > | ||
COMPILE_GO=True PATH=$PATH:/usr/local/go/bin | ||
CIBW_BEFORE_ALL_LINUX: | | ||
curl -o go.tar.gz https://dl.google.com/go/go1.18.2.linux-amd64.tar.gz | ||
tar -C /usr/local -xzf go.tar.gz | ||
go version | ||
yum -y update && | ||
yum install -y epel-release || yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1).noarch.rpm && | ||
yum install -y https://apache.jfrog.io/artifactory/arrow/centos/$(cut -d: -f5 /etc/system-release-cpe | cut -d. -f1)/apache-arrow-release-latest.rpm && | ||
yum install -y --enablerepo=epel arrow-devel # For C++ | ||
CIBW_BEFORE_ALL_MACOS: | | ||
brew install apache-arrow | ||
brew install pkg-config | ||
|
@@ -90,8 +80,6 @@ jobs: | |
# There's a `git restore` in here because `make install-go-ci-dependencies` is actually messing up go.mod & go.sum. | ||
CIBW_BEFORE_BUILD: | | ||
make install-protoc-dependencies | ||
make install-go-proto-dependencies | ||
make install-go-ci-dependencies | ||
git status | ||
git restore go.mod go.sum | ||
git restore sdk/python/feast/ui/yarn.lock | ||
|
@@ -139,8 +127,6 @@ jobs: | |
run: | | ||
pip install -U pip setuptools wheel twine | ||
make install-protoc-dependencies | ||
make install-go-proto-dependencies | ||
make install-go-ci-dependencies | ||
make build-ui | ||
git status | ||
git restore go.mod go.sum | ||
|
@@ -203,9 +189,6 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.17.0' | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: wheels | ||
|
@@ -217,33 +200,6 @@ jobs: | |
cd dist/ | ||
pip install wheel | ||
for f in *.whl; do pip install $f || true; done | ||
- name: Install apache-arrow on ubuntu | ||
if: ${{ matrix.from-source && matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
sudo apt update | ||
sudo apt install -y -V ca-certificates lsb-release wget | ||
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
sudo apt update | ||
sudo apt install -y -V libarrow-dev | ||
- name: Install apache-arrow on macos | ||
if: ${{ matrix.from-source && matrix.os == 'macos-10.15' && matrix.python-version != '3.10' }} | ||
run: | | ||
brew install apache-arrow | ||
brew install pkg-config | ||
- name: Install dist with go | ||
if: ${{ matrix.from-source && (matrix.python-version != '3.10' || matrix.os == 'ubuntu-latest')}} | ||
env: | ||
COMPILE_GO: "True" | ||
run: | | ||
pip install 'grpcio-tools==1.47.0' 'pybindgen==0.22.0' | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
pip install dist/*tar.gz | ||
# py3.10 on MacOS does not work with Go so we have to install separately. Issue is tracked here: https://github.com/feast-dev/feast/issues/2881 | ||
- name: Install dist w/o go | ||
if: ${{ matrix.from-source && matrix.python-version == '3.10' && matrix.os == 'macos-10.15'}} | ||
run: pip install dist/*tar.gz | ||
- name: Install OS X dependencies | ||
if: matrix.os == 'macos-10.15' | ||
run: brew install coreutils | ||
|
@@ -269,13 +225,3 @@ jobs: | |
echo "$TEST_SCRIPT" > run-and-wait.sh | ||
bash run-and-wait.sh feast serve | ||
bash run-and-wait.sh feast ui | ||
# We disable this test for the Python 3.10 binary since it does not include Go. | ||
- name: Smoke test with go | ||
if: matrix.python-version != '3.10' || matrix.os == 'ubuntu-latest' | ||
run: | | ||
cd test_repo/feature_repo | ||
feast apply | ||
echo "$TEST_SCRIPT" > run-and-wait.sh | ||
pip install cffi | ||
printf "\ngo_feature_serving: True" >> feature_store.yaml | ||
bash run-and-wait.sh feast serve |
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
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
Oops, something went wrong.