-
Notifications
You must be signed in to change notification settings - Fork 174
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
Rewrite tutorial with MBS instead of sl4a. #195
Conversation
Review status: 0 of 1 files reviewed at latest revision, 4 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file):
Should we be encouraging this in the tutorial? It removes the device serial number from the logs so it makes it more difficult to correlate later events to earlier (setup) events, more difficult to correlate test logs to logcats, and more difficult to debug in general. docs/tutorial.md, line 267 at r1 (raw file):
Should we use pprint to make this prettier? This is going to be pretty hard to read docs/tutorial.md, line 269 at r1 (raw file):
Verifying (otherwise sounds like an instruction to the user) docs/tutorial.md, line 312 at r1 (raw file):
No more mention of event dispatcher? Should we replace it with a tutorial about async rpc? Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 4 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
I've been using this in my tests and from my experience, it makes debugging easier. Rather than having to look for the serial (which often are similar among same model devices) in logs, I could look for a word that actually makes sense and not lose track of which serial is supposed to play which role. There are improvements that can be made to this feature to make certain correlation easier. But I disagree about this making debug more difficult in general. docs/tutorial.md, line 267 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
Done. docs/tutorial.md, line 312 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
AsyncRpc has its own tutorial here That is more of a tutorial for snippet lib, maybe it can be linked instead of pasted here? Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 4 unresolved discussions. docs/tutorial.md, line 269 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
Done. Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
I agree that it makes it easier to read the test log, at the cost of making it hard to correlate setup with test events and harder to correlate test logs to logcats. Can we keep both serial and tag in the logs? That should address all the concerns right? docs/tutorial.md, line 312 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
sg, let's link it Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
That seems like a different discussion about a feature change, which is not related to this PR? what specifically do you mean by "correlate setup with test events" though? docs/tutorial.md, line 312 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
Done. Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
It's happening in this PR because we're setting the debug_tag in this PR. :) I mean that everything in start_services, such as starting up the snippet shell, is logged against the serial number. Test events however are logged against the tag, and there's nothing that links the tag with the serial number. So if you're seeing suspicious "callee" logs and want to go see the logcat for that phone, there's no way to know which one that is. Same if you want to see what port it was assigned to, or see the output from starting the snippet process, or anything like that. Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
I want to set the tag in this PR since the example already focus on the role of the devices by using the "label". The strategy is to propagate the tag into those lower level module loggers. I'd rather not block this tutorial on that discussion. Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file): Previously, xpconanfan (Ang Li) wrote…
If we're going to be recommending people to set tags, we need to fix the debugging issues to make sure we're giving people sound advice. What do you mean by "propagate the tag into those lower level module loggers"? How does that differ from what we do today? Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. docs/tutorial.md, line 243 at r1 (raw file): Previously, adorokhine (Alexander Dorokhine) wrote…
I do want to recommend this to people bc it is useful today. We have problem in our adb logcat collection, doesn't mean we don't collect logcat at all. If everything has to be perfect before it can be used, then we'd have nothing to use. Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 2 unresolved discussions. docs/tutorial.md, line 294 at r2 (raw file):
Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Fixes #103
This change is