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

Use all requested setting backends again [cont] #1538

Merged
merged 11 commits into from
Dec 21, 2024

Conversation

swick
Copy link
Contributor

@swick swick commented Dec 18, 2024

Based on #1536

Otherwise ASAN thinks we leak it, which is technically true, but not
helpful.
Because they are getting ignored. Also fixes a memory leak when multiple
default keys are specified.
@swick swick marked this pull request as ready for review December 18, 2024 22:37
@swick
Copy link
Contributor Author

swick commented Dec 18, 2024

/cc @whot for the pytest changes
/cc @ebassi @GeorgesStavracas for the config changes
/cc @jadahl @Sodivad for the settings impl changes

Sodivad and others added 9 commits December 19, 2024 13:45
This broke with 4db11f7 which made find_all_portal_implementations
use the same logic as find_portal_implementation and only make it
use the first configured portal that was found. Notably if there's
no portal config we would stil load multiple backends.

Closes: flatpak#1535
Fixes: 4db11f7 ("portal-impl: Fix config ordering")
Co-authored-by: Sebastian Wick <sebastian.wick@redhat.com>
This merges all the keys from different backends and prioritizes them
according to the config. Merging overwrites previous values, so we loop
through the impls in reverse order.
Instead of the default test backend interface.
This makes it possible to get the mock object from different busses and
will be used when we spawn multiple backend implementations.
Currently, templates define the bus name in the global BUS_NAME but
sometimes we want to spawn multiple template instances on different
busses to test behavior with multiple backend implementations.

This makes it possible to define the bus name a template will be spawned
at with the required_templates fixture.
@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Dec 21, 2024
@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Dec 21, 2024
Merged via the queue into flatpak:main with commit d082f39 Dec 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triaged
Development

Successfully merging this pull request may close these issues.

3 participants