Bug 161135 - [GTK] Use dbus-run-session when possible to avoid left-over dbus-daemon instances
Summary: [GTK] Use dbus-run-session when possible to avoid left-over dbus-daemon insta...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gustavo Noronha (kov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-24 04:41 PDT by Gustavo Noronha (kov)
Modified: 2016-11-02 09:40 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.52 KB, patch)
2016-08-24 13:05 PDT, Gustavo Noronha (kov)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Noronha (kov) 2016-08-24 04:41:33 PDT
[GTK] Use dbus-run-session to avoid left-over dbus-daemon instances
Comment 1 Gustavo Noronha (kov) 2016-08-24 05:06:28 PDT
There are tons of dbus-launch left-overs on buildbots that run the gtk API tests. We should use dbus-run-session if possible, which is designed for this use case and should be more dependable regarding left-overs. However, it does not work like dbus-launch, by printing out the environment for the bus, it needs to be used as a prefix for the executable, so it would require a bit of a refactoring.
Comment 2 Gustavo Noronha (kov) 2016-08-24 13:05:22 PDT
Created attachment 286883 [details]
Patch
Comment 3 Michael Catanzaro 2016-09-08 20:37:23 PDT
If you don't select the right component, we don't notice the bug!
Comment 4 Michael Catanzaro 2016-09-08 20:41:35 PDT
Do we have to keep the fallback codepath? Is dbus-run-session relatively new (unavailable in Ubuntu 14.04 or Debian Jessie)? If not, let's clean up the old code too.
Comment 5 Carlos Alberto Lopez Perez 2016-09-08 20:44:42 PDT
(In reply to comment #1)
> There are tons of dbus-launch left-overs on buildbots that run the gtk API
> tests. We should use dbus-run-session if possible, which is designed for
> this use case and should be more dependable regarding left-overs. However,
> it does not work like dbus-launch, by printing out the environment for the
> bus, it needs to be used as a prefix for the executable, so it would require
> a bit of a refactoring.

You can set this environment variable on the bot:

WEBKITBOT_TASKSTOKILL=dbus-daemon

It will try to kill any process with that name. Check: https://trac.webkit.org/changeset/195587

But the above is an ugly hack, your patch address this issue better.
Comment 6 Gustavo Noronha (kov) 2016-09-19 07:51:14 PDT
(In reply to comment #3)
> If you don't select the right component, we don't notice the bug!

Sorry, out of practice =/ I thought the [GTK] prefix was the main indication still.

(In reply to comment #4)
> Do we have to keep the fallback codepath? Is dbus-run-session relatively new
> (unavailable in Ubuntu 14.04 or Debian Jessie)? If not, let's clean up the
> old code too.

Yes. I left the old code path there because it is fairly new. It's available in jessie but not ubuntu 14.04.
Comment 7 Michael Catanzaro 2016-10-31 10:51:41 PDT
Comment on attachment 286883 [details]
Patch

Sorry it got missed
Comment 8 Michael Catanzaro 2016-11-02 09:40:48 PDT
WONTFIXing this based on discussion in bug #161481