-
Notifications
You must be signed in to change notification settings - Fork 26
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
Remove the module and dynamic cli concepts #464
Merged
Merged
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
amorenoz
reviewed
Jan 15, 2025
amorenoz
reviewed
Jan 15, 2025
amorenoz
reviewed
Jan 16, 2025
87e49f5
to
0144c64
Compare
I'm just waiting on #470 to be merged (it should be close) for rebasing this one, to save the other PR a conflict. |
Changes look good but I guess it's fair to let #470 get merged before? |
This is more logical and allows adding collectors to retis/src/collect in later patches. Signed-off-by: Antoine Tenart <[email protected]>
This is only moving patches, not changing anything besides the import mod paths. Following patches will further remove the module concept. Signed-off-by: Antoine Tenart <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
Instead directly use collectors. In details this removes the ModuleId, Module trait, Modules abstraction and a lot of the dynamic steps that used to happen when using modules. Following-up patches are needed to complete to make things completely clean but those are not strictly about removing the module concept. Signed-off-by: Antoine Tenart <[email protected]>
This also unties the SectionId <> collector cli arguments relationship. Signed-off-by: Antoine Tenart <[email protected]>
There is no remaining user after collectors stopped from using it. Signed-off-by: Antoine Tenart <[email protected]>
Using a more logical order, grouping related parameters and trying to display then in a logical order (of importance). Signed-off-by: Antoine Tenart <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
0144c64
to
c20e3fa
Compare
Rebased on top of |
amorenoz
approved these changes
Jan 29, 2025
amorenoz
added a commit
to amorenoz/retis
that referenced
this pull request
Feb 10, 2025
This is a continuation of discussions that took place during [1]. Some collectors' configuration might affect the way section factories operate. Pass the section factories to collectors during init() phase so they can pass such configuration. The skb collector is the first user of this functionality. [1] retis-org#464 Signed-off-by: Adrian Moreno <[email protected]>
Open
amorenoz
added a commit
to amorenoz/retis
that referenced
this pull request
Feb 14, 2025
This is a continuation of discussions that took place during [1]. Some collectors' configuration might affect the way section factories operate. Pass the section factories to collectors during init() phase so they can pass such configuration. In order to make use of factories easier, make it a proper type. The skb collector is the first user of this functionality. [1] retis-org#464 Signed-off-by: Adrian Moreno <[email protected]>
amorenoz
added a commit
to amorenoz/retis
that referenced
this pull request
Feb 28, 2025
This is a continuation of discussions that took place during [1]. Some collectors' configuration might affect the way section factories operate. Pass the section factories to collectors during init() phase so they can pass such configuration. In order to make use of factories easier, make it a proper type. The skb collector is the first user of this functionality. [1] retis-org#464 Signed-off-by: Adrian Moreno <[email protected]>
amorenoz
added a commit
to amorenoz/retis
that referenced
this pull request
Feb 28, 2025
This is a continuation of discussions that took place during [1]. Some collectors' configuration might affect the way section factories operate. Pass the section factories to collectors during init() phase so they can pass such configuration. In order to make use of factories easier, make it a proper type. The skb collector is the first user of this functionality. [1] retis-org#464 Signed-off-by: Adrian Moreno <[email protected]>
amorenoz
added a commit
to amorenoz/retis
that referenced
this pull request
Feb 28, 2025
This is a continuation of discussions that took place during [1]. Some collectors' configuration might affect the way section factories operate. Pass the section factories to collectors during init() phase so they can pass such configuration. In order to make use of factories easier, make it a proper type. The skb collector is the first user of this functionality. [1] retis-org#464 Signed-off-by: Adrian Moreno <[email protected]>
amorenoz
added a commit
to amorenoz/retis
that referenced
this pull request
Mar 11, 2025
This is a continuation of discussions that took place during [1]. Some collectors' configuration might affect the way section factories operate. Pass the section factories to collectors during init() phase so they can pass such configuration. In order to make use of factories easier, make it a proper type. The skb collector is the first user of this functionality. [1] retis-org#464 Signed-off-by: Adrian Moreno <[email protected]>
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.
A high level view is we now have a more manual (but way simpler) way of handling cli arguments and we only have a collectors concept instead of the collectors+modules one. A lot of cleanup was allowed by such changes.