Closed thombet closed 4 years ago
Some additional information:
.format()
and %
are used in the code but I used %
in __main___.py
to be consistent with the rest of this file.get_reporter_log_path()
in the LogReporter
class (plugins/log_reporter.py) but I didn't find a good way to use this class accross the code since it is imported with load_plugins()
in __main__.py
. If you have a better idea, feel free to suggest it :)The tests failed because the stub of argParser does not work anymore with my change. I will fix this and probably add some tests to reproduce the use cases I tested manually.
There are a lot of use cases for this tool, namely via pipelines. I am not sure I like the idea of ignoring specific files that may end up bundled with the addon submission. Maybe a possible option is to only allow usage of --log or --debug log if an additional argument (log path) is submitted? Maybe also error out if the submitted log path is equal to the directory we are checking for validation?
Another option is to make it platform dependent and make it log by default to the standard log location per platform (/var/log/addon-check on linux, ~/Library/Logs/ on osx, etc) and at the end of the execution state the log can be found in xxxx ?
I came up with this solution because I thought requesting a path for the log files would break the compatibility with previous versions but your idea of using a default path solves this 🙂
I agree this PR adds a risk of submitting ignored files when used in pipelines so I will push a new update implementing your ideas. Thank you for suggesting them @enen92 👍
Should we close this until you find time to work on this again?
Should we close this until you find time to work on this again?
I can't believe it's been 4 months already... Yes I will close this pull request and I will upload a new one later, thanks for the reminder.
Fixes #233