nexusmods-app: fix passthru tests#354018
Conversation
0d97a2b to
805b2e6
Compare
|
I've noticed that these tests pass intermittently, at least on my machine. Edit: to be clear, I mean without this change. If this makes them reliable then that's awesome. |
There was a problem hiding this comment.
If we just want an empty and/or default fontconfig file, is there a better alternative to using makeFontsConfig?
That finishes in less than a second on my machine, with no feedback and exit code 0. Adding
|
Sorry, I should've been more clear. That's how to run the tests, however the second commit in this PR completely disables all the tests. See https://github.com/NixOS/nixpkgs/pull/354018/files#r1863938537 I intended that command for testing without this PR and/or testing the first commit of this PR.
Interesting... I was unable to get the tests to build at all, and assumed it was due to Nexus-Mods/NexusMods.App#2179 (hence disabling them entirely in the second commit) |
|
805b2e6 to
d84869e
Compare
This proved incorrect. Ensuring I guess it was failing while attempting to write its initial state and/or logs. This PR now fixes the passthru tests without needing to disable any of them. |
|
- ensure fontconfig file exists - ensure XDG dirs are writable
d84869e to
0462ffb
Compare
|
Successfully created backport PR for |
While working on #354015 and #360174, I noticed that the passthru tests are not actually passing. I don't think this is a new issue, rather I think this has just gone unnoticed until now.
I've resolved the fontconfig related issues in one commit,
but I've had to disable the tests in another. I believe the issue is that the CLI also launches the GUI (Nexus-Mods/NexusMods.App#2179), which I assume will not work in the stdenv sandbox?EDIT: The other issues were resolved by ensuring
XDG_STATE_HOMEandXDG_DATA_HOMEexist and are writable.Build using
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.