Skip to content
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

Exclude the dashboard from the manifest #3601

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

davidfowl
Copy link
Member

@davidfowl davidfowl commented Apr 11, 2024

This is a regression from the refactoring. We used to always exclude the dashboard resource which made it work for the playground samples. After the change, we don't look at the dashboard if we're not in run mode, this stops our playground samples from being deployed because we explicitly add the dashboard as a project resource.

This change excludes the dashboard if it is a project resource.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Apr 11, 2024
@davidfowl davidfowl force-pushed the davidfowl/exclude-dashboard-from-manifest branch from f25f4d0 to b5dbc98 Compare April 11, 2024 08:23
@davidfowl davidfowl changed the title Exclude the dashboard from the manifest when it is a project Exclude the dashboard from the manifest Apr 11, 2024
@davidfowl davidfowl enabled auto-merge (squash) April 11, 2024 08:24
@davidfowl
Copy link
Member Author

/backport to release/8.0

Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/aspire/actions/runs/8643722508

Copy link
Contributor

@davidfowl backporting to release/8.0 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Exclude the dashboard from the manifest when its a project - Added a test
Using index info to reconstruct a base tree...
M	src/Aspire.Hosting/DistributedApplicationBuilder.cs
M	tests/Aspire.Hosting.Tests/Dashboard/DashboardResourceTests.cs
Falling back to patching base and 3-way merge...
Auto-merging tests/Aspire.Hosting.Tests/Dashboard/DashboardResourceTests.cs
CONFLICT (content): Merge conflict in tests/Aspire.Hosting.Tests/Dashboard/DashboardResourceTests.cs
Auto-merging src/Aspire.Hosting/DistributedApplicationBuilder.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Exclude the dashboard from the manifest when its a project - Added a test
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@davidfowl an error occurred while backporting to release/8.0, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

@davidfowl davidfowl merged commit 32885d9 into main Apr 11, 2024
8 checks passed
@davidfowl davidfowl deleted the davidfowl/exclude-dashboard-from-manifest branch April 11, 2024 09:44
@davidfowl
Copy link
Member Author

/backport to release/8.0

Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/aspire/actions/runs/8647982682

@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2024
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.

2 participants