-
Notifications
You must be signed in to change notification settings - Fork 418
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
[tests] Mismatched .bicep generated in AzureBicepResourceTests.AsAzurePostgresFlexibleServerViaRunMode
#5113
Comments
From the test log file:
Looking at the expected bicep in aspire/tests/Aspire.Hosting.Azure.Tests/AzureBicepResourceTests.cs Lines 1397 to 1431 in c3b47ef
.. the expected has: resource postgreSqlFirewallRule_T9qS4dcOa 'Microsoft.DBforPostgreSQL/flexibleServers/firewallRules@2023-03-01-preview' = {
parent: postgreSqlFlexibleServer_hFZg1J8nf
name: 'AllowAllIps'
properties: {
startIpAddress: '0.0.0.0'
endIpAddress: '255.255.255.255'
}
}
resource postgreSqlFlexibleServerDatabase_QJSbpnLQ9 'Microsoft.DBforPostgreSQL/flexibleServers/databases@2023-03-01-preview' = {
parent: postgreSqlFlexibleServer_hFZg1J8nf
name: 'dbName'
properties: {
}
} .. but the generated manifest has this instead: resource postgreSqlFlexibleServerDatabase_d6dHHd3yx 'Microsoft.DBforPostgreSQL/flexibleServers/databases@2023-03-01-preview' = {
parent: postgreSqlFlexibleServer_hFZg1J8nf
name: 'db'
properties: {
}
} The following code suggests that aspire/src/Aspire.Hosting.Azure.PostgreSQL/AzurePostgresExtensions.cs Lines 73 to 78 in c3b47ef
cc @mitchdenny |
@radical this build failure came from a PR, how do we know it wasn't something in the PR that caused it to fail? (the error is surprising actually) |
@mitchdenny this has been hit on 3 different PRs now. |
Yep. I'm going to disable the test and try to see if I can figure out what is going on. |
Avoid interfering with other tests by generating the bicep files in per-test temporyary paths. Issue: dotnet#5113
Avoid interfering with other tests by generating the bicep files in per-test temporyary paths. `AzureBicepResourceTests.AsAzurePostgresFlexibleServerViaRunMode` uses `postgres.module.bicep` also, and that file can get overwritten by other tests like in `AzureBicepResourceTests`. Issue: dotnet#5113
* [tests] ValidateApplicationSamples: use a temporary path for generating the manifest Other tests also generate and use `postgres.module.bicep` in the tests' bindir, and these can run in parallel causing them to interfere with each other. Issue: #5174 * [tests] ManifestUtils.GetManifestWithBicep: generate in a temporary path Avoid interfering with other tests by generating the bicep files in per-test temporyary paths. `AzureBicepResourceTests.AsAzurePostgresFlexibleServerViaRunMode` uses `postgres.module.bicep` also, and that file can get overwritten by other tests like in `AzureBicepResourceTests`. Issue: #5113
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=759660
Build error leg or test failing: Aspire.Hosting.Azure.Tests..AsAzurePostgresFlexibleServerViaRunMode
Pull request: #5099
Error Message
Fill the error message using step by step known issues guidance.
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=759660
Error message validated:
[Expected: .*resource postgreSqlFirewallRule
]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/29/2024 11:21:03 PM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: