-
Notifications
You must be signed in to change notification settings - Fork 4
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
feature/resource reporter #39
Draft
kiapanahi
wants to merge
23
commits into
main
Choose a base branch
from
feature/resource-reporter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adding a Resource Reporter is not a breaking change but its a major change in the current state of the project. Hence the bump in the minor portion of the version number.
This commit introduces a new global section labeled `ExtensibilityGlobals` in the `Aspire.ResourceService.Standalone.sln` file, which includes a `SolutionGuid` entry. This addition indicates support for extensibility features or plugins, while retaining the existing global sections to enhance the solution's metadata.
Changed DockerResourceProviderTests from public class to public sealed class to prevent inheritance and enhance design integrity.
Standardized whitespace around the CancellationToken parameter in the UpdateStream and GetResourceLogs methods for improved readability and consistency without changing functionality.
Introduces a new static class `ChannelExtensions` This method efficiently reads batches of messages from a `Channel<T>` with support for a minimum read interval and a cancellation token.
Removes the `EnvironmentVariableSnapshot` record and comments out several properties in `ResourceSnapshot.cs`, indicating they are no at the moment required and temporarily disabled. Additionally, the health state computation line has been commented out.
When merged, closes #38 |
Adds test for the streaming section of the resource reporter.
Remove commented code in ResourceReporter tests
The tests ensure that resource reporter is first: registered second: is registered as singleton after using the corresponding DI registration method
The file is directly copied over from Aspire's original source code and includes some of the words that are not defined in dictionaries but have meaning in the context.
The interface represents the behaviors of any Resource Reporter and is injected in any resource provider that want to report its resource state to the resource reporter
This change facilitates using implementations of `ResourceSnapshot` when createing snapshots for `IResourceReporter` in different implementations of `IResourceProvider`.
Update compose file and remove Aspire Dashboard from the test compose file. Add separate powershell and bash scripts to start a standalone Aspire Dashboard.
The script first tries to stop any running container before starting the dashboard. This is to prevent the dashboard from failing to start if the container is already running.
Move dev env resource provider configs to `appsettings.Development.json`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
chore: run
dotnet format
and some code cleanupsUpdate version to 0.5.0
Adding a Resource Reporter is not a breaking change but its a major
change in the current state of the project. Hence the bump in the minor
portion of the version number.
[WIP] adding resource reporter
Add ExtensibilityGlobals section to solution file
This commit introduces a new global section labeled
ExtensibilityGlobals
in the
Aspire.ResourceService.Standalone.sln
file, which includes aSolutionGuid
entry. This addition indicates support forextensibility features or plugins, while retaining the existing global
sections to enhance the solution's metadata.
Make DockerResourceProviderTests sealed
Changed DockerResourceProviderTests from public class to public sealed
class to prevent inheritance and enhance design integrity.
Refactor method signatures in DockerResourceProvider
Standardized whitespace around the CancellationToken parameter
in the UpdateStream and GetResourceLogs methods for improved
readability and consistency without changing functionality.
Add ChannelExtensions with GetBatchesAsync method
Introduces a new static class
ChannelExtensions
This method efficiently reads batches of messages from a
Channel<T>
with support for a minimum read interval and a cancellation token.
Add licensing comments and refactor snapshots
Removes the
EnvironmentVariableSnapshot
record and comments out severalproperties in
ResourceSnapshot.cs
, indicating they are no at the momentrequired and temporarily disabled. Additionally, the health state computation
line has been commented out.
Add async helpers for tests
[WIP] basic implementation for resource reporter