Revert "Avoid setting --port twice for Azure Functions (#7683)"#7726
Revert "Avoid setting --port twice for Azure Functions (#7683)"#7726
Conversation
This reverts commit 97d5c1c.
There was a problem hiding this comment.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
src/Aspire.Hosting.Azure.Functions/AzureFunctionsProjectResourceExtensions.cs:120
- There is an inconsistency between the publish mode check here and the one in the removed block that uses 'builder.ApplicationBuilder.ExecutionContext'. Consider revisiting which property should be used to ensure consistent behavior.
if (builder.ExecutionContext.IsPublishMode)
tests/Aspire.Hosting.Azure.Tests/AzureFunctionsTests.cs:53
- The test now expects a null TargetPort rather than a specific port value; please verify that this change correctly reflects the intended behavior of the port-mapping logic.
Assert.Null(endpointAnnotation.TargetPort);
|
Note: This change isn't in |
|
Are we sure we should be reverting this change? From @captainsafia on #7653 (comment)
|
|
There is no urgency is merging this. Will wait until David, Safia have commented. |
|
Let's not merge the revert. Although the DCP issue was the root cause, this was still exposing a place where we were setting the It also happens that I need to move the |
|
See #7751 |
Posted a comment on this. I don't think reverting my change solves this. It seems like there's a different change that is causing the |
This reverts commit 97d5c1c.
Change is no longer neccessary with #7711
Confirmation that double args aren't shown:
From Azure Functions EndToEnd sample.