Skip to content

Commit

Permalink
Merge branch 'add-appinsights-logging' into add-appinsights-logging-l…
Browse files Browse the repository at this point in the history
…atest-release
  • Loading branch information
diondrapeck committed Nov 9, 2023
2 parents c5964f6 + d22f5b7 commit 2f234c2
Show file tree
Hide file tree
Showing 359 changed files with 2,296 additions and 810 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-component-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml component create -f assets/component/pipeline.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-component-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml component create -f assets/component/train.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-cloud-file-https.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/cloud-file-https.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-cloud-file-wasbs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/cloud-file-wasbs.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-cloud-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/cloud-file.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-cloud-folder-https.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/cloud-folder-https.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-cloud-folder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/cloud-folder.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-cloud-mltable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/cloud-mltable.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-iris-csv-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/iris-csv-example.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-local-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/local-file.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-local-folder-sampledata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/local-folder-sampledata.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-local-folder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/local-folder.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
8 changes: 6 additions & 2 deletions .github/workflows/cli-assets-data-local-mltable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh";
az ml data create -f assets/data/local-mltable.yml > sample_log.txt 2>&1
cat sample_log.txt
working-directory: cli
- name: Determine Failure Reason
run: |
cat sample_log.txt
failure_reason="N/A"
if [ "${{ job.status }}" == "failure" ]; then
if grep -q "ResourceNotReady" sample_log.txt; then
Expand All @@ -58,6 +58,10 @@ jobs:
failure_reason="QuotaIssue"
elif grep -q "ParentResourceNotFound" sample_log.txt; then
failure_reason="ParentResourceNotFound"
elif grep -q "already exists" sample_log.txt; then
failure_reason="ResourceAlreadyExists"
elif grep -q "StorageAccountTypeConversionNotAllowed" sample_log.txt; then
failure_reason="InvalidStorageAccount"
else
failure_reason="UncategorizedFailure"
fi
Expand All @@ -70,5 +74,5 @@ jobs:
uses: syedhassaanahmed/app-insights-event-action@main
with:
instrumentation-key: "${{ secrets.APP_INSIGHTS_INSTRUMENTATION_KEY }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}"
event-name: "${{ job.status }}_${{ env.FAILURE_REASON }}_${{ github.ref_name }}"
if: always()
Loading

0 comments on commit 2f234c2

Please sign in to comment.