forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Decouple go feature server from gopy bindings (#118)
* fix: Decouple go feature server from gopy bindings --------- Co-authored-by: Bhargav Dodla <[email protected]>
- Loading branch information
1 parent
99f332a
commit b67ade0
Showing
32 changed files
with
565 additions
and
898 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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: go_pr | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
- labeled | ||
|
||
jobs: | ||
lint-go: | ||
# when using pull_request_target, all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes. | ||
if: | ||
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || | ||
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) && | ||
github.repository == 'ExpediaGroup/feast' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# pull_request_target runs the workflow in the context of the base repo | ||
# as such actions/checkout needs to be explicit configured to retrieve | ||
# code from the PR. | ||
ref: refs/pull/${{ github.event.pull_request.number }}/merge | ||
submodules: recursive | ||
- name: Setup Go | ||
id: setup-go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.22.5 | ||
- name: Lint go | ||
run: make lint-go | ||
|
||
unit-test-go: | ||
# when using pull_request_target, all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes. | ||
if: | ||
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || | ||
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) && | ||
github.repository == 'ExpediaGroup/feast' | ||
runs-on: ubuntu-latest | ||
needs: lint-go | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# pull_request_target runs the workflow in the context of the base repo | ||
# as such actions/checkout needs to be explicit configured to retrieve | ||
# code from the PR. | ||
ref: refs/pull/${{ github.event.pull_request.number }}/merge | ||
submodules: recursive | ||
- name: Setup Go | ||
id: setup-go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.22.5 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
id: setup-python | ||
with: | ||
python-version: "3.11" | ||
architecture: x64 | ||
- name: Test Go | ||
run: make test-go | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: go-coverage-report | ||
path: ${{ github.workspace }}/coverage.html | ||
|
||
build-docker-image-go: | ||
# when using pull_request_target, all jobs MUST have this if check for 'ok-to-test' or 'approved' for security purposes. | ||
if: | ||
((github.event.action == 'labeled' && (github.event.label.name == 'approved' || github.event.label.name == 'lgtm' || github.event.label.name == 'ok-to-test')) || | ||
(github.event.action != 'labeled' && (contains(github.event.pull_request.labels.*.name, 'ok-to-test') || contains(github.event.pull_request.labels.*.name, 'approved') || contains(github.event.pull_request.labels.*.name, 'lgtm')))) && | ||
github.repository == 'ExpediaGroup/feast' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
component: [ feature-server-go ] | ||
env: | ||
REGISTRY: gcr.io/kf-feast | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Build image | ||
run: make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${GITHUB_SHA} |
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.