Skip to content

Conversation

deeplow
Copy link
Contributor

@deeplow deeplow commented Oct 3, 2025

Including a few changes we've done in the mean time. Ready for approval.

deeplow and others added 12 commits August 22, 2025 21:12
Config.json, which sets among other things the packages "environment"
(prod, staging, dev) was set to prod in all cases. This makes it
adequate for each environment.
Work around SecureDrop Workstation issue where focus is stolen from
xterm while running `make test`. The root console won't run into
GUI / focus strealing problems and has the added advantage of being
faster, since commands don't have to be "typed".

[1]: freedomofpress/securedrop-workstation#1411
Now done in base test image.
Per discussion in QubesOS#25 (comment)
Tests window was loosing focus due to an unkown reason (possibly a test
opening a ghost window). This was causing issues where the remainder of
the test would fail to run due to xterm no longer being in focus, thus
impossible to type in. For context, see freedomofpress/securedrop-workstation#1411
Co-authored-by: deeplow <47065258+deeplow@users.noreply.github.com>
This reverts commit 046c6b6.

Breaks installation because config.json isn't installed in
/usr/share/securedrop-workstation-dom0-config.
Revert "WIP: config.json in dev env was missing"
Sd-whonix will no longer present in the workstation code [1].

[1]: freedomofpress/securedrop-workstation#1415
@deeplow deeplow changed the title Upstreaming some SecureDrop tests' changes Upstreaming some SecureDrop's test changes Oct 3, 2025
script_run("env CI=true make -C $sdw_path test | tee make-test.log", timeout => 2400);

# Run tests (xvfb-run needed to simulate screen in root console)
assert_script_run("xvfb-run env CI=true make -C $sdw_path test | tee make-test.log", timeout => 2400);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's enough to set DISPLAY=:0 instead? User session is logged in after all, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, could be some more variables, like XAUTHORITY=/run/lightdm/user/xauthority. It makes Qt apps work for me when started from tty2.

I think it's worth trying to avoid xvfb-run, because two X servers may result in weird errors down the road - for example applications using dbus activation will open on the primary x server (as user's dbus session daemon has DISPLAY=:0), which may confuse some tests at some point.

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