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
gnome-photos: 3.32.0 → 3.32.1 #67318
Conversation
jtojnar
commented
Aug 23, 2019
- Moves some GNOME packages to top-level namespace
- Upgrades gnome-photos
- Adds installed tests
@jtojnar I think |
Yeah, but it is not enough. Currently debugging that. |
a168d2a
to
0044924
Compare
With the following debug patch diff --git a/nixos/modules/services/desktops/gnome3/at-spi2-core.nix b/nixos/modules/services/desktops/gnome3/at-spi2-core.nix
index cca98c43dc7..6b3b3f7d0ad 100644
--- a/nixos/modules/services/desktops/gnome3/at-spi2-core.nix
+++ b/nixos/modules/services/desktops/gnome3/at-spi2-core.nix
@@ -4,7 +4,17 @@
with lib;
-{
+let
+ package = pkgs.at-spi2-core.overrideAttrs (attrs: {
+ nativeBuildInputs = attrs.nativeBuildInputs ++ [ pkgs.makeWrapper ];
+
+ postFixup = ''
+ wrapProgram $out/libexec/at-spi-bus-launcher \
+ --prefix XDG_DATA_DIRS : ${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}
+ '';
+ });
+
+in {
###### interface
@@ -30,9 +40,9 @@
config = mkMerge [
(mkIf config.services.gnome3.at-spi2-core.enable {
- environment.systemPackages = [ pkgs.at-spi2-core ];
- services.dbus.packages = [ pkgs.at-spi2-core ];
- systemd.packages = [ pkgs.at-spi2-core ];
+ environment.systemPackages = [ package ];
+ services.dbus.packages = [ package ];
+ systemd.packages = [ package ];
})
(mkIf (!config.services.gnome3.at-spi2-core.enable) {
diff --git a/nixos/tests/gnome-photos.nix b/nixos/tests/gnome-photos.nix
index 74c1aea4db2..aa5c4d8def0 100644
--- a/nixos/tests/gnome-photos.nix
+++ b/nixos/tests/gnome-photos.nix
@@ -16,6 +16,7 @@
testScript = ''
$machine->waitForX;
- $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.gnome-photos.installedTests}/share'");
+ $machine->execute("env G_MESSAGES_DEBUG=all gnome-desktop-testing-runner -d '${pkgs.gnome-photos.installedTests}/share' gnome-photos/basic.py.test");
+ $machine->execute("cat /tmp/dogtail-root/logs/.basic-wrapped_*_debug");
'';
})
all warnings disappear but the test is still failing:
It succeeds in my user session:
|
The missing part was adding |
I came upon that as well maybe 15 minutes ago. It caused an involuntary cringe, I had to look away 🤣 |
Is there a metric on how many other tests use dogtail? I'd dislike having to copy the same hack. |
I think it is quite rare (< 10 projects relying on it). Some packages were even removing it as it has not been maintained until recently. |
nixos/tests/gnome-photos.nix
Outdated
testScript = '' | ||
$machine->waitForX; | ||
# dogtail needs accessibility enabled | ||
$machine->succeed("env GIO_EXTRA_MODULES='${lib.getLib pkgs.gnome3.dconf}/lib/gio/modules' XDG_DATA_DIRS='${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}' ${pkgs.glib.bin}/bin/gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make let
the environment variables string into the testScript
so it's clearer to read?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with above comment.
Oh, I see warnings in the test for tracker dbus interfaces
Think we should enable them? |
I tried but then it also wants dleyna and since the test just checks if the interface works, I did not want to descend into this rabbit hole. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. No 🐇 today 😄