-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport CI housekeeping to 0.6 (#923)
* Backport housekeeping of Feast CI, docker compose, and notebooks (#916) * Add caching to core and serving builds * Fix flaky e2e tests * Simplify docker-compose setup * Add kafka broker to docker compose test * Rename batch to historical * Update troubleshooting.md * Fix casing for FEAST_HISTORICAL_SERVING_URL * Remove f-string prefix * Fix missing key in docker compose setup * Fix documentation typos * Add jupyter to load test * Add docker compose back to load-test * Clean up FEAST_VERSION in load test * Fix artifact output for load test * Revert e2e test order * Add missing makefile commands from backport * Remove missing tests
- Loading branch information
Showing
29 changed files
with
530 additions
and
283 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,111 @@ | ||
name: complete | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-push-docker-images: | ||
runs-on: [self-hosted] | ||
strategy: | ||
matrix: | ||
component: [core, serving, jupyter] | ||
env: | ||
GITHUB_PR_SHA: ${{ github.event.pull_request.head.sha }} | ||
REGISTRY: gcr.io/kf-feast | ||
MAVEN_CACHE: gs://feast-templocation-kf-feast/.m2.2019-10-24.tar | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master | ||
with: | ||
version: '290.0.1' | ||
export_default_credentials: true | ||
- run: gcloud auth configure-docker --quiet | ||
- name: Get m2 cache | ||
run: | | ||
infra/scripts/download-maven-cache.sh \ | ||
--archive-uri ${MAVEN_CACHE} \ | ||
--output-dir . | ||
- name: Build image | ||
run: make build-${{ matrix.component }}-docker REGISTRY=${REGISTRY} VERSION=${GITHUB_SHA} | ||
- name: Push image | ||
run: | | ||
docker push ${REGISTRY}/feast-${{ matrix.component }}:${GITHUB_SHA} | ||
if [ -n "${GITHUB_PR_SHA}" ]; then | ||
docker tag ${REGISTRY}/feast-${{ matrix.component }}:${GITHUB_SHA} gcr.io/kf-feast/feast-${{ matrix.component }}:${GITHUB_PR_SHA} | ||
docker push ${REGISTRY}/feast-${{ matrix.component }}:${GITHUB_PR_SHA} | ||
fi | ||
lint-java: | ||
container: gcr.io/kf-feast/feast-ci:latest | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Lint java | ||
run: make lint-java | ||
|
||
lint-python: | ||
container: gcr.io/kf-feast/feast-ci:latest | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: make install-python-ci-dependencies | ||
- name: Compile protos | ||
run: make compile-protos-python | ||
- name: Lint python | ||
run: make lint-python | ||
|
||
lint-go: | ||
container: gcr.io/kf-feast/feast-ci:latest | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: make install-go-ci-dependencies | ||
- name: Lint go | ||
run: make lint-go | ||
|
||
lint-versions: | ||
container: gcr.io/kf-feast/feast-ci:latest | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install dependencies | ||
run: make lint-versions | ||
|
||
unit-test-java: | ||
runs-on: ubuntu-latest | ||
container: gcr.io/kf-feast/feast-ci:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Test java | ||
run: make test-java-with-coverage | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: java-coverage-report | ||
path: ${{ github.workspace }}/docs/coverage/java/target/site/jacoco-aggregate/ | ||
|
||
unit-test-python: | ||
runs-on: ubuntu-latest | ||
container: gcr.io/kf-feast/feast-ci:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install python | ||
run: make install-python | ||
- name: Test python | ||
run: make test-python | ||
|
||
unit-test-go: | ||
runs-on: ubuntu-latest | ||
container: gcr.io/kf-feast/feast-ci:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: make compile-protos-go | ||
- name: Test go | ||
run: make test-go |
This file was deleted.
Oops, something went wrong.
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,60 @@ | ||
name: master only | ||
|
||
on: | ||
push: | ||
branches: master | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build-docker-images: | ||
runs-on: [self-hosted] | ||
strategy: | ||
matrix: | ||
component: [core, serving, jupyter, ci] | ||
env: | ||
MAVEN_CACHE: gs://feast-templocation-kf-feast/.m2.2019-10-24.tar | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master | ||
with: | ||
version: '290.0.1' | ||
export_default_credentials: true | ||
- run: gcloud auth configure-docker --quiet | ||
- name: Get m2 cache | ||
run: | | ||
infra/scripts/download-maven-cache.sh \ | ||
--archive-uri ${MAVEN_CACHE} \ | ||
--output-dir . | ||
- name: Build image | ||
run: make build-${{ matrix.component }}-docker REGISTRY=gcr.io/kf-feast VERSION=${GITHUB_SHA} | ||
- name: Push image | ||
run: make push-${{ matrix.component }}-docker REGISTRY=gcr.io/kf-feast VERSION=${GITHUB_SHA} | ||
- name: Push image to feast dev | ||
run: | | ||
if [ ${GITHUB_REF#refs/*/} == "master" ]; then | ||
docker tag gcr.io/kf-feast/feast-${{ matrix.component }}:${GITHUB_SHA} gcr.io/kf-feast/feast-${{ matrix.component }}:dev | ||
docker push gcr.io/kf-feast/feast-${{ matrix.component }}:dev | ||
fi | ||
- name: Get version | ||
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/} | ||
- name: Push versioned release | ||
run: | | ||
# Build and push semver tagged commits | ||
rx='^v[0-9]+?\.[0-9]+?\.[0-9]+?$' | ||
if [[ "${RELEASE_VERSION}" =~ $rx ]]; then | ||
VERSION_WITHOUT_PREFIX=${RELEASE_VERSION:1} | ||
docker tag gcr.io/kf-feast/feast-${{ matrix.component }}:${GITHUB_SHA} gcr.io/kf-feast/feast-${{ matrix.component }}:${VERSION_WITHOUT_PREFIX} | ||
docker push gcr.io/kf-feast/feast-${{ matrix.component }}:${VERSION_WITHOUT_PREFIX} | ||
# Also update "latest" image if tagged commit is pushed to stable branch | ||
HIGHEST_SEMVER_TAG=$(git tag -l --sort -version:refname | head -n 1) | ||
echo "Only push to latest tag if tag is the highest semver version $HIGHEST_SEMVER_TAG" | ||
if [ "${VERSION_WITHOUT_PREFIX}" == "${HIGHEST_SEMVER_TAG:1}" ] | ||
then | ||
docker tag gcr.io/kf-feast/feast-${{ matrix.component }}:${GITHUB_SHA} gcr.io/kf-feast/feast-${{ matrix.component }}:latest | ||
docker push gcr.io/kf-feast/feast-${{ matrix.component }}:latest | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
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.