Closed Bug 1374977 Opened 7 years ago Closed 7 years ago

Include the version details in the log

Categories

(Testing :: geckodriver, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: davehunt, Assigned: ato)

References

Details

Attachments

(1 file)

Whilst running tests against Sauce Labs, it became clear that there's no way to determine the version of geckodriver in use. This level of detail could be useful when troubleshooting issues using Selenium as a service. Could we add the version details when starting geckodriver? Sauce Labs do provide an automator.log file, which contains the geckodriver log contents, so we see entries such as: 1498037999220 geckodriver INFO Listening on 127.0.0.1:46473 1498037999889 geckodriver::marionette INFO Starting browser \\?\D:\Program Files\Firefox 54\firefox.exe with args ["-marionette"] 1498038000363 Marionette WARN Deprecated preference marionette.defaultPrefs.enabled detected, please use marionette.enabled 1498038001957 Marionette INFO Listening on port 49757
We have dismissed requests to include the geckodriver version in in the return capabilities before, but there should not be any harm in logging the version number.
Assignee: nobody → ato
Status: NEW → ASSIGNED
Depends on: 1375207
I have laid the groundwork for this in https://bugzilla.mozilla.org/show_bug.cgi?id=1375207.
Comment on attachment 8880855 [details] Bug 1374977 - Log geckodriver version on startup; https://reviewboard.mozilla.org/r/152196/#review157260 ::: testing/geckodriver/src/main.rs:50 (Diff revision 1) > use logging::LogLevel; > use marionette::{MarionetteHandler, MarionetteSettings, extension_routes}; > > include!(concat!(env!("OUT_DIR"), "/build-info.rs")); > > +type ProgramResult = std::result::Result<(), (ExitCode, String)>; Not for this review, but https://crates.io/crates/exitcode exists.
Attachment #8880855 - Flags: review?(james) → review+
Comment on attachment 8880855 [details] Bug 1374977 - Log geckodriver version on startup; https://reviewboard.mozilla.org/r/152196/#review157260 Thanks! > Not for this review, but https://crates.io/crates/exitcode exists. Yay for microcrates?
Pushed by atolfsen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6eca8198fea5 Log geckodriver version on startup; r=jgraham
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: