Closed Bug 1236947 Opened 5 years ago Closed 5 years ago

[tc-gip] Retrieve and store logcat

Categories

(Firefox Build System :: Task Configuration, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla46

People

(Reporter: jlorenzo, Assigned: jlorenzo)

References

Details

Attachments

(1 file, 1 obsolete file)

We currently don't have gecko logs. One simple way to get them would be to add:
> adb logcat -v threadtime -r LOG_FILE_MAX_SIZE_in_KB &> logcat.log
Assignee: nobody → jlorenzo
There's a refactor of the configuration ongoing in bug 1225458. We'd get less conflicts if that bug lands first.
Depends on: 1225458
Attachment #8704682 - Attachment is obsolete: true
Attachment #8704682 - Flags: review?(garndt)
Comment on attachment 8704682 [details]
MozReview Request: Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt

https://reviewboard.mozilla.org/r/29699/#review26535
Attachment #8704682 - Flags: review+
Attachment #8704683 - Flags: review?(garndt) → review+
Comment on attachment 8704683 [details]
MozReview Request: Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt

https://reviewboard.mozilla.org/r/29701/#review26537

::: testing/taskcluster/tasks/phone_test.yml:62
(Diff revision 1)
> +        adb logcat

If this works, good for me!
Comment on attachment 8704682 [details]
MozReview Request: Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29699/diff/1-2/
Attachment #8704682 - Attachment description: MozReview Request: Bug 1236947 - Move the command line to phone_test.yml r=garndt → MozReview Request: Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt
Attachment #8704682 - Attachment is obsolete: false
Attachment #8704683 - Attachment is obsolete: true
https://tools.taskcluster.net/task-inspector/#PkiijXuCRAKD_acSHXyMmA/0

The tests are still executing. The logcat file is correctly created and published. It only gets the first line of the log, though.

It it possible to let a process run in the background, Greg?
Flags: needinfo?(garndt)
See Also: → 1237614
(In reply to Johan Lorenzo [:jlorenzo] (QA) from comment #8)
> https://tools.taskcluster.net/task-inspector/#PkiijXuCRAKD_acSHXyMmA/0
> 
> The tests are still executing. The logcat file is correctly created and
> published. It only gets the first line of the log, though.
> 
> It it possible to let a process run in the background, Greg?

We have other scripts that kick off processes that run in the background like here:
https://dxr.mozilla.org/mozilla-central/source/testing/taskcluster/scripts/tester/test-linux.sh#108

Perhaps the commands being passed in could be moved to a script kept at gecko/testing/taskcluster/scripts/tester/ and then that will call things to run in the background? Just throwing an idea out there.
Flags: needinfo?(garndt)
Comment on attachment 8704682 [details]
MozReview Request: Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29699/diff/2-3/
Comment on attachment 8704682 [details]
MozReview Request: Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29699/diff/3-4/
(In reply to Greg Arndt [:garndt] from comment #9)
> Perhaps the commands being passed in could be moved to a script kept at
> gecko/testing/taskcluster/scripts/tester/ and then that will call things to
> run in the background? Just throwing an idea out there.

That's not a bad idea! After looking again at the PR, I might have misordered the command line arguments. I pushed a new version with just that change. If that still doesn't work, I'll give the script a shot.
https://hg.mozilla.org/mozilla-central/rev/5ace53d088bc
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Depends on: 1237947
Product: TaskCluster → Firefox Build System
You need to log in before you can comment on or make changes to this bug.