Closed Bug 1700392 Opened 4 years ago Closed 3 years ago

Replace usage of marionette format.js by remote/shared/Format.jsm

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task
Points:
2

Tracking

(firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

(Whiteboard: [bidi-m1-mvp])

Attachments

(1 file)

The two modules are identical, except for the preference they use to truncate or not messages:

  • remote.log.truncate for the remote/shared module
  • marionette.log.truncate for the marionette module

Removing format.js in favor of remote/shared/Format.jsm would help moving other modules (eg errors.js) to remote/shared.

Depends on: 1676803

Not urgent unassigning to focus on the BiDi architecture.

Assignee: jdescottes → nobody
Status: ASSIGNED → NEW

Maybe a dupe of bug 1693993, but lets see.

Depends on: 1693993

(In reply to Julian Descottes [:jdescottes] from comment #0)

The two modules are identical, except for the preference they use to truncate or not messages:

  • remote.log.truncate for the remote/shared module
  • marionette.log.truncate for the marionette module

Similar to the build flag we could rename these preferences to webdriver.log.[level|truncate]. That way it will be easier to maintain. When doing that we also have to update geckodriver so it uses the new ones, but also keeps setting the old ones for backward compatibility reasons.

Julian, what do you think? If you agree we should get the new pref names added with the next geckodriver release, and afterward we can make the change on this bug.

Flags: needinfo?(jdescottes)

Agreed, having unique prefs webdriver.log.truncate & webdriver.log.level is the way to go here. Let's make the change to geckodriver as soon as we can.

Flags: needinfo?(jdescottes)

Actually marionette.log.truncate is not used in geckodriver. As such we should not be blocked on making this change to webdriver.log.truncate and we could immediately start merging both modules. But maybe it's wise to wait and update all the preferences at once.

Priority: -- → P3

Let's discuss during our next triage, bug flagging as [bidi-m1-mvp] because I think all the effort to create shared modules should be MVP?

Whiteboard: [bidi-m1-mvp]
Blocks: 1691394
No longer blocks: 1691481
Depends on: 1718052
Points: --- → 2
Assignee: nobody → jdescottes
No longer blocks: 1691394

Picking this back up while we are handling reviews for MessageHandler patches

Status: NEW → ASSIGNED
Priority: P3 → P2
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ecafeeb0aa81 [remote] Replace usage of marionette format.js by remote/shared/Format.jsm r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: