Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
488 commits
Select commit Hold shift + click to select a range
f4c29e7
Merge branch 'master' into databricks_job_manager
ben-voz Jun 3, 2020
0f6ea16
Merge branch 'databricks_job_manager' of github.com:farfetch-external…
ben-voz Jun 3, 2020
e37c10b
update proto package paths
ben-voz Jun 3, 2020
e308495
resolve pom.xml merge conflict
ben-voz Jun 3, 2020
4a89207
.
algattik Jun 3, 2020
52b2642
Merge branch 'master' into algattik/databricks-emulator
algattik Jun 3, 2020
8cf23bc
Moved spark.version to root POM
algattik Jun 3, 2020
6bd89d9
Merge branch 'algattik/databricks-emulator' into algattik/spark-inges…
algattik Jun 3, 2020
eb29fd0
dataflowjobmanager cleanup
ben-voz Jun 3, 2020
27292b6
Update SparkIngestion.scala
algattik Jun 3, 2020
938512c
Increased memory for unit tests
algattik Jun 3, 2020
a4862b9
Merge branch 'algattik/databricks-emulator' into algattik/spark-inges…
algattik Jun 3, 2020
f866c66
.
algattik Jun 4, 2020
c647d05
Added Databricks test configuration
algattik Jun 4, 2020
e15b3c2
Merge branch 'algattik/databricks-emulator' into algattik/spark-inges…
algattik Jun 4, 2020
dd0840c
Update SparkIngestion.scala
algattik Jun 4, 2020
b8fbe48
Fixed logging
algattik Jun 4, 2020
4939ebc
Fixed port
algattik Jun 4, 2020
2869b40
Added support for application parameters
algattik Jun 4, 2020
d2f7833
Added Kafka jars
algattik Jun 4, 2020
55378bb
Update Dockerfile
algattik Jun 4, 2020
63dbdb4
Merge branch 'algattik/databricks-emulator' into algattik/spark-inges…
algattik Jun 4, 2020
e076cd2
Enabled UT in build
algattik Jun 4, 2020
8f2bf8a
Merge branch 'algattik/databricks-emulator' into algattik/spark-inges…
algattik Jun 4, 2020
74a3f5c
DatabricksJobManager: refactor to use create + run-now APIs
ben-voz Jun 4, 2020
05a4262
DatabricksJobManager - build run now request
ben-voz Jun 4, 2020
a9cee31
DatabricksJobManager: cleanup
ben-voz Jun 4, 2020
a1419a1
fix test for starting databricks job
ben-voz Jun 4, 2020
32b26ac
Changed Lombok to AutoValue
algattik Jun 4, 2020
7740ae0
add new proto for databricks runner
ff-mriko-morandi Jun 4, 2020
f1cc709
Increase Jaeger Tracing coverage (#719)
terryyylim Jun 1, 2020
6aeb6d6
Add S3 staging support to python client SDK (#706)
jmelinav Jun 1, 2020
9f6aa74
KE-643 Use create and run-now API
algattik Jun 5, 2020
6c707e5
Merge branch 'algattik/databricks-emulator' into algattik/spark-inges…
algattik Jun 5, 2020
0c47684
fix DatabricksJobManager tests
ben-voz Jun 5, 2020
88e43a8
Created databricks-emulator (#13)
algattik Jun 5, 2020
877a2d1
Merge branch 'master' into algattik/spark-ingestion
algattik Jun 5, 2020
0b56e63
remove spark dir to resolve conflicts
ben-voz Jun 5, 2020
9cbfa04
resolve conflicts
ben-voz Jun 5, 2020
8bf52f2
update databricks job manager - use new databricks types
ben-voz Jun 5, 2020
dd63b45
Merge branch 'feature-s3-staging' of https://github.com/jmelinav/feas…
jmelinav Jun 5, 2020
8c07d40
Data Science test scenarios (#18)
algattik Jun 5, 2020
3167b29
added pydocs
jmelinav Jun 5, 2020
edd6096
.
algattik Jun 5, 2020
30c7a1b
.
algattik Jun 5, 2020
8eff41c
Merge branch 'master' into algattik/spark-ingestion
algattik Jun 5, 2020
e2e357c
Update test-docker-compose-databricks.sh
algattik Jun 5, 2020
8c97e59
Update Dockerfile
algattik Jun 5, 2020
6ec3a75
pass kafka topics/brokers for databricks job
ben-voz Jun 6, 2020
2d7493b
use list instead of sparksubmitparams value object
ben-voz Jun 8, 2020
84a33ed
remove coverage dependency
ben-voz Jun 8, 2020
c9bccaa
Store delta into columns
algattik Jun 8, 2020
1ab0b6e
Update SparkIngestionTest.java
algattik Jun 8, 2020
2b2ca3e
some extra comments on the application.yml structure and fields
ff-mriko-morandi Jun 8, 2020
cdc5641
Skip tests under Java 11
algattik Jun 8, 2020
6f17c63
remove databricksJobConfig
ben-voz Jun 8, 2020
c608779
Add Databricks types to get request
ff-mriko-morandi Jun 8, 2020
f58dac3
Add support for Optional result_state as that's only provided when th…
ff-mriko-morandi Jun 8, 2020
11f52ec
Merge branch 'databricks_job_manager' of github.com:farfetch-external…
ff-mriko-morandi Jun 8, 2020
2762395
Merge branch 'feature-s3-staging' into algattik/python-sdk-wasb
algattik Jun 8, 2020
3680f4d
Added Azure storage support
algattik Jun 8, 2020
20a73f0
some improvements from the PR
ff-mriko-morandi Jun 8, 2020
cf54678
Added abort job implementation to job manager class
Basma-Elsaify Jun 8, 2020
2df386c
Merge branch 'databricks_job_manager' of github.com:farfetch-external…
Basma-Elsaify Jun 8, 2020
64c654d
Linting & UT fixes
algattik Jun 8, 2020
ef0cf32
Linting fix
algattik Jun 8, 2020
0ed3911
Update core/pom.xml
ben-voz Jun 8, 2020
9d1e111
Update core/pom.xml
ben-voz Jun 8, 2020
66ee9a1
Merge branch 'master' into databricks_job_manager
algattik Jun 9, 2020
454b08f
fixed issue with bytes conversion
ff-mriko-morandi Jun 9, 2020
ee75a08
Merge branch 'databricks_job_manager' of github.com:farfetch-external…
ff-mriko-morandi Jun 9, 2020
2183d5c
Fixed serialization of Optional types
algattik Jun 9, 2020
64447f9
Fixes for integration with SparkIngestion spark job
algattik Jun 9, 2020
d2eba9b
Merge branch 'databricks_job_manager' of github.com:farfetch-external…
ff-mriko-morandi Jun 9, 2020
1ab32e3
Add number in job property
ff-mriko-morandi Jun 9, 2020
e967636
Add support for missing items in json response
ff-mriko-morandi Jun 9, 2020
d223257
removed settings from proto and minor improvements on job manager
ff-mriko-morandi Jun 9, 2020
d6a3b0a
Move array list creation to singletonList
ff-mriko-morandi Jun 9, 2020
392fc4d
Fixed FeatureSetSpecs passed to Spark jobs
algattik Jun 9, 2020
aefeeae
fix databricks job manager tests
ben-voz Jun 9, 2020
708cc93
Relocate vendored dependencies
algattik Jun 9, 2020
baa9c05
Naming fixes
algattik Jun 9, 2020
8ef3080
Fixed UT for numberInJob attribute
algattik Jun 9, 2020
b8cc234
Merge branch 'databricks_job_manager' of https://github.com/farfetch-…
algattik Jun 9, 2020
d3b88b8
Syntax fixes from PR review
algattik Jun 9, 2020
5013b5f
Added UT for FeatureRowToSparkRow
algattik Jun 9, 2020
de5e3cd
Refactored to distinct classes for Redis and Delta sinks
algattik Jun 9, 2020
a237c18
Merge pull request #21 from farfetch-external/algattik/python-sdk-wasb
algattik Jun 9, 2020
c9b9dc6
Update SparkDeltaSink.java
algattik Jun 9, 2020
7222ba6
Update core/src/main/java/feast/core/job/databricks/DatabricksJobStat…
ben-voz Jun 9, 2020
2f87d68
clean databricks job manager
ben-voz Jun 10, 2020
59d0007
Merge branch 'databricks_job_manager' of github.com:farfetch-external…
ben-voz Jun 10, 2020
982ac6a
Improved UTs for complex values
algattik Jun 10, 2020
1828efd
Linting fixes
algattik Jun 10, 2020
b4d7583
add private constructor for static util class
ben-voz Jun 10, 2020
d48823b
Fixed Runs cancel endpoint to be POST, not GET
algattik Jun 10, 2020
82c24dd
Linting fixes
algattik Jun 10, 2020
540a85d
Fixed API data type
algattik Jun 10, 2020
4842320
Improved logging
algattik Jun 10, 2020
823ed81
fix DatabricksJobStateMapper + tidy tests
ben-voz Jun 10, 2020
3e51cf8
resolve conflicts
ben-voz Jun 10, 2020
cf822b4
Databricks Job Manager - clean status code checks
ben-voz Jun 10, 2020
d1f8a9e
Merge branch 'master' into algattik/spark-ingestion
algattik Jun 11, 2020
97e73f9
Added javadoc
algattik Jun 11, 2020
c2cf399
Linting fixes
algattik Jun 11, 2020
802b24a
Update SparkIngestion.java
algattik Jun 11, 2020
c139798
Refactor waitForJobStatus to support different situations and add con…
ff-mriko-morandi Jun 11, 2020
1845040
removed metrics properties
ff-mriko-morandi Jun 11, 2020
5714739
fix lint
ff-mriko-morandi Jun 11, 2020
40c57af
chain setting values with new builder
ben-voz Jun 11, 2020
ccafddc
remove terminal control from waitForJobStatus to caller
ff-mriko-morandi Jun 11, 2020
a9407d5
Merge remote-tracking branch 'origin/databricks_job_manager' into dat…
ff-mriko-morandi Jun 11, 2020
10adfd3
linting fix
ff-mriko-morandi Jun 11, 2020
cbb116c
adjust databricks runner name to proper standard
ff-mriko-morandi Jun 11, 2020
60428ad
[skip-ci] Example notebook for versioning.
Yanson Jun 11, 2020
3e49cb4
Merge remote-tracking branch 'farfetch/master' into master-ff
Yanson Jun 11, 2020
24c0486
Merge pull request #16 from farfetch-external/algattik/spark-ingestion
algattik Jun 11, 2020
76deb09
Algattik/654 fraud scenario (#22)
algattik Jun 11, 2020
43bd7fa
Update application.yml
algattik Jun 11, 2020
8eeeffb
Merge branch 'master' into databricks_job_manager
algattik Jun 11, 2020
22ddaff
Made runs cancel more robust
algattik Jun 11, 2020
baa9b98
Enable redis tests
algattik Jun 12, 2020
20dd9af
cleaned error messages and logging
ff-mriko-morandi Jun 15, 2020
65537f3
Params maxRetries and sparkConf
algattik Jun 15, 2020
bf11e3b
fix job manager test
ben-voz Jun 16, 2020
e4a0229
refactor uri for get request
ff-mriko-morandi Jun 16, 2020
ef433d8
refactor all uri creations
ff-mriko-morandi Jun 16, 2020
a383336
Added timeout option (for e2e tests)
algattik Jun 17, 2020
12b241b
Added UT for job state mapper
algattik Jun 17, 2020
b999861
Merge pull request #19 from farfetch-external/databricks_job_manager
ff-mriko-morandi Jun 17, 2020
36e7fa4
Dockerize jupyter e2e test image (#29)
algattik Jun 18, 2020
4d09bc2
KE-740: increase DatabricksJobManager test coverage (#31)
ben-voz Jun 22, 2020
dad9ffe
Terraform CI/CD env (#25)
algattik Jun 22, 2020
211828e
CI/CD pipeline on SparkRunner (#36)
algattik Jun 23, 2020
9d3c768
script to start long running tests
polatengin Jun 24, 2020
ea84f63
script that stops a long running test
polatengin Jun 24, 2020
156fdbc
project name and initial id fields added
polatengin Jun 24, 2020
5a2c056
project name and initial id fields used in the tests
polatengin Jun 24, 2020
e005ae1
add exception handling when reading readme file
ff-mriko-morandi Jun 25, 2020
74b2475
remove previous change and add only exception handling
ff-mriko-morandi Jun 25, 2020
b456ec7
Merge remote-tracking branch 'origin/handle_missing_readme' into hand…
ff-mriko-morandi Jun 25, 2020
0319262
re-add wrongly added changes
ff-mriko-morandi Jun 25, 2020
7eda606
Merge pull request #45 from farfetch-external/handle_missing_readme
ff-mriko-morandi Jun 25, 2020
64a3a99
Update tests/start.sh
polatengin Jun 25, 2020
08c9bbd
Update tests/start.sh
polatengin Jun 25, 2020
68f1bf1
Update tests/start.sh
polatengin Jun 25, 2020
d8d7adf
script files renamed
polatengin Jun 25, 2020
b96aea0
stop script name fixed
polatengin Jun 25, 2020
1ed3a27
disable compile-protos-go build step (#46)
ben-voz Jun 25, 2020
559bf4a
Use Databricks API Runs Submit (#41)
algattik Jun 29, 2020
4985884
initial_entity_id converted to int before returning
polatengin Jun 29, 2020
548c120
add timeouts for gRPC connections
ff-mriko-morandi Jun 29, 2020
8125b7f
Add some constants
ff-mriko-morandi Jun 29, 2020
208696b
Update tests/create-kubernetes-cron-job.sh
polatengin Jun 29, 2020
2b7e047
Merge pull request #48 from farfetch-external/KE-799_fix_databricks_i…
PaulDFoster Jun 29, 2020
57a3667
Merge branch 'master' into enpolat/KE-754
polatengin Jun 30, 2020
3c00ead
Spark checkpoint (#38)
algattik Jul 1, 2020
3dd7e22
Add upload to pypi repo step
ff-mriko-morandi Jul 2, 2020
59fe3e9
disabled upload to pypi to avoid conflict with github
ff-mriko-morandi Jul 2, 2020
6f32909
add support for Databricks artifact upload
ff-mriko-morandi Jul 2, 2020
8b2955b
add auth for databricks
ff-mriko-morandi Jul 2, 2020
c5cca62
Add python protos compilation
ff-mriko-morandi Jul 2, 2020
c338d50
move upload before e2e test
ff-mriko-morandi Jul 2, 2020
2f770e9
add support for pypi init script in terraform
ff-mriko-morandi Jul 2, 2020
2a478e9
force python 3 for artifact publishing
ff-mriko-morandi Jul 2, 2020
c0af338
undo latest change
ff-mriko-morandi Jul 2, 2020
c787df8
force use of python 3 (fixed)
ff-mriko-morandi Jul 2, 2020
b8ca1ec
reset last change
ff-mriko-morandi Jul 2, 2020
93e9115
add extra step for uploading artifacts
ff-mriko-morandi Jul 2, 2020
f5608df
fix yaml
ff-mriko-morandi Jul 2, 2020
e557779
remove python constraint
ff-mriko-morandi Jul 2, 2020
d51be18
restore working ci workflow
ff-mriko-morandi Jul 2, 2020
5b547d3
create temporary file in TF
ff-mriko-morandi Jul 2, 2020
5b697f6
Databricks terraform module bugfix: removed workaround (#39)
algattik Jul 3, 2020
14708b8
Storage staging to ABFSS (#52)
algattik Jul 3, 2020
a4effaa
cron job id parameter issue fixed
polatengin Jul 3, 2020
5980a6b
set password in redis
isabelcabezasm Jul 3, 2020
89d9f64
host and password as enviroment variables
isabelcabezasm Jul 3, 2020
d08261d
attempt at using python3 for databricks artifact generation
ff-mriko-morandi Jul 6, 2020
add3f5e
attempt at using python3 for databricks artifact generation #2
ff-mriko-morandi Jul 6, 2020
f67f76b
attempt at using python3 for databricks artifact generation #3
ff-mriko-morandi Jul 6, 2020
ed9902c
disabled local init script
ff-mriko-morandi Jul 6, 2020
a81d80f
fix version to 3.7
ff-mriko-morandi Jul 6, 2020
c4cb30d
attempt at using a global python 3.7 version
ff-mriko-morandi Jul 6, 2020
402a8b1
attempt at using a global python 3.6 version
ff-mriko-morandi Jul 6, 2020
668df42
fix databricks cli to configure via echoed input
ff-mriko-morandi Jul 6, 2020
2dce646
restore 2.x because of databricks bug and disable databricks artifact…
ff-mriko-morandi Jul 6, 2020
0652fc2
re-enable local file and temporarily stop infra desctruction
ff-mriko-morandi Jul 6, 2020
b77f34b
core and online serving urls fixed
polatengin Jul 6, 2020
2cd6e3b
add support for automated creation of secrets for pypi
ff-mriko-morandi Jul 6, 2020
0b7af0c
some cleanup
ff-mriko-morandi Jul 6, 2020
23e9e7f
add dbfs file for init script
ff-mriko-morandi Jul 6, 2020
d0d77be
add init pypi file to scripts folder and add it to TF
ff-mriko-morandi Jul 6, 2020
06b0b44
fixed path
ff-mriko-morandi Jul 6, 2020
a279afa
NOT PR - DO NOT MERGE - test
isabelcabezasm Jul 6, 2020
1bf2eca
NOT PR - DO NOT MERGE
isabelcabezasm Jul 6, 2020
a26c9df
NOT PR - DO NOT MERGE
isabelcabezasm Jul 6, 2020
66339bb
NOT PR - DO NOT MERGE
isabelcabezasm Jul 6, 2020
dc2b8da
NOT PR - DO NOT MERGE
isabelcabezasm Jul 6, 2020
5096fa0
add initial cluster setup
ff-mriko-morandi Jul 6, 2020
df77bbc
NOT PR - DO NOT MERGE
isabelcabezasm Jul 6, 2020
79ccc01
refactor cluster creation
ff-mriko-morandi Jul 6, 2020
5cd6346
NOT PR - DO NOT MERGE
isabelcabezasm Jul 6, 2020
da9ca8c
add dbfs prefix
ff-mriko-morandi Jul 6, 2020
0e92b49
Merge pull request #42 from farfetch-external/enpolat/KE-754
PaulDFoster Jul 6, 2020
4f75b68
KE-772 - Add authentication (password) to Redis
isabelcabezasm Jul 6, 2020
e862b2e
Spark historical job + runner (#37)
eadgbear Jul 6, 2020
28a19e2
test cluster creation without init script
ff-mriko-morandi Jul 7, 2020
8fd5264
minor fixes for init script and its location
ff-mriko-morandi Jul 7, 2020
f9b6879
Merge remote-tracking branch 'origin/master' into isacabe/KE-772_redi…
isabelcabezasm Jul 7, 2020
9e33efa
moved artifact upload after tests and implement some comments from PR
ff-mriko-morandi Jul 7, 2020
bf6ffa6
Merge branch 'master' of github.com:farfetch-external/data-ds-feast i…
ff-mriko-morandi Jul 7, 2020
e453cc2
unneeded PROJECT_NAMEe variable removed
polatengin Jul 7, 2020
4a3d557
fix wrongly moved kubectl setup
ff-mriko-morandi Jul 7, 2020
3a17cbc
make the init script global
ff-mriko-morandi Jul 7, 2020
8683279
add a password for the redis container forthe dev enviroment.
isabelcabezasm Jul 7, 2020
511ba3a
add a password for the redis container for the dev environment.
isabelcabezasm Jul 7, 2020
045e1ca
"put your password here" should be a valid password
isabelcabezasm Jul 7, 2020
7f5a42e
Merge pull request #62 from farfetch-external/isacabe/KE-772_redis_pa…
Jul 7, 2020
2e4d6f1
fixed the recreation of the project on every test run and fixed the u…
mariekekortsmit Jul 8, 2020
f73629a
Ingestion tests & Delta MERGE rows deduplication (#56)
algattik Jul 8, 2020
f0a4254
Enable data types in Redis tests (#58)
algattik Jul 9, 2020
6d7950a
remove deprecated init script configuration as it is now global and w…
ff-mriko-morandi Jul 9, 2020
4ea5a12
Merge pull request #63 from farfetch-external/enpolat-makortsm/KE-971
polatengin Jul 9, 2020
0e7bfc1
Merge pull request #54 from farfetch-external/add_artifact_upload
ff-mriko-morandi Jul 9, 2020
86e8a6b
KE-805: Add validation logic to spark. (#47)
ben-voz Jul 9, 2020
29071f1
KE-908 Store dead-letter messages (#68)
algattik Jul 13, 2020
c84b103
redis password on databricks.yml
isabelcabezasm Jul 13, 2020
432bfc0
allow empty redis password
isabelcabezasm Jul 13, 2020
e832aa2
allow empty redis password
isabelcabezasm Jul 13, 2020
0b7915a
allow empty redis password
isabelcabezasm Jul 13, 2020
4e97edc
allow empty redis password
isabelcabezasm Jul 13, 2020
d568a7a
accepting Alexandre's PR suggestions (pass=> password & trimToNull)
isabelcabezasm Jul 14, 2020
8cc92a8
Fix deadletter storage for docker-compose tests (#74)
algattik Jul 15, 2020
e57411e
Merge tag 'v0.6.0' into algattik/rebase-0.6
algattik Jul 16, 2020
f775643
added Vitor's suggestion (setPass on ImportJobTest)
isabelcabezasm Jul 16, 2020
8ac0733
Merge pull request #72 from farfetch-external/isacabe/KE-998_redis_em…
Jul 17, 2020
60fbec4
adding FEAST_BATCH_JOB_STAGING_LOCATION variable to env.sample file
isabelcabezasm Jul 17, 2020
7ab0aa6
Merge pull request #78 from farfetch-external/isacabe/KE-998_redis_em…
Jul 20, 2020
5ecc7c3
Rebase to Feast 0.6.0 - custom code adaptation (#80)
algattik Jul 21, 2020
8ebcf58
Merge branch 'master' into algattik/rebase-0.6
algattik Jul 21, 2020
abd4605
Update TestUtil.java
algattik Jul 21, 2020
15d9950
Rebase to Feast 0.6.0 - Merge pull request #75 from farfetch-external…
algattik Jul 21, 2020
25f589f
Feast 0.6.0 - Run single Spark job to ingest to both Redis and Delta …
algattik Jul 21, 2020
4f3cc25
Feast 0.6 - simplify Spark ingestion classes (#86)
algattik Jul 21, 2020
353e198
introduce fix to process pool leak from https://github.com/feast-dev/…
ff-mriko-morandi Jul 23, 2020
f9c8de8
Merge pull request #92 from farfetch-external/fix_process_pool_leak
ff-mriko-morandi Jul 27, 2020
ef687d3
Merge OSS Feast 0.6.1 (#91)
algattik Jul 27, 2020
b298b99
Merge remote-tracking branch 'farfetch/master' into ff-ms-spark
Yanson Jul 28, 2020
b04edfb
Remove unused farfetch files and minor alignment with 0.6 branch.
Yanson Jul 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
312 changes: 312 additions & 0 deletions .github/workflows/docker_build_test_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
name: ci

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master

env:
# - change per env
TF_VAR_project_name: fffeastcd

# - account used to access the internal pypi repository
TF_VAR_pypi_user: ci

# - optionally change per env
TERRAFORM_BACKEND_STORAGE_ACCOUNT_RESOURCE_GROUP_NAME: fffeasttf
# - change per env
# - manually crate this storage account in the
# resource group TERRAFORM_BACKEND_STORAGE_ACCOUNT_RESOURCE_GROUP_NAME
TERRAFORM_BACKEND_STORAGE_ACCOUNT_NAME: fffeastcdtf
# - manually create this container in the created storage account
TERRAFORM_BACKEND_CONTAINER_NAME: terraform

# no need to change those

# Base name for images published into ACR (with -core, -serving suffix)
CONTAINERREGISTRY_IMAGENAMEBASE: fffeast

# Blob names used to store state in Terraform backend
TERRAFORM_BACKEND_BLOB_PATH_INFRA: infra
TERRAFORM_BACKEND_BLOB_PATH_APP: app

# Name of end-to-end test pod
E2E_TEST_POD: e2e-test

DOCKER_COMPOSE: docker-compose -f infra/docker-compose/docker-compose.yml -f infra/docker-compose/docker-compose.online.yml -f infra/docker-compose/docker-compose.databricks.yml

jobs:

build-and-test:

# Run the job on a self-hosted agent VM. The VM will cache Docker layers, which considerably speeds up the build.
runs-on: self-hosted
steps:

# Delete any files left from the previous build, including files owned by root created by Docker in mounted volumes.
- name: Clean current directory
run: shopt -s dotglob; sudo rm -rf *

# Checkout sources from Git
- uses: actions/checkout@v2

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 0.12.24
terraform_wrapper: false

- name: Set Terraform variables infra
run: |
echo ::set-env name=ARM_CLIENT_ID::${{ secrets.ARM_CLIENT_ID }}
echo ::set-env name=ARM_CLIENT_SECRET::${{ secrets.ARM_CLIENT_SECRET }}
echo ::set-env name=ARM_SUBSCRIPTION_ID::${{ secrets.ARM_SUBSCRIPTION_ID }}
echo ::set-env name=ARM_TENANT_ID::${{ secrets.ARM_TENANT_ID }}

- name: Terraform init infra

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why introduce terraform given the other myriad of tools already used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for any confusion about what's included in this PR. Terraform, Docker GitHub Actions, etc code as been left in to demonstrate our internal build + test process and help understand what needs to be integrated into the main Feast testing strategy. We don't really intend on including that in final PRs.

# cache plugin locally to avoid re-downloading it at every run
run: TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache terraform init -input=false -backend-config=container_name="$TERRAFORM_BACKEND_CONTAINER_NAME" -backend-config=key="$TERRAFORM_BACKEND_BLOB_PATH_INFRA" -backend-config=storage_account_name="$TERRAFORM_BACKEND_STORAGE_ACCOUNT_NAME" -backend-config=resource_group_name="$TERRAFORM_BACKEND_STORAGE_ACCOUNT_RESOURCE_GROUP_NAME"
working-directory: infra/terraform/infra

- name: Terraform plan infra
run: terraform plan -out=tfplan -input=false
working-directory: infra/terraform/infra

- name: Terraform apply infra
run: terraform apply -input=false -auto-approve tfplan
working-directory: infra/terraform/infra

- name: Terraform outputs infra
run: |
# Set a TF_VAR_ environment variable for each terraform output.
# Mask any secret terraform output.
terraform output -json | jq -r '
. as $in
| keys[]
| ($in[.].value | tostring | gsub("\\\\"; "\\\\") | gsub("\n"; "\\n")) as $value
| ($in[.].sensitive | tostring) as $sensitive
| [
if $in[.].sensitive then "::add-mask::" + $value else "" end, # mask value in console output
"::set-env name=TF_VAR_" + . + "::" + $value # set value as environment variable
]
| .[]'
working-directory: infra/terraform/infra

# Cache the Maven repository across runs.
- name: Cache Maven repository
id: cache-maven
uses: actions/cache@v1
with:
path: .m2
key: ${{ runner.os }}-mavenr-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-mavenr-

# Generate the Maven cache if needed by running a throwaway build of Feast.
# --user: run as the host user, to avoid writing .m2 files to the host as root.
# -e MAVEN_CONFIG: See https://github.com/carlossg/docker-maven#running-as-non-root
# -v $PWD:/build: mount the current directory to write .m2 files onto the host.
- name: Generate Maven cache
if: steps.cache-maven.outputs.cache-hit != 'true'
run: docker run --rm --user $(id -u):$(id -g) -e MAVEN_CONFIG=/build/.m2 -v $PWD:/build maven:3.6-jdk-11 bash -c "cp -R /build /tmp && mvn -f /tmp/build -Dmaven.repo.local=/build/.m2/repository -Dgpg.skip=true -B clean verify -DskipTests"

- name: Set image name and version settings for docker-compose
run: |
echo "::set-env name=COMPOSE_PROJECT_NAME::feast"
echo "::set-env name=FEAST_VERSION::v${{ github.sha }}"
echo "::set-env name=FEAST_CORE_IMAGE::$TF_VAR_acr_login_server/$CONTAINERREGISTRY_IMAGENAMEBASE-core"
echo "::set-env name=FEAST_SERVING_IMAGE::$TF_VAR_acr_login_server/$CONTAINERREGISTRY_IMAGENAMEBASE-serving"
echo "::set-env name=FEAST_JUPYTER_IMAGE::$TF_VAR_acr_login_server/$CONTAINERREGISTRY_IMAGENAMEBASE-jupyter"
echo "::set-env name=FEAST_DATABRICKS_EMULATOR_IMAGE::databricks-emulator-dev"

# Build images in parallel.
- name: Build Feast runtime images
run: $DOCKER_COMPOSE build --parallel core online-serving jupyter databricks-emulator

# Login to Azure Container Registry.
- name: Login to Azure Container Registry
uses: azure/docker-login@v1
with:
login-server: ${{ env.TF_VAR_acr_login_server }}
username: ${{ env.TF_VAR_acr_admin_username }}
password: ${{ env.TF_VAR_acr_admin_password }}

# Promote successfully tested container to Azure Container Registry.
- name: Push image to ACR
run: $DOCKER_COMPOSE push core online-serving jupyter

# Install python to enable Databricks CLI install (for workaround for
# databricks provider DBFS bug)
- uses: actions/setup-python@v2
with:
python-version: '2.x'

- name: Upload Spark JARs
run: |
set -ex
docker rm spark-jobs || true
docker create --name spark-jobs ${FEAST_DATABRICKS_EMULATOR_IMAGE}:${FEAST_VERSION}
mkdir -p sparkjars
docker cp spark-jobs:/opt/sparkjars sparkjars
docker rm spark-jobs
echo "::set-env name=TF_VAR_spark_job_jars::$PWD/sparkjars"

- name: Set kubeconfig
run: |
base64 -d <<<"$TF_VAR_kube_config" > kube_config
echo "::set-env name=KUBECONFIG::$PWD/kube_config"

- name: Install Terraform databricks provider
run: curl https://raw.githubusercontent.com/databrickslabs/databricks-terraform/master/godownloader-databricks-provider.sh | bash -xs -- -b $HOME/.terraform.d/plugins

- name: Set Terraform variables app
run: |
echo "::set-env name=TF_VAR_feast_core_image_repository::$FEAST_CORE_IMAGE"
echo "::set-env name=TF_VAR_feast_serving_image_repository::$FEAST_SERVING_IMAGE"
echo "::set-env name=TF_VAR_feast_version::$FEAST_VERSION"
echo "::set-env name=TF_VAR_run_number::$GITHUB_RUN_NUMBER"
echo "::set-env name=TF_VAR_pypi_repo:::${{ secrets.PYPI_REPO }}"
echo "::set-env name=TF_VAR_pypi_password:::${{ secrets.PYPI_PWD }}"

- name: Terraform init app
# cache plugin locally to avoid re-downloading it at every run
run: TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache terraform init -input=false -backend-config=container_name="$TERRAFORM_BACKEND_CONTAINER_NAME" -backend-config=key="$TERRAFORM_BACKEND_BLOB_PATH_APP" -backend-config=storage_account_name="$TERRAFORM_BACKEND_STORAGE_ACCOUNT_NAME" -backend-config=resource_group_name="$TERRAFORM_BACKEND_STORAGE_ACCOUNT_RESOURCE_GROUP_NAME"
working-directory: infra/terraform/app

- name: Terraform destroy app
run: terraform destroy -input=false -auto-approve
working-directory: infra/terraform/app

- name: Terraform plan app
run: terraform plan -out=tfplan -input=false
working-directory: infra/terraform/app

- name: Terraform apply app
run: terraform apply -input=false -auto-approve tfplan
working-directory: infra/terraform/app

- name: Cancel any active Databricks runs
run: |
set -euo pipefail
export DATABRICKS_HOST="$TF_VAR_databricks_workspace_url"
export DATABRICKS_TOKEN=$(terraform output databricks_token)
set -x
pip install databricks-cli
databricks runs list --active-only | cut -f1 -d ' ' | xargs -tr -n1 databricks runs cancel --run-id
working-directory: infra/terraform/app

- name: Compile Python protos
run: set -e make compile-protos-python

- uses: azure/setup-kubectl@v1

- name: Prepare e2e test pod and clear Redis data
run: |
set -ex

kubectl delete secret azure-e2e-test || true
kubectl create secret generic azure-e2e-test --from-literal=AZURE_CLIENT_SECRET="$ARM_CLIENT_SECRET"

# Start e2e test pod
kubectl delete pod "$E2E_TEST_POD" || true
kubectl run "$E2E_TEST_POD" --restart=Never --image "$FEAST_JUPYTER_IMAGE:$FEAST_VERSION" --overrides='
{
"spec": {
"containers": [
{
"name": "'$E2E_TEST_POD'",
"image": "'$FEAST_JUPYTER_IMAGE':'$FEAST_VERSION'",
"resources": {
"limits": {
"memory": "4Gi"
}
},
"env": [
{
"name": "AZURE_TENANT_ID",
"value": "'$ARM_TENANT_ID'"
},
{
"name": "AZURE_CLIENT_ID",
"value": "'$ARM_CLIENT_ID'"
},
{
"name": "AZURE_CLIENT_SECRET",
"valueFrom": {
"secretKeyRef": {
"name": "azure-e2e-test",
"key": "AZURE_CLIENT_SECRET"
}
}
}
]
}
]
}
}'

# While the test pod is starting, clear all data from Redis
kubectl run -it --rm --restart=Never --image=redis redisflush$GITHUB_RUN_NUMBER --command -- redis-cli -h $TF_VAR_redis_hostname FLUSHALL

kubectl wait --timeout 15m --for=condition=ContainersReady pod "$E2E_TEST_POD"

- name: Run e2e tests with Databricks
run: |
set -ex
kubectl exec "$E2E_TEST_POD" -- bash -c "
cd /feast/tests/e2e
pytest -x -rA -s databricks-tests.py --core_url feast-core:6565 --serving_url=feast-serving-feast-online-serving:6566 --batch_serving_url=feast-serving-feast-batch-serving:6566
"

- name: Run ingestion tests for FF Data Science scenarios
run: |
set -ex
kubectl exec "$E2E_TEST_POD" -- bash -c "
cd /feast/tests/ds_scenarios
pytest -x -rA -s test-ingest.py --core_url feast-core:6565 --serving_url=feast-serving-feast-online-serving:6566
"

- name: Upload package to Pypi
run: |
set -ex
git fetch --unshallow
git stash
python setup.py sdist
pip install twine
twine upload dist/*.tar.gz --repository-url https://${{ secrets.PYPI_REPO }} -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PWD }}
working-directory: sdk/python

- name: Prepare e2e test pod and clear Redis data
run: |
set -ex
# Start e2e test pod
kubectl delete pod "$E2E_TEST_POD" || true
kubectl run "$E2E_TEST_POD" --restart=Never --image="$FEAST_JUPYTER_IMAGE:$FEAST_VERSION" --limits 'memory=4Gi'

# While the test pod is starting, clear all data from Redis
kubectl run -it --rm --restart=Never --image=redis redisflush$GITHUB_RUN_NUMBER --command -- redis-cli -h $TF_VAR_redis_hostname FLUSHALL

kubectl wait --timeout 45m --for=condition=ContainersReady pod "$E2E_TEST_POD"
- name: Delete e2e test pod
run: kubectl delete pod "$E2E_TEST_POD"


- name: Output logs
if: ${{ always() }}
run: |
set +e
set -x
kubectl get event
kubectl logs svc/feast-core
kubectl logs svc/feast-serving-feast-online-serving
# Get number of Redis keys
kubectl run -it --rm --restart=Never --image=redis redisflush$GITHUB_RUN_NUMBER --command -- redis-cli -h $TF_VAR_redis_hostname DBSIZE
# Get consumer group offsets
kubectl exec -it svc/feast-services-kafka -- bash -c 'KCG="kafka-consumer-groups --bootstrap-server localhost:9092"; $KCG --list | xargs -rt -n1 $KCG --describe --group'
# Get Kafka offsets
kubectl exec -it svc/feast-services-kafka -- bash -c 'kafka-run-class kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic feast-features'
23 changes: 23 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,29 @@ jobs:
name: java-coverage-report
path: ${{ github.workspace }}/docs/coverage/java/target/site/jacoco-aggregate/

unit-test-java-8:
runs-on: ubuntu-latest
container: gcr.io/kf-feast/feast-ci:latest
name: unit test java 8
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
# TODO add JDK 8 to gcr.io/kf-feast/feast-ci image
run: |
apt update
apt install -y software-properties-common
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update
apt install -y adoptopenjdk-8-hotspot
mvn -B test -pl spark/spark-ingestion-job,spark/spark-historical-retriever-job -Djvm=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java

unit-test-python:
runs-on: ubuntu-latest
container: gcr.io/kf-feast/feast-ci:latest
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ vendor

.terraform/
*.tfvars
*.tfstate
*.tfstate.backup

# python
# python
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ test-java:
test-java-with-coverage:
mvn --no-transfer-progress test jacoco:report-aggregate

test-java-8-with-coverage:
mvn --no-transfer-progress test -pl spark/spark-ingestion-job,spark/spark-historical-retriever-job jacoco:report-aggregate

build-java:
mvn clean verify

Expand Down
12 changes: 9 additions & 3 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-jose</artifactId>
<version>5.3.0.RELEASE</version>
</dependency>
</dependency>
<dependency>
<groupId>net.devh</groupId>
<artifactId>grpc-server-spring-boot-starter</artifactId>
Expand Down Expand Up @@ -299,7 +299,13 @@
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator-annotation-processor</artifactId>
<version>6.1.2.Final</version>
</dependency>
</dependency>

<dependency>
<groupId>dev.feast</groupId>
<artifactId>databricks-types</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
Expand All @@ -316,7 +322,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<version>5.6.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Loading