Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main02 #13

Open
wants to merge 78 commits into
base: snowflake-source-scala-update
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
88a0348
Update outdated docs (WASB_ to BLOB_) (#850)
loomlike Nov 11, 2022
0c2d936
Update registry nightly deploy CICD (#853)
blrchen Nov 12, 2022
e2ee979
Windoze/purview registry error log (#851)
windoze Nov 12, 2022
8511289
Fix duplicate action id in registry CICD (#854)
blrchen Nov 14, 2022
5903842
Improve Feathr Client initialisation logs (#856)
blrchen Nov 14, 2022
4e60297
Enhance error messages of synapse jobs (#855)
enya-yx Nov 14, 2022
14f0f12
Fix avro files read failure under timePartitionPattern paths (#808)
enya-yx Nov 14, 2022
1028357
Bump version to 0.9.0-rc3 (#860)
blrchen Nov 16, 2022
99eac59
Enhance sample notebook (#848)
enya-yx Nov 16, 2022
c5cc1f8
Bump loader-utils from 2.0.3 to 2.0.4 in /ui (#861)
dependabot[bot] Nov 17, 2022
ae05fbf
Fix unexpected 500 error from PurView registry. (#863)
windoze Nov 17, 2022
44716c1
Include noop-1.0.jar into the wheel (#859)
windoze Nov 17, 2022
9f2ab71
PurView returns wrong status code on error (#864)
windoze Nov 17, 2022
a4dc54f
Expose Registry status code through RBAC layer (#866)
Yuqing-cat Nov 18, 2022
7ebf604
Fix purview registry docker build break (#868)
blrchen Nov 18, 2022
8237b10
Fix PV registry bug (#871)
windoze Nov 18, 2022
3c426ff
Bump version to 0.9.0 (#867)
blrchen Nov 18, 2022
5d565a9
Clean up some links that's referring to LinkedIn (#872)
xiaoyongzhu Nov 18, 2022
32d9333
Insert test coverage check for python client into github pipeline (#862)
enya-yx Nov 21, 2022
69e6cc6
Create docs on how to update Feathr client and registry, and how to p…
xiaoyongzhu Nov 22, 2022
ca09fe3
Add a custom pytest marker config to pyproject.toml (#786)
loomlike Nov 22, 2022
26c14b4
fix broken link (#874)
xiaoyongzhu Nov 22, 2022
c21d89d
Separate out snowflake source (#836)
aabbasi-hbo Nov 23, 2022
799fac0
Decouple build feature code (#838)
xiaoyongzhu Nov 23, 2022
15550ca
Refining example, add utilities, and fix xdist test error (#794)
loomlike Nov 23, 2022
654d56e
Add 'format' arg to get_result_df (#885)
loomlike Nov 29, 2022
758f249
Add a new compute model to Feathr (#820)
rakeshkashyap123 Nov 30, 2022
87bc3cf
Add job_tag to materialization job submission. Change get_result_df's…
loomlike Dec 1, 2022
1784e9a
Bump minimatch and recursive-readdir in /ui (#889)
dependabot[bot] Dec 1, 2022
5e8803a
Add docs for checking/improving test coverage (#884)
enya-yx Dec 1, 2022
73d2815
Expose deletion API for projects/features (#852)
aabbasi-hbo Dec 1, 2022
4efb683
Add KeyError for Key and Feature Type (#877)
Yuqing-cat Dec 2, 2022
f8a7e76
add sql credential pass through doc (#883)
Yuqing-cat Dec 2, 2022
adab8d8
update registry test, modify log (#892)
Yuqing-cat Dec 2, 2022
1ccbcdf
Fix empty job tag (#895)
loomlike Dec 2, 2022
d42d0ab
Add feature embedding example (#881)
loomlike Dec 2, 2022
5018d7b
Bump decode-uri-component from 0.2.0 to 0.2.2 in /ui (#896)
dependabot[bot] Dec 2, 2022
3c48645
Add 'postfixPath' to support time pattern in the middle of paths (#858)
enya-yx Dec 2, 2022
90a6b6d
Fix test cases caused by invalid key type (#897)
enya-yx Dec 3, 2022
e9495d4
Add a new method for standard DotProduct for users seeking non-normal…
shashankiiit Dec 5, 2022
77571fd
Fix broken CI tests and test release code (#894)
rakeshkashyap123 Dec 7, 2022
786301f
Fix test failure (#904)
jaymo001 Dec 7, 2022
2852a5c
UI add feature the deletion for projects/features/dataSource (#909)
Fendoe Dec 9, 2022
9a98253
Fixing Bugs reported during oncall (#908)
jainr Dec 9, 2022
bafff04
Ignore 'registry_utils' in test coverage (#907)
enya-yx Dec 9, 2022
e587042
Update azure_resource_provision.json (#912)
xiaoyongzhu Dec 9, 2022
cd4de09
Exclude pegasus jars and release version (#913)
rakeshkashyap123 Dec 9, 2022
e25012a
Exclude pegasus data files (#916)
rakeshkashyap123 Dec 12, 2022
8c8f667
Fix auto-tz casting bug (#905)
bozhonghu Dec 15, 2022
8c8dfde
Support printing features and returning keys when getting features fr…
enya-yx Dec 16, 2022
66480d7
Adding Continous Integration == ON flag in app settings (#927)
jainr Dec 16, 2022
e53ce96
Add use_env_var flag to client (#923)
loomlike Dec 22, 2022
3b40fed
Format docs and add tech talks (#931)
xiaoyongzhu Dec 24, 2022
cd2d6fa
Add is_synapse() (#929)
loomlike Dec 27, 2022
4cd24f1
publish fat jar in maven update action (#935)
Yuqing-cat Jan 3, 2023
4b721a3
#926 (#928)
Yuqing-cat Jan 4, 2023
2bdb94f
Support get online features by composite keys (#919)
enya-yx Jan 4, 2023
9b04bda
React best practice implementations in ui code (#938)
blrchen Jan 4, 2023
b6c1f0e
fix numpy version conflict w/ pyspark (#940)
loomlike Jan 4, 2023
af0e66e
Add presentation for Feathr community talk (#941)
xiaoyongzhu Jan 5, 2023
9c338bc
Add FIRST aggregation for look up feature (#917)
jaymo001 Jan 5, 2023
f0e1079
Disable auth if Feathr is deployed with RBAC set to off (#925)
Fendoe Jan 5, 2023
01ea96d
Update sample notebooks (fraud detection and recommendation examples)…
loomlike Jan 6, 2023
308321d
Windoze/spark sql source (#839)
windoze Jan 6, 2023
e1895bb
Updates on docs (#950)
blrchen Jan 10, 2023
2db1aad
Lock python deps version for registry projects (#946)
blrchen Jan 10, 2023
c967f6d
Add pytest cases and check test coverage for sql-registry and purview…
enya-yx Jan 10, 2023
be81c3f
Fix delete entity function bug for #852 (#952)
Yuqing-cat Jan 10, 2023
bf01f24
Remove hadoop dependency (#949)
rakeshkashyap123 Jan 10, 2023
0873c6f
Create new feature form (#936)
Fendoe Jan 11, 2023
7a86d4d
set purview name environment variable in workflow (#956)
enya-yx Jan 11, 2023
a923a9d
Bug fix - Fraud detection sample notebook chart error. (#948)
loomlike Jan 11, 2023
3a76b1c
update registry start shell (#954)
Yuqing-cat Jan 12, 2023
049ab9a
Improve error message for checking feature keys (#959)
enya-yx Jan 12, 2023
8c74f94
merge changes
aabbasi-hbo Jan 13, 2023
f33cc7c
changes
aabbasi-hbo Jan 18, 2023
b23428e
update imports
aabbasi-hbo Jan 18, 2023
bdda635
remove double
aabbasi-hbo Jan 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# These are explicitly windows files and should use crlf
*.bat text eol=crlf

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
- type: markdown
attributes:
value: |
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/linkedin/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/feathr-ai/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
#### Please fill in this bug report template to ensure a timely and thorough response.
- type: dropdown
id: contribution
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/doc_improvements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
- type: markdown
attributes:
value: |
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/linkedin/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/feathr-ai/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
#### Please fill in this non-technical template to ensure a timely and thorough response.
- type: dropdown
id: contribution
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
- type: markdown
attributes:
value: |
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/linkedin/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/feathr-ai/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
#### Please fill in this bug report template to ensure a timely and thorough response.
- type: dropdown
id: contribution
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/non_technical_request_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
- type: markdown
attributes:
value: |
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/linkedin/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
Thank you for submitting an issue. Please refer to our [contribution guide](https://github.com/feathr-ai/feathr/blob/main/docs/dev_guide/new_contributor_guide.md) for additional information.
#### Please fill in this non-technical template to ensure a timely and thorough response.
- type: dropdown
id: contribution
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/.coveragerc_db
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
omit = feathr_project/feathr/registry/_feature_registry_purview.py
feathr_project/feathr/registry/registry_utils.py
feathr_project/feathr/spark_provider/_synapse_submission.py
feathr_project/feathr/spark_provider/_localspark_submission.py
[report]
exclude_lines =
pragma: no cover
@abstract
9 changes: 9 additions & 0 deletions .github/workflows/.coveragerc_local
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
omit = feathr_project/feathr/registry/_feature_registry_purview.py
feathr_project/feathr/registry/registry_utils.py
feathr_project/feathr/spark_provider/_databricks_submission.py
feathr_project/feathr/spark_provider/_synapse_submission.py
[report]
exclude_lines =
pragma: no cover
@abstract
9 changes: 9 additions & 0 deletions .github/workflows/.coveragerc_sy
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
omit = feathr_project/feathr/registry/_feature_registry_purview.py
feathr_project/feathr/registry/registry_utils.py
feathr_project/feathr/spark_provider/_databricks_submission.py
feathr_project/feathr/spark_provider/_localspark_submission.py
[report]
exclude_lines =
pragma: no cover
@abstract
40 changes: 22 additions & 18 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow builds the docker container and publishes to dockerhub with appropriate tag
# It has two triggers,
# It has two triggers,
# 1. daily i.e. runs everyday at specific time.
# 2. Anytime a new branch is created under releases

Expand All @@ -15,27 +15,26 @@ on:
branches:
- 'releases/**'


jobs:
build_and_push_image_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: feathrfeaturestore/feathr-registry

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
Expand All @@ -45,27 +44,32 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# Deploy the docker container to the three test environments for feathr
# Trigger Azure Web App webhooks to pull the latest nightly image
deploy:
runs-on: ubuntu-latest
needs: build_and_push_image_to_registry



steps:
- name: Deploy to Feathr Purview Registry Azure Web App
id: deploy-to-purview-webapp
- name: Deploy to Azure Web App feathr-registry-purview
id: deploy-to-feathr-registry-purview
uses: distributhor/[email protected]
env:
webhook_url: ${{ secrets.AZURE_WEBAPP_FEATHR_PURVIEW_REGISTRY_WEBHOOK }}
webhook_url: ${{ secrets.AZURE_WEBAPP_FEATHR_REGISTRY_PURVIEW_WEBHOOK }}

- name: Deploy to Feathr RBAC Registry Azure Web App
id: deploy-to-rbac-webapp
- name: Deploy to Azure Web App feathr-registry-purview-rbac
id: deploy-to-feathr-registry-purview-rbac
uses: distributhor/[email protected]
env:
webhook_url: ${{ secrets.AZURE_WEBAPP_FEATHR_RBAC_REGISTRY_WEBHOOK }}

- name: Deploy to Feathr SQL Registry Azure Web App
id: deploy-to-sql-webapp
webhook_url: ${{ secrets.AZURE_WEBAPP_FEATHR_REGISTRY_PURVIEW_RBAC_WEBHOOK }}

- name: Deploy to Azure Web App feathr-registry-sql
id: deploy-to-feathr-registry-sql
uses: distributhor/[email protected]
env:
webhook_url: ${{ secrets.AZURE_WEBAPP_FEATHR_REGISTRY_SQL_WEBHOOK }}

- name: Deploy to Azure Web App feathr-registry-sql-rbac
id: deploy-to-feathr-registry-sql-rbac
uses: distributhor/[email protected]
env:
webhook_url: ${{ secrets.AZURE_WEBAPP_FEATHR_SQL_REGISTRY_WEBHOOK }}
webhook_url: ${{ secrets.AZURE_WEBAPP_FEATHR_REGISTRY_SQL_RBAC_WEBHOOK }}
33 changes: 25 additions & 8 deletions .github/workflows/publish-to-maven.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Publish package to the Maven Central Repository
on:
on:
push:
# This pipeline will get triggered everytime there is a new tag created.
# It is required
# It is required
tags: ["*"]

jobs:
publish-to-maven:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v2

# Setting up JDK 8, this is required to build Feathr
- name: Set up JDK 8
uses: actions/setup-java@v2
Expand All @@ -27,12 +27,29 @@ jobs:

# CI release command defaults to publishSigned
# Sonatype release command defaults to sonaTypeBundleRelease
# https://github.com/sbt/sbt-ci-release
- name: Sbt ci release
run: |
sbt ci-release
- name: Gradle publish
if: startsWith(github.head_ref, 'releases/v')
run: gradle clean publish
env:
PGP_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
PGP_SECRET: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

# Publish Released Fat Jar to Blob Storage
- name: Gradle build
run: |
./gradlew build
# remote folder for CI upload
echo "CI_SPARK_REMOTE_JAR_FOLDER=feathr_jar_release" >> $GITHUB_ENV
# get local jar name without path
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls build/libs/*.jar)" >> $GITHUB_ENV

- name: Azure Blob Storage Upload (Overwrite)
uses: fixpoint/azblob-upload-artifact@v4
with:
connection-string: ${{secrets.SPARK_JAR_BLOB_CONNECTION_STRING}}
name: ${{ env.CI_SPARK_REMOTE_JAR_FOLDER}}
path: ${{ env.FEATHR_LOCAL_JAR_FULL_NAME_PATH}}
container: ${{secrets.SPARK_JAR_BLOB_CONTAINER}}
cleanup: "true"
82 changes: 58 additions & 24 deletions .github/workflows/pull_request_push_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ on:
- "docs/**"
- "ui/**"
- "**/README.md"

schedule:
# Runs daily at 1 PM UTC (9 PM CST), will send notification to TEAMS_WEBHOOK
- cron: '00 13 * * *'

jobs:
sbt_test:
gradle_test:
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'pull_request' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test'))
steps:
Expand All @@ -41,7 +41,7 @@ jobs:
java-version: "8"
distribution: "temurin"
- name: Run tests
run: sbt clean && sbt test
run: ./gradlew clean && ./gradlew test

python_lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,15 +75,15 @@ jobs:
with:
java-version: "8"
distribution: "temurin"
- name: Build JAR
- name: Gradle build
run: |
sbt assembly
./gradlew build
# remote folder for CI upload
echo "CI_SPARK_REMOTE_JAR_FOLDER=feathr_jar_github_action_$(date +"%H_%M_%S")" >> $GITHUB_ENV
# get local jar name without paths so version change won't affect it
echo "FEATHR_LOCAL_JAR_NAME=$(ls target/scala-2.12/*.jar| xargs -n 1 basename)" >> $GITHUB_ENV
echo "FEATHR_LOCAL_JAR_NAME=$(ls build/libs/*.jar| xargs -n 1 basename)" >> $GITHUB_ENV
# get local jar name without path
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls target/scala-2.12/*.jar)" >> $GITHUB_ENV
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls build/libs/*.jar)" >> $GITHUB_ENV
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -129,9 +129,8 @@ jobs:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
run: |
# run only test with databricks. run in 4 parallel jobs
pytest -n 6 feathr_project/test/

# run only test with databricks. run in 6 parallel jobs
pytest -n 6 --cov-report term-missing --cov=feathr_project/feathr feathr_project/test --cov-config=.github/workflows/.coveragerc_db
azure_synapse_test:
# might be a bit duplication to setup both the azure_synapse test and databricks test, but for now we will keep those to accelerate the test speed
runs-on: ubuntu-latest
Expand All @@ -145,15 +144,16 @@ jobs:
with:
java-version: "8"
distribution: "temurin"
- name: Build JAR

- name: Gradle build
run: |
sbt assembly
./gradlew build
# remote folder for CI upload
echo "CI_SPARK_REMOTE_JAR_FOLDER=feathr_jar_github_action_$(date +"%H_%M_%S")" >> $GITHUB_ENV
# get local jar name without paths so version change won't affect it
echo "FEATHR_LOCAL_JAR_NAME=$(ls target/scala-2.12/*.jar| xargs -n 1 basename)" >> $GITHUB_ENV
echo "FEATHR_LOCAL_JAR_NAME=$(ls build/libs/*.jar| xargs -n 1 basename)" >> $GITHUB_ENV
# get local jar name without path
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls target/scala-2.12/*.jar)" >> $GITHUB_ENV
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls build/libs/*.jar)" >> $GITHUB_ENV
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -200,8 +200,8 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
run: |
# skip databricks related test as we just ran the test; also seperate databricks and synapse test to make sure there's no write conflict
# run in 4 parallel jobs to make the time shorter
pytest -n 6 feathr_project/test/
# run in 6 parallel jobs to make the time shorter
pytest -n 6 -m "not databricks" --cov-report term-missing --cov=feathr_project/feathr feathr_project/test --cov-config=.github/workflows/.coveragerc_sy

local_spark_test:
runs-on: ubuntu-latest
Expand All @@ -215,15 +215,16 @@ jobs:
with:
java-version: "8"
distribution: "temurin"
- name: Build JAR

- name: Gradle build
run: |
sbt assembly
./gradlew build
# remote folder for CI upload
echo "CI_SPARK_REMOTE_JAR_FOLDER=feathr_jar_github_action_$(date +"%H_%M_%S")" >> $GITHUB_ENV
# get local jar name without paths so version change won't affect it
echo "FEATHR_LOCAL_JAR_NAME=$(ls target/scala-2.12/*.jar| xargs -n 1 basename)" >> $GITHUB_ENV
echo "FEATHR_LOCAL_JAR_NAME=$(ls build/libs/*.jar| xargs -n 1 basename)" >> $GITHUB_ENV
# get local jar name without path
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls target/scala-2.12/*.jar)" >> $GITHUB_ENV
echo "FEATHR_LOCAL_JAR_FULL_NAME_PATH=$(ls build/libs/*.jar)" >> $GITHUB_ENV
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -259,11 +260,44 @@ jobs:
SQL1_PASSWORD: ${{secrets.SQL1_PASSWORD}}
run: |
# skip cloud related tests
pytest feathr_project/test/test_local_spark_e2e.py
pytest --cov-report term-missing --cov=feathr_project/feathr/spark_provider feathr_project/test/test_local_spark_e2e.py --cov-config=.github/workflows/.coveragerc_local

registry_test:
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'pull_request' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'registry test'))
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: "8"
distribution: "temurin"
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Feathr Package
run: |
python -m pip install --upgrade pip
if [ -f ./registry/test/requirements.txt ]; then pip install -r ./registry/test/requirements.txt; fi
if [ -f ./registry/purview-registry/requirements.txt ]; then pip install -r ./registry/purview-registry/requirements.txt; fi
if [ -f ./registry/sql-registry/requirements.txt ]; then pip install -r ./registry/sql-registry/requirements.txt; fi
- name: Run Registry Test Cases
env:
AZURE_CLIENT_ID: ${{secrets.AZURE_CLIENT_ID}}
AZURE_TENANT_ID: ${{secrets.AZURE_TENANT_ID}}
AZURE_CLIENT_SECRET: ${{secrets.AZURE_CLIENT_SECRET}}
PURVIEW_NAME: "feathrazuretest3-purview1"
CONNECTION_STR: ${{secrets.CONNECTION_STR}}
run: |
pytest --cov-report term-missing --cov=registry/sql-registry/registry --cov-config=registry/test/.coveragerc registry/test/test_sql_registry.py
pytest --cov-report term-missing --cov=registry/purview-registry/registry --cov-config=registry/test/.coveragerc registry/test/test_purview_registry.py

failure_notification:
# If any failure, warning message will be sent
needs: [sbt_test, python_lint, databricks_test, azure_synapse_test, local_spark_test]
needs: [gradle_test, python_lint, databricks_test, azure_synapse_test, local_spark_test]
runs-on: ubuntu-latest
if: failure() && github.event_name == 'schedule'
steps:
Expand All @@ -273,12 +307,12 @@ jobs:

notification:
# Final Daily Report with all job status
needs: [sbt_test, python_lint, databricks_test, azure_synapse_test, local_spark_test]
needs: [gradle_test, python_lint, databricks_test, azure_synapse_test, local_spark_test]
runs-on: ubuntu-latest
if: always() && github.event_name == 'schedule'
steps:
- name: Get Date
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Notification
run: |
curl -H 'Content-Type: application/json' -d '{"text": "${{env.NOW}} Daily Report: 1. SBT Test ${{needs.sbt_test.result}}, 2. Python Lint Test ${{needs.python_lint.result}}, 3. Databricks Test ${{needs.databricks_test.result}}, 4. Synapse Test ${{needs.azure_synapse_test.result}} , 5. LOCAL SPARK TEST ${{needs.local_spark_test.result}}. Link: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' ${{ secrets.TEAMS_WEBHOOK }}
curl -H 'Content-Type: application/json' -d '{"text": "${{env.NOW}} Daily Report: 1. Gradle Test ${{needs.gradle_test.result}}, 2. Python Lint Test ${{needs.python_lint.result}}, 3. Databricks Test ${{needs.databricks_test.result}}, 4. Synapse Test ${{needs.azure_synapse_test.result}} , 5. LOCAL SPARK TEST ${{needs.local_spark_test.result}}. Link: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' ${{ secrets.TEAMS_WEBHOOK }}
Loading