-
Notifications
You must be signed in to change notification settings - Fork 217
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
Release candidate for FR #1100 (unclear user-callback location) #1295
Release candidate for FR #1100 (unclear user-callback location) #1295
Conversation
Great! I will take a closer look in the next days. |
I have a feeling that it might be nicer to keep the behavior of Also, Just thinking out loud. Thanks for tackling this :) |
I was thinking about this too and decided to introduce not another argument (the list is already quite long)
Good idea, I will add this (esp. because this mistake happened to me too several times ;-) |
I agree with @emtiu that we shouldn't modify the Dear @aryoda what is your intention? It is debug information right? In that case I would introduce something like I also would introduce a Because of that I would recommend to introduce an internal method that collects all diagnostic data and return it as a Didn't we had an Issues about that diagnostic output somewhere? Here it was: #1278 (comment) EDIT: If you want I can implement just a dict-returning function and a unittest for it; just the function. To keep it atomic I would create an extra PR for that. After that you can use and set commandline arguments for it. |
THX all for your input! I think, verbosity levels like For now I would not offer to write a (machine-readable) So I suggest:
|
Dear @aryoda ,
Yeah, totally agree.
IMHO no need for a verb here. I would prefere
Not a file. Just do Json output (with use of
I will. Have done things like this before. I would add there
Some more ideas and needs? Where would you locate such a function in the repository? I think
Good idea. And here you can use the content of the diagnostic
I would keep both. Users often don't produce debug output or don't know how to do it because they use the BIT gui and don't start it in a terminal emu. We can write in the issue tempale and/or contribute section: Please post the output of |
@buhtzz Perfect, consensus found: I will use When you have PR'ed your diagnostics collector function we can extend the @emtiu Any vetos? 😉 Edit:
IMHO worth a new |
Nope, I'm happy with your plans :)
Let's try to determine whether a system is running X11 or Wayland. This will become more and more relevant in the future. I fear that there exists no clean, canoncial way to do this, but we'll find something :) |
@emtiu @buhtzz I have now implemented a release candidate incl. a small unit test. The new
@buhtzz You are right, JSON is really easy in unit tests (compared to RegExp)! The other arguments are now reverted again:
RfC |
Damn it, all Travis CI builds fail with
My local unit tests work, but the Travis CI unit test fails when parsing the JSON output. @emtiu Do you have the rights to restart the Travis CI build to check if this is just a hick-up |
My work is in progres... I will also take the X or Wayland thing into account. |
Good morning (very early ;-) I have integrated your code as first test and it works very good on Ubuntu 20.04.05 except the
and fails in line #81 My (old?)
|
I was thinking about back-porting this This is not straight-forward since releases are only tagged but do not exist as separate branch where we could cherry-pick this feature-commit into. So it looks like we have to convince the package maintainers to use 1.3.x once it is stable (or create a backport-patch and announce it the README as "recommended backports" hint for package maintainers). |
Please note that |
I think that's a battle we can't win. We'll just have to deal with the fact that installations of 1.3.2 and older are going to be around for a while. Let's not try to "change history", otherwise we'll just end up asking: "So you're running 1.2.1, but is it the original 1.2.1, or the one we modified afterwards?" ;) |
I agree here. The project is not in the shape currently to handle something like that. |
…stics" argument Fix unit test that fails only on TravisCI
OK, I have finalized my PR, unit tests are OK, TravisCI too. Please note that I have @emtiu Could you merge please if everything is OK? Fast forward preferred for a straight feature history (one feature per commit) Next step: Extend the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks :)
* Integrate extended diagnostics (#1300 with #1295) * Add user-callback path to collect_diagnostics() * Remove TravisCI test failure workaround (was fixed with #1305). * Correct some typos in comments * Diagnostics: Add local and global config file info. Rename "config-version" to "latest-config-version" by @aryoda and @buhtzz
THIS IS A PREVIEW FOR DISCUSSIONS - PLEASE DO NOT YET MERGE INTO MASTER
I have created a first PR to make the location and file name of the user-callback script visible.
Applied changes:
backintime
now shows the same content as before + (new!) the user callback location (I call this: "about"backintime
)backintime -v
did show only the version number. It now shows the same "about" output as aboveThe main reason for 2. was that 1. is not obvious to call and 2. does not hurt (having a longer output now).
The version number can still be easily parsed via a regexp (if someone really needs to do so).
Open:
Out of scope:
New output:
Old output:
Possible future extensions (out of scope for this PR/issue):
I think of extending the output later with another PR to show more "diagnostics" that could be copied&pasted
into a new issue, eg. also: