Skip to content

Commit

Permalink
CI: Skip AzureML and Integration tests (#1212)
Browse files Browse the repository at this point in the history
## Describe your changes
Storage accounts are currently not accessible. Commenting out or
skipping affected tests until a solution is found.

## Checklist before requesting a review
- [ ] Add unit tests for this change.
- [ ] Make sure all tests can pass.
- [ ] Update documents if necessary.
- [ ] Lint and apply fixes to your code by running `lintrunner -a`
- [ ] Is this a user-facing change? If yes, give a description of this
change to be included in the release notes.
- [ ] Is this PR including examples changes? If yes, please remember to
update [example
documentation](https://github.com/microsoft/Olive/blob/main/docs/source/examples.md)
in a follow-up PR.

## (Optional) Issue link
  • Loading branch information
jambayk committed Jun 27, 2024
1 parent 7fa2c41 commit b59ef7d
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 39 deletions.
16 changes: 8 additions & 8 deletions .azure_pipelines/job_templates/olive-build-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
test_type: 'unit_test'
onnxruntime: ${{parameters.onnxruntime}}

- template: olive-test-template.yaml
parameters:
name: ${{parameters.name}}_Integration_Test_Olive
pool: ${{parameters.pool}}
device: ${{parameters.device}}
windows: ${{parameters.windows}}
test_type: 'integ_test'
onnxruntime: ${{parameters.onnxruntime}}
# - template: olive-test-template.yaml
# parameters:
# name: ${{parameters.name}}_Integration_Test_Olive
# pool: ${{parameters.pool}}
# device: ${{parameters.device}}
# windows: ${{parameters.windows}}
# test_type: 'integ_test'
# onnxruntime: ${{parameters.onnxruntime}}
56 changes: 28 additions & 28 deletions .azure_pipelines/olive-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ jobs:
bert_ptq_cpu:
exampleFolder: bert
exampleName: bert_ptq_cpu
bert_ptq_cpu_aml:
exampleFolder: bert
exampleName: bert_ptq_cpu_aml
# bert_ptq_cpu_aml:
# exampleFolder: bert
# exampleName: bert_ptq_cpu_aml
bert_ptq_cpu_docker:
exampleFolder: bert
exampleName: bert_ptq_cpu_docker
Expand All @@ -106,12 +106,12 @@ jobs:
whisper:
exampleFolder: whisper
exampleName: whisper
mobilenet_qnn_toolkit:
exampleFolder: mobilenet
exampleName: qnn_tooklit
inception_snpe_toolkit:
exampleFolder: inception
exampleName: snpe_toolkit
# mobilenet_qnn_toolkit:
# exampleFolder: mobilenet
# exampleName: qnn_tooklit
# inception_snpe_toolkit:
# exampleFolder: inception
# exampleName: snpe_toolkit
mobilenet_qnn_ep:
exampleFolder: mobilenet
exampleName: mobilenet_qnn_ep
Expand All @@ -126,9 +126,9 @@ jobs:
bert_ptq_cpu:
exampleFolder: bert
exampleName: bert_ptq_cpu
bert_ptq_cpu_aml:
exampleFolder: bert
exampleName: bert_ptq_cpu_aml
# bert_ptq_cpu_aml:
# exampleFolder: bert
# exampleName: bert_ptq_cpu_aml
resnet_ptq_cpu:
exampleFolder: resnet
exampleName: resnet_ptq_cpu
Expand All @@ -138,12 +138,12 @@ jobs:
whisper:
exampleFolder: whisper
exampleName: whisper
mobilenet_qnn_toolkit:
exampleFolder: mobilenet
exampleName: qnn_tooklit
inception_snpe_toolkit:
exampleFolder: inception
exampleName: snpe_toolkit
# mobilenet_qnn_toolkit:
# exampleFolder: mobilenet
# exampleName: qnn_tooklit
# inception_snpe_toolkit:
# exampleFolder: inception
# exampleName: snpe_toolkit
mobilenet_qnn_ep:
exampleFolder: mobilenet
exampleName: mobilenet_qnn_ep
Expand Down Expand Up @@ -174,16 +174,16 @@ jobs:
onnxruntime: onnxruntime
python_version: '3.8'

# Multiple EP Windows testing
- template: job_templates/olive-test-template.yaml
parameters:
name: Windows_CI_Multiple_EP_Test_Olive
pool: $(OLIVE_POOL_WIN2019)
device: 'cpu'
windows: 'True'
test_type: 'multiple_ep'
onnxruntime: onnxruntime
python_version: '3.10'
# # Multiple EP Windows testing
# - template: job_templates/olive-test-template.yaml
# parameters:
# name: Windows_CI_Multiple_EP_Test_Olive
# pool: $(OLIVE_POOL_WIN2019)
# device: 'cpu'
# windows: 'True'
# test_type: 'multiple_ep'
# onnxruntime: onnxruntime
# python_version: '3.10'

# build documents
- template: job_templates/olive-build-doc-template.yaml
Expand Down
8 changes: 6 additions & 2 deletions .azure_pipelines/olive-ort-last.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ jobs:
whisper:
exampleFolder: whisper
exampleName: whisper
# TODO(anyone): add mobilenet_qnn_ep when last version is 1.17.x
mobilenet_qnn_ep:
exampleFolder: mobilenet
exampleName: mobilenet_qnn_ep

# # Windows examples test
- template: job_templates/olive-example-template.yaml
Expand All @@ -90,7 +92,9 @@ jobs:
whisper:
exampleFolder: whisper
exampleName: whisper
# TODO(anyone): add mobilenet_qnn_ep when last version is 1.17.x
mobilenet_qnn_ep:
exampleFolder: mobilenet
exampleName: mobilenet_qnn_ep

# Linux GPU examples testing.
- template: job_templates/olive-example-template.yaml
Expand Down
3 changes: 3 additions & 0 deletions examples/test/test_bert_cuda_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def setup():
def test_bert(search_algorithm, execution_order, system, olive_json, enable_cuda_graph):
from olive.workflows import run as olive_run

if system == "aml_system":
pytest.skip("Skipping AML system test")

olive_config = patch_config(olive_json, search_algorithm, execution_order, system, is_gpu=True)
olive_config["passes"]["perf_tuning"]["config"]["enable_cuda_graph"] = enable_cuda_graph

Expand Down
3 changes: 3 additions & 0 deletions examples/test/test_resnet_ptq_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def test_resnet(search_algorithm, execution_order, system, olive_json):
# TODO(jambayk): add gpu e2e test
from olive.workflows import run as olive_run

if system == "aml_system":
pytest.skip("Skipping AML system test")

olive_config = patch_config(olive_json, search_algorithm, execution_order, system)

footprint = olive_run(olive_config)
Expand Down
3 changes: 3 additions & 0 deletions examples/test/test_resnet_vitis_ai_ptq_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def test_resnet(system, olive_json):
# TODO(jambayk): add gpu e2e test
from olive.workflows import run as olive_run

if system == "aml_system":
pytest.skip("Skipping AML system test")

olive_config = patch_config(olive_json, None, None, system)

footprint = olive_run(olive_config)
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ flake8
isort
lintrunner
lintrunner-adapters
pylint
pylint<3.2.4 # https://github.com/pylint-dev/pylint/issues/9751
ruff>=0.2.0
1 change: 1 addition & 0 deletions test/multiple_ep/test_aml_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# pylint: disable=attribute-defined-outside-init


@pytest.mark.skip(reason="Skip test on AzureML.")
@pytest.mark.skipif(platform.system() == OS.WINDOWS, reason="Skip test on Windows.")
class TestOliveAzureMLSystem:
@pytest.fixture(autouse=True)
Expand Down
1 change: 1 addition & 0 deletions test/multiple_ep/test_docker_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# pylint: disable=attribute-defined-outside-init


@pytest.mark.skip(reason="Skip test as it downloads resources from Azure storage.")
@pytest.mark.skipif(platform.system() == OS.WINDOWS, reason="Docker target does not support windows")
class TestOliveManagedDockerSystem:
@pytest.fixture(autouse=True)
Expand Down

0 comments on commit b59ef7d

Please sign in to comment.