azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

Intermittent CI failure finding deployment.

Open ellismg opened this issue 3 years ago • 0 comments

From a PR of mine, but I don't think the PR is the issue. Note that we tried to hit az deployment sub show to find the final deployment result before giving up. It's troubling that it didn't show up.

=== FAIL: cli/azd/test/functional Test_CLI_InfraCreateAndDelete/default (353.88s)
    cli_test.go:671: tempDir: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Test_CLI_InfraCreateAndDeletedefault495288206/001
    cli_test.go:131: environment name: azdtest-md5d172
    cli_test.go:746: running azd init
2022/10/10 22:05:45 forcing project directory to /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Test_CLI_InfraCreateAndDeletedefault495288206/001
2022/10/10 22:05:45 Run exec: 'az version --output json'
2022/10/10 22:05:46 Run exec: 'az account get-access-token --output json'
2022/10/10 22:05:47 Run exec: 'az account list-locations --query [?metadata.regionType == 'Physical'] --output json'
2022/10/10 22:05:50 Run exec: 'az account list --output json --query [].{name:name, id:id, isDefault:isDefault}'
2022/10/10 22:05:51 Run exec: 'az ad signed-in-user show --query objectId --output json'
2022/10/10 22:05:52 Run exec: 'az account get-access-token --output json'
    cli_test.go:746: running azd infra create
2022/10/10 22:05:53 Run exec: 'az version --output json'
2022/10/10 22:05:54 Run exec: 'az account get-access-token --output json'
2022/10/10 22:05:55 Reading project from file '/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Test_CLI_InfraCreateAndDeletedefault495288206/001/azure.yaml'
2022/10/10 22:05:55 Parsing file contents, name: storage
metadata: 
  template: azd-test/storagetest@v1

2022/10/10 22:05:55 Run exec: 'az version --output json'
2022/10/10 22:05:55 Run exec: 'az bicep install'
2022/10/10 22:05:57 Run exec: 'az bicep version'
2022/10/10 22:06:02 Skipping install check for 'Azure CLI'. It was previously confirmed.
2022/10/10 22:06:02 Reading parameters template file from: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Test_CLI_InfraCreateAndDeletedefault495288206/001/infra/main.parameters.json
2022/10/10 22:06:02 Run exec: 'az version --out json'
2022/10/10 22:06:03 Run exec: 'az bicep build --file /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Test_CLI_InfraCreateAndDeletedefault495288206/001/infra/main.bicep --stdout'
2022/10/10 22:06:10 Run exec: 'az deployment sub create --subscription *** --name azdtest-md5d172 --location eastus2 --template-file /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/Test_CLI_InfraCreateAndDeletedefault495288206/001/infra/main.bicep --parameters @/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/deploymentParameters995449040 --output json'
2022/10/10 22:06:13 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:06:15 error while reporting progress: deployment not found
2022/10/10 22:06:25 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:06:27 Run exec: 'az deployment operation sub list --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:06:29 Run exec: 'az deployment operation group list --subscription *** --resource-group rg-azdtest-md5d172 --name resources --output json'
2022/10/10 22:06:30 2022-10-10 22:06:24 - Created Resource group: rg-azdtest-md5d172
2022/10/10 22:06:41 Run exec: 'az deployment operation sub list --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:06:42 Run exec: 'az deployment operation group list --subscription *** --resource-group rg-azdtest-md5d172 --name resources --output json'
2022/10/10 22:06:55 Run exec: 'az deployment operation sub list --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:06:57 Run exec: 'az deployment operation group list --subscription *** --resource-group rg-azdtest-md5d172 --name resources --output json'
2022/10/10 22:06:59 2022-10-10 22:06:48 - Created Storage account: stmzhej26jbwlya
2022/10/10 22:07:09 Run exec: 'az deployment operation sub list --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:07:11 Run exec: 'az deployment operation group list --subscription *** --resource-group rg-azdtest-md5d172 --name resources --output json'
2022/10/10 22:07:13 2022-10-10 22:06:58 - Created Microsoft.Resources/deployments: resources
2022/10/10 22:07:23 Run exec: 'az deployment operation sub list --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:07:23 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:07:24 error while reporting progress: getting subscription deployment: deployment not found
2022/10/10 22:07:35 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:07:56 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:08:28 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:08:59 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:09:31 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:10:02 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:10:34 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:11:06 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
2022/10/10 22:11:37 Run exec: 'az deployment sub show --subscription *** --name azdtest-md5d172 --output json'
    cli_test.go:162: 
        	Error Trace:	cli_test.go:162
        	Error:      	Received unexpected error:
        	            	deploying infrastructure: error deploying infrastructure: timed out waiting for deployment: deployment not found
        	Test:       	Test_CLI_InfraCreateAndDelete/default
    --- FAIL: Test_CLI_InfraCreateAndDelete/default (353.88s)

This passed on the other OS's, I suspect it is a flaky issue: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1907677&view=logs&j=3eb4d8a5-5d97-562b-c71d-6ac568d84486&t=6fa72155-6aad-5969-f636-0dbf3ccac268

ellismg avatar Oct 10 '22 22:10 ellismg