Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test: Test_AWSRedeployWithUpdatedResourceUpdatesResource (S3 bucket AlreadyExists) #8171

Open
1 task done
willdavsmith opened this issue Dec 27, 2024 · 1 comment
Open
1 task done
Labels
bug Something is broken or not working as expected flaky-test Flaky functional/unit tests.

Comments

@willdavsmith
Copy link
Contributor

willdavsmith commented Dec 27, 2024

Steps to reproduce

This was encountered in the Radius long-running tests: https://github.com/radius-project/radius/actions/runs/12502525756/job/34881609238

Observed behavior

=== FAIL: test/functional-portable/corerp/cloud/mechanics Test_AWSRedeployWithUpdatedResourceUpdatesResource/deploy_testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep (18.59s)
    rptest.go:3[91](https://github.com/radius-project/radius/actions/runs/12502525756/job/34881609238#step:21:92): running step 1 of 2: deploy testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep
    deployexecutor.go:80: deploying deploy testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep from file testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep
    cli.go:394: [heartbeat] command rad deploy /home/runner/work/radius/radius/test/functional-portable/corerp/cloud/mechanics/testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep --parameters bucketName=radiusfunctionaltestbucket-00b06861-335e-453a-9618-3a6e27b[92](https://github.com/radius-project/radius/actions/runs/12502525756/job/34881609238#step:21:93)ff9 --parameters creationTimestamp=1735207746 is still running after 10.000948669s
    cli.go:341: [rad] Building /home/runner/work/radius/radius/test/functional-portable/corerp/cloud/mechanics/testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep...
    cli.go:341: [rad] WARNING: The following experimental Bicep features have been enabled: Extensibility. Experimental features should be enabled for testing purposes only, as there are no guarantees about the quality or stability of these features. Do not enable these settings for any production usage, or your production environment may be subject to breaking.
    cli.go:341: [rad] Deploying template '/home/runner/work/radius/radius/test/functional-portable/corerp/cloud/mechanics/testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep' into environment '/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/environments/kind-radius' from workspace 'radlrtest00-aks-admin'...
    cli.go:341: [rad] 
    cli.go:341: [rad] Deployment In Progress...
    cli.go:341: [rad] 
    cli.go:341: [rad] Error: {
    cli.go:341: [rad]   "code": "DeploymentFailed",
    cli.go:341: [rad]   "message": "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
    cli.go:341: [rad]   "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Microsoft.Resources/deployments/rad-deploy-bdfa3dae-9488-4ebe-bd27-a0b4699b6056",
    cli.go:341: [rad]   "details": [
    cli.go:341: [rad]     {
    cli.go:341: [rad]       "code": "ResourceDeploymentFailure",
    cli.go:341: [rad]       "message": "Failed",
    cli.go:341: [rad]       "target": "/planes/aws/aws/accounts/***/regions/us-west-2/providers/AWS.S3/Bucket/radiusfunctionaltestbucket-00b06861-335e-453a-9618-3a6e27b92ff9",
    cli.go:341: [rad]       "details": [
    cli.go:341: [rad]         {
    cli.go:341: [rad]           "code": "AlreadyExists",
    cli.go:341: [rad]           "message": "radiusfunctionaltestbucket-00b06861-335e-453a-9618-3a6e27b92ff9 already exists (Service: S3, Status Code: 0, Request ID: null)"
    cli.go:341: [rad]         }
    cli.go:341: [rad]       ]
    cli.go:341: [rad]     }
    cli.go:341: [rad]   ]
    cli.go:341: [rad] }
    cli.go:341: [rad] 
    cli.go:341: [rad] TraceId:  [93](https://github.com/radius-project/radius/actions/runs/12502525756/job/34881609238#step:21:94)9e272915ef021948819ead57a42d2a
    cli.go:341: [rad] 
    cli.go:341: [rad]=== FAIL: test/functional-portable/corerp/cloud/mechanics Test_AWSRedeployWithUpdatedResourceUpdatesResource/deploy_testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep (18.59s)
    rptest.go:3[91](https://github.com/radius-project/radius/actions/runs/12502525756/job/34881609238#step:21:92): running step 1 of 2: deploy testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep
    deployexecutor.go:80: deploying deploy testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep from file testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep
    cli.go:394: [heartbeat] command rad deploy /home/runner/work/radius/radius/test/functional-portable/corerp/cloud/mechanics/testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep --parameters bucketName=radiusfunctionaltestbucket-00b06861-335e-453a-9618-3a6e27b[92](https://github.com/radius-project/radius/actions/runs/12502525756/job/34881609238#step:21:93)ff9 --parameters creationTimestamp=1735207746 is still running after 10.000948669s
    cli.go:341: [rad] Building /home/runner/work/radius/radius/test/functional-portable/corerp/cloud/mechanics/testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep...
    cli.go:341: [rad] WARNING: The following experimental Bicep features have been enabled: Extensibility. Experimental features should be enabled for testing purposes only, as there are no guarantees about the quality or stability of these features. Do not enable these settings for any production usage, or your production environment may be subject to breaking.
    cli.go:341: [rad] Deploying template '/home/runner/work/radius/radius/test/functional-portable/corerp/cloud/mechanics/testdata/aws-mechanics-redeploy-withupdatedresource.step2.bicep' into environment '/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/environments/kind-radius' from workspace 'radlrtest00-aks-admin'...
    cli.go:341: [rad] 
    cli.go:341: [rad] Deployment In Progress...
    cli.go:341: [rad] 
    cli.go:341: [rad] Error: {
    cli.go:341: [rad]   "code": "DeploymentFailed",
    cli.go:341: [rad]   "message": "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
    cli.go:341: [rad]   "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Microsoft.Resources/deployments/rad-deploy-bdfa3dae-9488-4ebe-bd27-a0b4699b6056",
    cli.go:341: [rad]   "details": [
    cli.go:341: [rad]     {
    cli.go:341: [rad]       "code": "ResourceDeploymentFailure",
    cli.go:341: [rad]       "message": "Failed",
    cli.go:341: [rad]       "target": "/planes/aws/aws/accounts/***/regions/us-west-2/providers/AWS.S3/Bucket/radiusfunctionaltestbucket-00b06861-335e-453a-9618-3a6e27b92ff9",
    cli.go:341: [rad]       "details": [
    cli.go:341: [rad]         {
    cli.go:341: [rad]           "code": "AlreadyExists",
    cli.go:341: [rad]           "message": "radiusfunctionaltestbucket-00b06861-335e-453a-9618-3a6e27b92ff9 already exists (Service: S3, Status Code: 0, Request ID: null)"
    cli.go:341: [rad]         }
    cli.go:341: [rad]       ]
    cli.go:341: [rad]     }
    cli.go:341: [rad]   ]
    cli.go:341: [rad] }
    cli.go:341: [rad] 
    cli.go:341: [rad] TraceId:  [93](https://github.com/radius-project/radius/actions/runs/12502525756/job/34881609238#step:21:94)9e272915ef021948819ead57a42d2a
    cli.go:341: [rad] 
    cli.go:341: [rad]

Desired behavior

The test should pass

Workaround

Re-run the test

rad Version

rad checkout ref: c6b2fce

Operating system

No response

Additional context

No response

Would you like to support us?

  • Yes, I would like to support you

AB#13858

@willdavsmith willdavsmith added the bug Something is broken or not working as expected label Dec 27, 2024
@radius-triage-bot
Copy link

👋 @willdavsmith Thanks for filing this bug report.

A project maintainer will review this report and get back to you soon. If you'd like immediate help troubleshooting, please visit our Discord server.

For more information on our triage process please visit our triage overview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken or not working as expected flaky-test Flaky functional/unit tests.
Projects
None yet
Development

No branches or pull requests

1 participant