Retry platform-level errors in the isolated process for .NET isolated #964
Workflow file for this run
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
name: Smoke Test - .NET Isolated on Functions V4 | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main, dev ] | |
paths: | |
- 'src/**' | |
- 'test/SmokeTests/OOProcSmokeTests/DotNetIsolated/**' | |
pull_request: | |
branches: [ main, dev ] | |
paths: | |
- 'src/**' | |
- 'test/SmokeTests/OOProcSmokeTests/DotNetIsolated/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Install .NET versions | |
- name: Set up .NET Core 3.1 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '3.1.x' | |
- name: Set up .NET Core 2.1 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '2.1.x' | |
- name: Set up .NET Core 6.x | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.x' | |
- name: Set up .NET Core 8.x | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.x' | |
# Install Azurite | |
- name: Set up Node.js (needed for Azurite) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' # Azurite requires at least Node 18 | |
- name: Install Azurite | |
run: npm install -g azurite | |
- name: Restore WebJobs extension | |
run: dotnet restore $solution | |
- name: Build and pack WebJobs extension | |
run: cd ./src/WebJobs.Extensions.DurableTask && | |
mkdir ./out && | |
dotnet build -c Release WebJobs.Extensions.DurableTask.csproj --output ./out && | |
mkdir ~/packages && | |
dotnet nuget push ./out/Microsoft.Azure.WebJobs.Extensions.DurableTask.*.nupkg --source ~/packages && | |
dotnet nuget add source ~/packages | |
- name: Build .NET Isolated Smoke Test | |
run: cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated && | |
dotnet restore --verbosity normal && | |
dotnet build -c Release | |
- name: Install core tools | |
run: npm i -g azure-functions-core-tools@4 --unsafe-perm true | |
# Run smoke tests | |
- name: check that DF extension was installed | |
run: ls ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated/bin/Release/net6.0/ | |
# Run smoke tests | |
- name: Run smoke tests | |
run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 & | |
cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated && func host start & ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated/run-smoke-tests.ps1 -HttpStartPath api/durable_HttpStartTimeoutOrchestrator | |
# # Validation is blocked on https://github.com/Azure/azure-functions-host/issues/7995 | |
# - name: Run V4 .NET Isolated Smoke Test | |
# run: test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/StartHelloCitiesTyped | |
# shell: pwsh | |
# # Test that OOM errors are recoverable | |
# - name: Run V4 .NET OOM Test | |
# run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 --skipApiVersionCheck & test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/durable_HttpStartOOMOrchestrator | |
# shell: pwsh | |
# # Test that FailFast errors are recoverable | |
# - name: Run V4 .NET FailFast Test | |
# run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 --skipApiVersionCheck & test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/durable_HttpStartProcessExitOrchestrator | |
# shell: pwsh | |
# # Test that timeout errors are recoverable | |
# - name: Run V4 .NET FailFast Test | |
# run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 --skipApiVersionCheck & test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/durable_HttpStartTimeoutOrchestrator | |
# shell: pwsh |