Skip to content

Conversation

RussKie
Copy link
Contributor

@RussKie RussKie commented Apr 8, 2025

The E2E and the Template tests look for Shipping artifacts in incorrect location, unless it is explicitly configured.

E.g., I'm build and running tests explicitly in RELEASE build, but the tests look under a Debug path...
image

We should expect a developer to set an additional env var, when the developer has already explicitly built in specific configuration.

Since we only have two build configs, I resorted to only #if..#else. When/if we decide to support more build configurations, we can revisit the code to extend the condition.

@Copilot Copilot AI review requested due to automatic review settings April 8, 2025 06:06
@RussKie RussKie requested review from radical and eerhardt as code owners April 8, 2025 06:06
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label Apr 8, 2025
Copy link
Contributor

@Copilot 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 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

tests/Shared/TemplatesTesting/EnvironmentVariables.cs:12

  • Removing the BuildConfiguration environment variable may impact other parts of the test suite that rely on dynamic configuration. Ensure that all code paths referencing this variable are updated to reflect the new compile-time approach.
public static readonly string  BuildConfiguration        = Environment.GetEnvironmentVariable("BUILD_CONFIGURATION") ?? "Debug";

@RussKie RussKie added area-templates and removed area-integrations Issues pertaining to Aspire Integrations packages labels Apr 8, 2025
@RussKie
Copy link
Contributor Author

RussKie commented Apr 8, 2025

/cc: @radical

@RussKie RussKie self-assigned this Apr 8, 2025
@RussKie RussKie enabled auto-merge (squash) April 8, 2025 06:46
@RussKie RussKie merged commit 9d43d6e into main Apr 8, 2025
179 checks passed
@RussKie RussKie deleted the igveliko/fix_shipping_artifacts_resolution branch April 8, 2025 07:37
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants