Skip to content

Conversation

@DamianEdwards
Copy link
Member

@DamianEdwards DamianEdwards commented Mar 27, 2025

Description

Changes from DOTNET_ to ASPIRE_ in all environment variable and config key names. In some cases it replaces it with ASPIRE_. Old keys still work of course, but new ones are preferred.

Fixes #8009

Checklist

Copilot AI review requested due to automatic review settings March 27, 2025 01:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 58 out of 78 changed files in this pull request and generated no comments.

Files not reviewed (20)
  • playground/AspireEventHub/EventHubs.AppHost/Properties/launchSettings.json: Language not supported
  • playground/AzureContainerApps/AzureContainerApps.AppHost/Properties/launchSettings.json: Language not supported
  • playground/AzureFunctionsEndToEnd/AzureFunctionsEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/AzureSearchEndToEnd/AzureSearch.AppHost/Properties/launchSettings.json: Language not supported
  • playground/AzureServiceBus/ServiceBus.AppHost/Properties/launchSettings.json: Language not supported
  • playground/AzureStorageEndToEnd/AzureStorageEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/BrowserTelemetry/BrowserTelemetry.AppHost/Properties/launchSettings.json: Language not supported
  • playground/CosmosEndToEnd/CosmosEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/CustomResources/CustomResources.AppHost/Properties/launchSettings.json: Language not supported
  • playground/DatabaseMigration/DatabaseMigration.AppHost/Properties/launchSettings.json: Language not supported
  • playground/Elasticsearch/Elasticsearch.AppHost/Properties/launchSettings.json: Language not supported
  • playground/HealthChecks/HealthChecksSandbox.AppHost/Properties/launchSettings.json: Language not supported
  • playground/OpenAIEndToEnd/OpenAIEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/OracleEndToEnd/OracleEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/ParameterEndToEnd/ParameterEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/PostgresEndToEnd/PostgresEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/ProxylessEndToEnd/ProxylessEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
  • playground/Qdrant/Qdrant.AppHost/Properties/launchSettings.json: Language not supported
  • playground/Redis/Redis.AppHost/Properties/launchSettings.json: Language not supported
  • playground/SqlServerEndToEnd/SqlServerEndToEnd.AppHost/Properties/launchSettings.json: Language not supported

@github-actions github-actions bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 27, 2025
@DamianEdwards DamianEdwards marked this pull request as draft March 27, 2025 01:12
@DamianEdwards DamianEdwards marked this pull request as ready for review March 28, 2025 00:32
Comment on lines -110 to +111
startInfo.EnvironmentVariables["ASPIRE_BACKCHANNEL_PATH"] = socketPath;
startInfo.EnvironmentVariables[KnownConfigNames.UnixSocketPath] = socketPath;
Copy link
Member

Choose a reason for hiding this comment

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

Not a change in this PR, but related to passed in parameters:

All dashboard parameters start with ASPIRE_DASHBOARD. Should these CLI args start with ASPIRE_CLI?

Copy link
Member

Choose a reason for hiding this comment

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

Edit: I see these aren't strictly related to just CLI. Still, structure of names is something to keep in mind. I think it's good that all dashboard parameters have a consistent prefix.

private static void WaitForDebugger()
{
if (Environment.GetEnvironmentVariable("ASPIRE_WAIT_FOR_DEBUGGER") == "true")
if (Environment.GetEnvironmentVariable(KnownConfigNames.WaitForDebugger) == "true")
Copy link
Member

@JamesNK JamesNK Mar 28, 2025

Choose a reason for hiding this comment

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

Is there a reason Environment is used directly in a couple of places instead of IConfiguration? cc @mitchdenny

If IConfiguration not available yet? Should have a comment whereever Environment.GetEnvironmentVariable is used to explain why it doesn't follow the convention used everywhere else.

@DamianEdwards DamianEdwards enabled auto-merge (squash) March 28, 2025 03:47
Copy link
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

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

:shipit:

@DamianEdwards DamianEdwards merged commit 67f8878 into main Mar 28, 2025
170 checks passed
@DamianEdwards DamianEdwards deleted the damianedwards/envvarsupdate branch March 28, 2025 04:14
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change DOTNET_ to ASPIRE_ in config variables

4 participants