-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extended integration tests * Split integration tests across stages * Fixed integration test build variable name * Update README.md * Update README.md * Delete test_spec.json
- Loading branch information
Showing
23 changed files
with
288 additions
and
110 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"stage": "2", | ||
"short": "eda1", | ||
"steps": "CIDPTMV", | ||
"minutes": "20", | ||
"throughput": "1", | ||
"extra_args": [ | ||
"-k", | ||
"rowstore" | ||
] | ||
} | ||
] |
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,10 @@ | ||
[ | ||
{ | ||
"stage": "2", | ||
"short": "edc1", | ||
"steps": "CIDPTMV", | ||
"minutes": "20", | ||
"throughput": "1", | ||
"extra_args": [] | ||
} | ||
] |
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,10 @@ | ||
[ | ||
{ | ||
"stage": "1", | ||
"short": "edd1", | ||
"steps": "CIPTMV", | ||
"minutes": "20", | ||
"throughput": "1", | ||
"extra_args": [] | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"stage": "2", | ||
"short": "efa1", | ||
"steps": "CIDPTMV", | ||
"minutes": "10", | ||
"throughput": "1", | ||
"extra_args": [ | ||
"-k", | ||
"rowstore" | ||
] | ||
} | ||
] |
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,13 @@ | ||
[ | ||
{ | ||
"stage": "2", | ||
"short": "efc1", | ||
"steps": "CIDPTMV", | ||
"minutes": "10", | ||
"throughput": "1", | ||
"extra_args": [ | ||
"-f", | ||
"Test0" | ||
] | ||
} | ||
] |
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,13 @@ | ||
[ | ||
{ | ||
"stage": "2", | ||
"short": "esa1", | ||
"steps": "CIDPTMV", | ||
"minutes": "10", | ||
"throughput": "1", | ||
"extra_args": [ | ||
"-k", | ||
"rowstore" | ||
] | ||
} | ||
] |
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,10 @@ | ||
[ | ||
{ | ||
"stage": "2", | ||
"short": "esc1", | ||
"steps": "CIDPTMV", | ||
"minutes": "10", | ||
"throughput": "1", | ||
"extra_args": [] | ||
} | ||
] |
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,10 @@ | ||
[ | ||
{ | ||
"stage": "2", | ||
"short": "kdc1", | ||
"steps": "CIDPTMV", | ||
"minutes": "20", | ||
"throughput": "1", | ||
"extra_args": [] | ||
} | ||
] |
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,13 @@ | ||
[ | ||
{ | ||
"stage": "3", | ||
"short": "hdw1", | ||
"steps": "CIDPTMV", | ||
"minutes": "20", | ||
"throughput": "1", | ||
"extra_args": [ | ||
"-k", | ||
"columnstore" | ||
] | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,56 @@ | ||
trigger: | ||
- master | ||
|
||
jobs: | ||
|
||
- job: generator | ||
- job: start_agent | ||
steps: | ||
- bash: echo "##vso[task.setVariable variable=TaskList;isOutput=true]$(bash integration-tests/generate-task-list.sh)" | ||
name: GenerateTasks | ||
displayName: Generating list of integration test tasks | ||
- task: AzureCLI@1 | ||
inputs: | ||
azureSubscription: ARMConnection | ||
scriptLocation: 'inlineScript' | ||
inlineScript: az vm start -g "$AGENT_VM_RESOURCE_GROUP" -n "$AGENT_VM_NAME" | ||
displayName: 'start agent' | ||
|
||
- job: runner | ||
dependsOn: generator | ||
timeoutInMinutes: 180 | ||
- job: run_tests | ||
dependsOn: start_agent | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
strategy: | ||
maxParallel: 1 | ||
matrix: $[ dependencies.generator.outputs['GenerateTasks.TaskList'] ] | ||
name: streaming-at-scale | ||
variables: | ||
DATABRICKS_HOST: https://$(LOCATION).azuredatabricks.net | ||
steps: | ||
|
||
- bash: > | ||
set -e; | ||
sudo apt install python3-setuptools; | ||
sudo pip3 install wheel databricks-cli; | ||
databricks clusters spark-versions; | ||
echo "##vso[task.setVariable variable=DATABRICKS_TOKEN]$DATABRICKS_TOKEN"; | ||
- bash: | | ||
set -e | ||
sudo apt install -y python3-pip python3-setuptools | ||
sudo pip3 install wheel databricks-cli | ||
databricks clusters spark-versions | ||
echo "##vso[task.setVariable variable=DATABRICKS_TOKEN]$DATABRICKS_TOKEN" | ||
displayName: Install Databricks CLI and expose token to next tasks | ||
env: | ||
DATABRICKS_TOKEN: $(DATABRICKS_PAT_TOKEN) | ||
- script: | | ||
pip3 install pytest pytest-azurepipelines flaky | ||
displayName: 'Install test dependencies' | ||
- task: AzureCLI@1 | ||
displayName: Check RG name available | ||
inputs: | ||
azureSubscription: ARMConnection | ||
scriptPath: integration-tests/check-resource-group.sh | ||
scriptLocation: 'inlineScript' | ||
inlineScript: cd integration-tests && python3 -m pytest -s --stage 1 | ||
displayName: 'pytest stage 1' | ||
|
||
- task: AzureCLI@1 | ||
displayName: Run test | ||
inputs: | ||
azureSubscription: ARMConnection | ||
workingDirectory: $(TestDir) | ||
scriptPath: $(TestDir)/create-solution.sh | ||
arguments: -d $(RG_NAME) $(TestArgs) | ||
scriptLocation: 'inlineScript' | ||
inlineScript: cd integration-tests && python3 -m pytest -s --stage 2 | ||
displayName: 'pytest stage 2' | ||
|
||
- task: AzureCLI@1 | ||
displayName: Delete RG | ||
condition: always() # this step will always run, even if the pipeline is cancelled | ||
inputs: | ||
azureSubscription: ARMConnection | ||
scriptPath: integration-tests/delete-resource-group.sh | ||
scriptLocation: 'inlineScript' | ||
inlineScript: cd integration-tests && python3 -m pytest -s --stage 3 | ||
# Provide service principal (for Azure Data Explorer RBAC setup) | ||
addSpnToEnvironment: true | ||
displayName: 'pytest stage 3' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def pytest_addoption(parser): | ||
parser.addoption("--stage", required=True) |
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.