Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 19, 2025

Backport of #7683 to release/9.1

/cc @captainsafia

Customer Impact

Our custom functions logic too eagerly set the --port argument if it was already configured in the command line arguments. This update changes the behavior to only set the port argument dynamically if it's not already defined.

Testing

Unit testing. Manual validation on Azure Functions playground app.

Risk

Low risk. --port is typially configured explicitly in the launchSettings by the default templates so the typical scenario is improved.

Regression?

No.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danmoseley
Copy link
Member

Is this purely visual glitch or functional as well? The latter clearly meets bar

@captainsafia
Copy link
Member

Is this purely visual glitch or functional as well? The latter clearly meets bar

There was no functional bug here, AFAIK. Previously, we would pass the --port argument twice to the underlying dotnet run command. When the functions host processed this, it would only accept the first argument.

Ensuring that we only pass the --port argument once is good hygeiene in case there are other components in the pipeline that don't make the same gurantees.

IMO, with this one impact/risk are minimal but it's fairly easy to fix so might as well.

@danmoseley danmoseley closed this Feb 19, 2025
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label Mar 10, 2025
@RussKie RussKie deleted the backport/pr-7683-to-release/9.1 branch March 30, 2025 23:39
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants