Skip to content

Fix Fedora and Ubuntu GitHub workflow tests, and other test/CI improvements - #301

Merged
robert-ancell merged 18 commits into
ubuntu:mainfrom
rhansen:ci
Apr 25, 2023
Merged

Fix Fedora and Ubuntu GitHub workflow tests, and other test/CI improvements#301
robert-ancell merged 18 commits into
ubuntu:mainfrom
rhansen:ci

Conversation

@rhansen

@rhansen rhansen commented Apr 22, 2023

Copy link
Copy Markdown
Contributor

The most important commits are:

  • tests: Don't redirect /tmp/dbus-* to $LIGHTDM_TEST_ROOT/tmp/dbus-*
  • ci: Re-enable Ubuntu tests

The first of those two commits fixes the test.yaml GitHub workflow for both Fedora and Ubuntu. I don't know why dbus-daemon is creating a Unix domain socket in the filesystem instead of creating an abstract socket. Maybe some security policy is preventing abstract sockets from working in Docker on the runner?

The remaining commits are test/CI tweaks I made while troubleshooting that I thought were worth including.

Please do not squash this when merging—the commits are intended to be separate. I will rebase these as needed to incorporate feedback or update to the latest main.

@rhansen

rhansen commented Apr 23, 2023

Copy link
Copy Markdown
Contributor Author

I don't know why dbus-daemon is creating a Unix domain socket in the filesystem instead of creating an abstract socket.

Ah ha! dbus-daemon v1.15.2 switched from abstract sockets to file-based sockets for security reasons.

rhansen added 17 commits April 23, 2023 23:54
This silences some warning messages on Fedora.
Starting with dbus-daemon v1.15.2, unix:tmpdir no longer causes
dbus-daemon to create abstract sockets (for security reasons), so
unix:tmpdir is now equivalent to unix:dir.  (Also, some systems don't
support abstract sockets.)  Switch to unix:dir so that it is clear
that the tests expect a socket file to be created in the filesystem.
The Ubuntu tests were disabled in commit
40c3b4d because they were failing.
They are working now.
This makes the errors much easier to find vs. downloading the zip
artifact and extracting it.
@rhansen rhansen changed the title Fix Fedora and Ubuntu GitHub workflow tests, and other improvements Fix Fedora and Ubuntu GitHub workflow tests, and other test/CI improvements Apr 24, 2023
@robert-ancell

Copy link
Copy Markdown
Collaborator

Thanks @rhansen! I've never managed to find the time to fix this bitrot, much appreciated!

@robert-ancell
robert-ancell merged commit c2ee2b9 into ubuntu:main Apr 25, 2023
@rhansen
rhansen deleted the ci branch April 25, 2023 23:33
@JPeisach JPeisach added this to the 1.33.0 milestone Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants