Repository navigation
Fix tests when certain build args are disabled - #6681
Conversation
968d4f6 to
afcfed6
Compare
Fixes the testsuite with `-Dseccomp=disabled`.
The tests assumed that a system installation always uses the XDG cache location unless running as root. However, Flatpak only uses that cache location when the system helper is available at both compile and run time. [1] Builds configured with -Dsystem_helper=disabled instead use the repo-local cache directory [2], causing the tests to look for cached summaries in the wrong location and fail. [1]: https://github.com/flatpak/flatpak/blob/96ad6825f3e7115eb95abeba55600b2a39b71178/common/flatpak-dir.c#L4853-L4862 [2]: https://github.com/flatpak/flatpak/blob/96ad6825f3e7115eb95abeba55600b2a39b71178/common/flatpak-dir.c#L4942-L4943
Pulls do not go to the temp repo so they are logged when system helper is compiled out
afcfed6 to
3972db0
Compare
|
I'm rather confused why there isn't a pull in the system helper case though. Shouldn't we see either the pull into the temp repo or the one from the temp repo into the system one? |
|
The network pulls are getting filtered because INSTALLATION=/tmp/foobar but the command is specifying installation, the other ones are the local pull getting filtered due to the code in builtins-history.c These are the only two I see in the journal. So it ends up with nothing. |
|
It's a bit confusing. On normal (with system helper) system installs pulls are also filtered out by default because installation is set to Only user installs log the pull because flatpak/app/flatpak-builtins-history.c Lines 195 to 197 in f7138cb The other case was probably unintended side effect. |
|
That is super confusing, and sounds like there is a bug, but then again the fixes in this PR here all make sense for the current state. |
|
The CI runner is not having a good day... |
|
Yes, I think there was a bug in the original commit c672c55 that introduced the logging, because the filtering was also done the same day afc87ad#diff-c838b76d162fbdfb0d1f0f763a6236a0c29d5f7860d3706fba7744b0777aed51R176 and both of these is never going to work. This is always getting set to a path for system installations or I haven't checked what happens with custom installations but presumably they are also similarly bugged and setting a path doesn't make sense there either. Lines 7128 to 7138 in ad1ff6d |
No description provided.