-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automation test for featurestore cli notebooks (#2668)
* Add automation test for featurestore cli notebooks * Sample updates for AML Spark managed VNet GA. (#2656) * Sample updates for AML Spark managed VNet GA. * Updated notebook title. Triggering build to test. * Updated workspace name to include timestamp. Triggering build to test. * Shortened VNet workspace name to meet validation. * README.md clean-up and fixes for AML Spark samples. * README.md clean-up and fixes for AML Spark samples. * chore: Remove 'Send IcM on Failure' step from tutorial workflows (#2670) * chore: Remove 'Send IcM on Failure' step that hasn't been in use for a while * chore: Run tutorials/readme.py * chore: Remove unused local 'generate-icm' action * update cron schedules to avoid endpoint deletion from automated resource cleanup (#2672) * change starting hour for workflow * update cron for text mc mlflow * use python 3.8.* (#2678) * use python 3.8.18 * Update cleanup.yml * update usepython v4 * Update workstation_env.yml (#2680) * Examples for online inference for LLaVA (#2671) * Rough version of ITT notebook. * Working version of the notebook. * Minor improvements. * Rough version of the CLI demo. * Reformat with black. * Remove mode parameter in call to prepare_data.py. * Make code cells easier to read. * Minor readability improvement. * Format with black. * Minor fixes and reformatting. * Reformat with black. * Update workstation_env.yml (#2681) delete extraneous space * update vision FT examples corresponding to recent component update (#2650) * updating changes with ME component * updating MMOD as well * update MMOD cli * separate section for model evaluation component * remove ds ort true for classification * black check * Remove v1 references (#2675) * Remove v1 samples from v2 repo * Remove v1 from table of contents * Remove v1 test files * Remove v1 test files * Remove v1 folder from README * Remove v1 folder * Remove v1 tests * Delete v1 files * Restore custom-container directory * Restore custom-container/triton directory --------- Co-authored-by: Yogi Pandey <20666257+ynpandey@users.noreply.github.com> Co-authored-by: kdestin <101366538+kdestin@users.noreply.github.com> Co-authored-by: Rehaan Bhimani <rbhimani@microsoft.com> Co-authored-by: Ada <61294872+adrosa@users.noreply.github.com> Co-authored-by: Sheri Gilley <sgilley@microsoft.com> Co-authored-by: rdondera-microsoft <98922913+rdondera-microsoft@users.noreply.github.com> Co-authored-by: shubhamiit <41925087+shubhamiit@users.noreply.github.com> Co-authored-by: Diondra <16376603+diondrapeck@users.noreply.github.com>
- Loading branch information
1 parent
868c8d8
commit 55dffe9
Showing
9 changed files
with
412 additions
and
38 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
.github/workflows/sdk-featurestore_sample-test_featurestore_cli_samples.yml
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,80 @@ | ||
# This code is autogenerated. | ||
# Code is generated by running custom script: python3 readme.py | ||
# Any manual changes to this file may cause incorrect behavior. | ||
# Any manual changes will be overwritten if the code is regenerated. | ||
|
||
name: sdk-featurestore_sample-test_featurestore_cli_samples | ||
# This file is created by sdk/python/readme.py. | ||
# Please do not edit directly. | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "56 10/12 * * *" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- sdk/python/featurestore_sample/** | ||
- .github/workflows/sdk-featurestore_sample-test_featurestore_cli_samples.yml | ||
- sdk/python/dev-requirements.txt | ||
- infra/bootstrapping/** | ||
- sdk/python/setup.sh | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check out repo | ||
uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- name: pip install notebook reqs | ||
run: pip install -r sdk/python/dev-requirements.txt | ||
- name: azure login | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{secrets.AZUREML_CREDENTIALS}} | ||
- name: bootstrap resources | ||
run: | | ||
echo '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'; | ||
bash bootstrap.sh | ||
working-directory: infra/bootstrapping | ||
continue-on-error: false | ||
- name: setup SDK | ||
run: | | ||
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh"; | ||
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh"; | ||
bash setup.sh | ||
working-directory: sdk/python | ||
continue-on-error: true | ||
- name: setup-cli | ||
run: | | ||
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh"; | ||
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh"; | ||
bash setup.sh | ||
working-directory: cli | ||
continue-on-error: true | ||
- name: setup feature-store resources | ||
run: | | ||
bash -x setup-resources-cli.sh test_featurestore_cli_samples.ipynb | ||
working-directory: sdk/python/featurestore_sample | ||
continue-on-error: true | ||
- name: run featurestore_sample/test_featurestore_cli_samples.ipynb | ||
run: | | ||
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh"; | ||
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh"; | ||
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" generate_workspace_config "../../.azureml/config.json"; | ||
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" replace_template_values "test_featurestore_cli_samples.ipynb"; | ||
[ -f "../../.azureml/config" ] && cat "../../.azureml/config"; | ||
papermill -k python test_featurestore_cli_samples.ipynb test_featurestore_cli_samples.output.ipynb | ||
working-directory: sdk/python/featurestore_sample | ||
- name: upload notebook's working folder as an artifact | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test_featurestore_cli_samples | ||
path: sdk/python/featurestore_sample |
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,33 @@ | ||
from pyspark.sql import SparkSession | ||
|
||
spark = SparkSession.builder.appName("AccessData").getOrCreate() | ||
|
||
import os | ||
|
||
for path, subdirs, files in os.walk("./"): | ||
for name in files: | ||
print(os.path.join(path, name)) | ||
|
||
print("=======Test CLI Notebook 1============") | ||
with open( | ||
"notebooks/sdk_and_cli/1. Develop a feature set and register with managed feature store.py" | ||
) as f: | ||
exec(f.read()) | ||
|
||
print("=======Test CLI Notebook 2============") | ||
with open( | ||
"notebooks/sdk_and_cli/2. Enable materialization and backfill feature data.py" | ||
) as f: | ||
exec(f.read()) | ||
|
||
print("=======Test CLI Notebook 3============") | ||
with open( | ||
"notebooks/sdk_and_cli/3. Experiment and train models using features.py" | ||
) as f: | ||
exec(f.read()) | ||
|
||
print("=======Test CLI Notebook 4============") | ||
with open( | ||
"notebooks/sdk_and_cli/4. Enable recurrent materialization and run batch inference.py" | ||
) as f: | ||
exec(f.read()) |
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.