-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add raw methods for error and activity reporting by addons. (#457)
Add _raw_ methods used by addons to report both errors and activity. The reason is to reduce the number of API calls when reporting large numbers. For example, the _addon.command_ package reports stdout/stderr for failed commands which can be hundreds (or thousands of lines). Calling Activity() hundreds of times result in hundreds of API calls. Another example is the reported analyzer errors. Another aspect is to formalize multi-line activity. This PR codifies the convention of: ``` - This is a list of: - > One - > Two - > Three ``` and, simplifies the API. The tackle2-addon _command_ package will need to be updated once this merges to use RawActivity() for stdout/stderr. reporting. The tackle2-addon-analyzer will need to updated to use both methods in select places as well. --------- Signed-off-by: Jeff Ortel <jortel@redhat.com>
- Loading branch information
Showing
3 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
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
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
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