Closed Bug 1916720 Opened 16 days ago Closed 7 days ago

dbus should be launched earlier

Categories

(Testing :: General, enhancement)

enhancement

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: gerard-majax, Assigned: jcristau)

References

Details

Attachments

(1 file)

In https://bugzilla.mozilla.org/show_bug.cgi?id=1892254#c2 I spotted that we lacked GNOME Screencast exposed on the DBus but it turns out we were poking at the wrong session bus. Starting things differently helps.

We were previously running dbus twice: once as part of the X session scripts,
with all the gnome things, and a separate one for our tests and a gnome-keyring
daemon that test-linux.sh runs. By launching dbus before the X session
scripts, they can all share the same bus and firefox in tests can talk to the
other services listening on that bus.

Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c6534713e3b start dbus before X session in linux tests. r=jmaher

Backed out for causing mass failures related to xset.

[task 2024-09-05T09:07:51.757Z]         fi
[task 2024-09-05T09:07:51.757Z]       done
[task 2024-09-05T09:07:51.757Z]     fi
[task 2024-09-05T09:07:51.757Z] fi
[task 2024-09-05T09:07:51.757Z] + true
[task 2024-09-05T09:07:51.757Z] + . /etc/lsb-release
[task 2024-09-05T09:07:51.757Z] DISTRIB_ID=Ubuntu
[task 2024-09-05T09:07:51.757Z] ++ DISTRIB_ID=Ubuntu
[task 2024-09-05T09:07:51.757Z] DISTRIB_RELEASE=18.04
[task 2024-09-05T09:07:51.757Z] ++ DISTRIB_RELEASE=18.04
[task 2024-09-05T09:07:51.758Z] DISTRIB_CODENAME=bionic
[task 2024-09-05T09:07:51.758Z] ++ DISTRIB_CODENAME=bionic
[task 2024-09-05T09:07:51.758Z] DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
[task 2024-09-05T09:07:51.758Z] ++ DISTRIB_DESCRIPTION='Ubuntu 18.04.6 LTS'
[task 2024-09-05T09:07:51.758Z] + '[' Ubuntu == Ubuntu ']'
[task 2024-09-05T09:07:51.758Z] + '[' 18.04 == 16.04 ']'
[task 2024-09-05T09:07:51.758Z] + '[' Ubuntu == Ubuntu ']'
[task 2024-09-05T09:07:51.758Z] + '[' 18.04 == 18.04 ']'
[task 2024-09-05T09:07:51.758Z] + echo export DESKTOP_SESSION=gnome
[task 2024-09-05T09:07:51.758Z] + echo export XDG_CURRENT_DESKTOP=GNOME
[task 2024-09-05T09:07:51.758Z] + '[' ']'
[task 2024-09-05T09:07:51.758Z] + echo export XDG_SESSION_TYPE=x11
[task 2024-09-05T09:07:51.758Z] + test -z ''
[task 2024-09-05T09:07:51.758Z] ++ dbus-launch --sh-syntax
[task 2024-09-05T09:07:51.784Z] + eval 'DBUS_SESSION_BUS_ADDRESS='\''unix:abstract=/tmp/dbus-v5hHVJ2o1E,guid=6fee11a0c9b83dfbd629da0366d974e7'\'';' export 'DBUS_SESSION_BUS_ADDRESS;' 'DBUS_SESSION_BUS_PID=77;' 'DBUS_SESSION_BUS_WINDOWID=2097153;'
[task 2024-09-05T09:07:51.784Z] DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-v5hHVJ2o1E,guid=6fee11a0c9b83dfbd629da0366d974e7'; export DBUS_SESSION_BUS_ADDRESS; DBUS_SESSION_BUS_PID=77; DBUS_SESSION_BUS_WINDOWID=2097153;
[task 2024-09-05T09:07:51.784Z] ++ DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-v5hHVJ2o1E,guid=6fee11a0c9b83dfbd629da0366d974e7
[task 2024-09-05T09:07:51.784Z] ++ export DBUS_SESSION_BUS_ADDRESS
[task 2024-09-05T09:07:51.784Z] ++ DBUS_SESSION_BUS_PID=77
[task 2024-09-05T09:07:51.784Z] ++ DBUS_SESSION_BUS_WINDOWID=2097153
[task 2024-09-05T09:07:51.784Z] + unset MOZHARNESS_TEST_PATHS
[task 2024-09-05T09:07:51.785Z] + /etc/X11/Xsession
[task 2024-09-05T09:07:51.785Z] + gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
[task 2024-09-05T09:07:51.809Z] + gsettings set org.gnome.desktop.screensaver lock-enabled false
[task 2024-09-05T09:07:51.828Z] + gsettings set org.gnome.desktop.screensaver lock-delay 3600
[task 2024-09-05T09:07:51.843Z] + xset s off s reset
[task 2024-09-05T09:07:51.846Z] xset:  unable to open display ":0"
[task 2024-09-05T09:07:51.846Z] cleanup
[task 2024-09-05T09:07:51.846Z] + cleanup
[task 2024-09-05T09:07:51.846Z] + local rv=1
[task 2024-09-05T09:07:51.846Z] + [[ -s /builds/worker/.xsession-errors ]]
[task 2024-09-05T09:07:51.846Z] + cp /builds/worker/.xsession-errors /builds/worker/artifacts/public/xsession-errors.log
[task 2024-09-05T09:07:51.848Z] + '[' ']'
[task 2024-09-05T09:07:51.848Z] + true
[task 2024-09-05T09:07:51.848Z] + cleanup_xvfb
[task 2024-09-05T09:07:51.848Z] ++ pidof Xvfb
[task 2024-09-05T09:07:51.850Z] + local xvfb_pid=50
[task 2024-09-05T09:07:51.850Z] + local vnc=false
[task 2024-09-05T09:07:51.850Z] + local interactive=false
[task 2024-09-05T09:07:51.850Z] + '[' -n 50 ']'
[task 2024-09-05T09:07:51.850Z] + [[ false == false ]]
[task 2024-09-05T09:07:51.850Z] + [[ false == false ]]
[task 2024-09-05T09:07:51.850Z] + kill 50
[task 2024-09-05T09:07:51.850Z] + screen -XS xvfb quit
[task 2024-09-05T09:07:51.853Z] + exit 1
[taskcluster 2024-09-05 09:07:52.163Z] === Task Finished ===
[taskcluster 2024-09-05 09:07:52.687Z] Unsuccessful task run with exit code: 1 completed in 190.966 seconds
Flags: needinfo?(jcristau)
Depends on: 1917781
Flags: needinfo?(jcristau)
Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7bbebb62c8a9 start dbus before X session in linux tests. r=jmaher
Status: NEW → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Blocks: 1918602
No longer blocks: 1918602
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: