Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flatpak-builder: Add --socket=session-bus if tests are enabled #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tchx84
Copy link
Contributor

@tchx84 tchx84 commented Mar 31, 2023

TLDR: Now that this action supports DBus for tests, I am trying to switch to it for Flatseal, but I can't seem to make it work.

I haven't really found the issue yet, but, while trying to mimic what this action does locally, I noticed I had to add to --socket=session-bus to the tests-args in my manifest to make it work. So, I am putting this here in case it's really needed.

See tchx84/Flatseal#514

@bilelmoussaoui
Copy link
Member

I would expect people to set test-args on their upstream manifests for any needs they might have. The ones we have are the "most important" and common ones

@tchx84
Copy link
Contributor Author

tchx84 commented Apr 3, 2023

I would expect people to set test-args on their upstream manifests for any needs they might have. The ones we have are the "most important" and common ones

I would argue that, If the action features support for DBus tests, then the requirements for running DBus tests should be considered "important" as well, e.g, adding --socket=session-bus in this case.

Otherwise it's confusing.

@bilelmoussaoui
Copy link
Member

Well, the action runs that for you as you need to get the returned dbus address and expose that as an env variable for the test environment. That is too much to handle from the app side compared to adding a test argument to the manifest.

Especially there are very few apps that requires dbus access for their tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants