Closed Bug 1629809 Opened 5 years ago Closed 5 years ago

geckodriver creates huge log files because of the conditioned profiles

Categories

(Testing :: Raptor, enhancement, P1)

Version 3
enhancement

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: tarek, Assigned: tarek)

References

Details

Attachments

(1 file)

when the conditioned profile is passed to the browser though geckodriver, its done over the wire using a POST call.

all geckodriver calls are logged, so we're generating huge logs

[task 2020-04-13T14:16:12.525Z] 14:16:12     INFO -  1586787372520>.geckodriver>DEBUG>..Listening on 127.0.0.1:48257
[task 2020-04-13T14:16:12.529Z] 14:16:12     INFO -  1586787372526>.webdriver::server>..DEBUG>..-> GET /status
[task 2020-04-13T14:16:12.529Z] 14:16:12     INFO -  1586787372526>.webdriver::server>..DEBUG>..<- 200 OK {"value":{"message":"","ready":true}}
[task 2020-04-13T14:17:09.236Z] 14:17:08     INFO -  1586787374344>.webdriver::server>..DEBUG>..-> POST /session {"desiredCapabilities":{"browserName":"firefox","pageLoadStrategy":"none","moz:firefoxOptions":{"profile":"HUGE BASE 64 CONTENT HERE

We need to filter out those lines to avoid generating huge logs.

Assignee: nobody → tarek
Priority: -- → P1

A long term solution would be to have geckodriver restrict the log lines to a maximum size.
In the interim I think it's fine to deactivate tracing. This was used to debug BT in its early integration days, and it's not really used anymore.
I guess we can force TRACE explicitely if we need it/

Deactivate tracing so we don't generate huge geckodriver logs
since BT transmits the profile through webdriver

Summary: gekodriver creates huge log files because of the conditioned profiles → geckodriver creates huge log files because of the conditioned profiles

Note that for investigating test failures the Marionette trace log would have been great. Now it makes it way harder. Instead you should have set marionette.log.truncate=true, which would have prevented the whole profile data to be printed to the log and would still give enough information to trace problems.

Blocks: 1629857
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: