summary refs log tree commit diff
path: root/nixos/tests
Commit message (Collapse)AuthorAge
* treewide: add bcachefsLinuxTesting and bcachefsLinuxTesting testsMadoura2023-11-18
| | | | | | nixos/tests/installer: add bcachefsLinuxTesting and bcachefsLinuxTesting tests bcachefs-tools: add bcachefsLinuxTesting and bcachefsLinuxTesting tests
* Merge pull request #264358 from RaitoBezarius/drop-nodejsRyan Lahfa2023-11-17
|\
| * code-server: dropRaito Bezarius2023-11-17
| | | | | | | | Depends on Node.js 16 and cannot be trivially upgraded to Node.js 18.
| * kibana7: dropRaito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | Depends on EOL software and no maintenance has been attempted to change this after a ping (https://github.com/NixOS/nixpkgs/issues/259178) Feel free to adopt and re-introduce if you care about this software. This will probably seriously hamper ELK usability in nixpkgs, but as it receives no maintenance…
* | Merge pull request #265365 from JulienMalka/systemd-boot-garbage-testJulien Malka2023-11-17
|\ \ | | | | | | nixos/tests/systemd-boot: add garbage-collect-entry test
| * | nixos/tests/systemd-boot: add garbage-collect-entry testJulien Malka2023-11-04
| | |
* | | Merge pull request #265556 from adamcstephens/slimserver/fixAdam C. Stephens2023-11-17
|\ \ \ | | | | | | | | slimserver: fix broken package
| * | | nixos/tests/slimserver: add end to end with squeezeliteAdam Stephens2023-11-17
| | | |
| * | | nixos/slimserver: init service testAdam Stephens2023-11-17
| | |/ | |/|
* | | Merge pull request #267985 from JulienMalka/absent-bootspecRyan Lahfa2023-11-17
|\ \ \
| * | | nixos/systemd-boot: allow for bootspec-less generationsJulien Malka2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | Generation built with old versions of NixOS with no bootspec support may still be present on the system and must be accounted for.
* | | | Merge pull request #266270 from Ma27/postgresql-ownership-15Ryan Lahfa2023-11-17
|\ \ \ \ | |_|/ / |/| | |
| * | | nixos/invidious: do not use `ensureDBOwnership`Raito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invidious uses a strange setup where the database name is different from the system username for non-explicit reasons. Because of that, it makes it hard to migrate it to use `ensureDBOwnership`, we leave it to Invidious' maintainers to pick up the pieces.
| * | | nixos/tests/pgbouncer: do not use `ensureDBOwnership`Raito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pgbouncer test is special in the sense where it actually tries to connect via SCRAM SHA, let's avoid `ensureDBOwnership` here otherwise for some reason pgbouncer will try to look in pg_shadow for the authuser…
| * | | nixos/postgresql: drop ensurePermissions, fix ensureUsers for postgresql15Maximilian Bosch2023-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #216989 First of all, a bit of context: in PostgreSQL, newly created users don't have the CREATE privilege on the public schema of a database even with `ALL PRIVILEGES` granted via `ensurePermissions` which is how most of the DB users are currently set up "declaratively"[1]. This means e.g. a freshly deployed Nextcloud service will break early because Nextcloud itself cannot CREATE any tables in the public schema anymore. The other issue here is that `ensurePermissions` is a mere hack. It's effectively a mixture of SQL code (e.g. `DATABASE foo` is relying on how a value is substituted in a query. You'd have to parse a subset of SQL to actually know which object are permissions granted to for a user). After analyzing the existing modules I realized that in every case with a single exception[2] the UNIX system user is equal to the db user is equal to the db name and I don't see a compelling reason why people would change that in 99% of the cases. In fact, some modules would even break if you'd change that because the declarations of the system user & the db user are mixed up[3]. So I decided to go with something new which restricts the ways to use `ensure*` options rather than expanding those[4]. Effectively this means that * The DB user _must_ be equal to the DB name. * Permissions are granted via `ensureDBOwnerhip` for an attribute-set in `ensureUsers`. That way, the user is actually the owner and can perform `CREATE`. * For such a postgres user, a database must be declared in `ensureDatabases`. For anything else, a custom state management should be implemented. This can either be `initialScript`, doing it manual, outside of the module or by implementing proper state management for postgresql[5], but the current state of `ensure*` isn't even declarative, but a convergent tool which is what Nix actually claims to _not_ do. Regarding existing setups: there are effectively two options: * Leave everything as-is (assuming that system user == db user == db name): then the DB user will automatically become the DB owner and everything else stays the same. * Drop the `createDatabase = true;` declarations: nothing will change because a removal of `ensure*` statements is ignored, so it doesn't matter at all whether this option is kept after the first deploy (and later on you'd usually restore from backups anyways). The DB user isn't the owner of the DB then, but for an existing setup this is irrelevant because CREATE on the public schema isn't revoked from existing users (only not granted for new users). [1] not really declarative though because removals of these statements are simply ignored for instance: https://github.com/NixOS/nixpkgs/issues/206467 [2] `services.invidious`: I removed the `ensure*` part temporarily because it IMHO falls into the category "manage the state on your own" (see the commit message). See also https://github.com/NixOS/nixpkgs/pull/265857 [3] e.g. roundcube had `"DATABASE ${cfg.database.username}" = "ALL PRIVILEGES";` [4] As opposed to other changes that are considered a potential fix, but also add more things like collation for DBs or passwords that are _never_ touched again when changing those. [5] As suggested in e.g. https://github.com/NixOS/nixpkgs/issues/206467
* | | | nixos/tests/archi: init smoke tests for Archipaumr2023-11-17
| |/ / |/| |
* | | Merge pull request #267490 from onny/wordpress-update5Weijia Wang2023-11-16
|\ \ \ | | | | | | | | wordpress6_4: init at 6.4.1; wordpressPackages: update
| * | | nixos/wordpress: Add test for wordpress6_4Jonas Heinrich2023-11-14
| | | |
* | | | Merge pull request #267931 from picnoir/pic/toot-0-38-2Matthias Beyer2023-11-16
|\ \ \ \ | | | | | | | | | | toot: 0.38.1 -> 0.38.2
| * | | | nixosTests.pleroma: un-vendor tootFélix Baylac Jacqué2023-11-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream released 0.38.2. This new release contains the pleroma fix we previously were getting from master. We don't need this override anymore to get the test to succeed. https://github.com/ihabunek/toot/issues/399#issuecomment-1814712723
* | | | | Merge pull request #267560 from anthonyroussel/bugfix/plantuml-server-nixosPol Dellaiera2023-11-16
|\ \ \ \ \ | |/ / / / |/| | | | nixos/plantuml-server: fix
| * | | | nixosTests.plantuml-server: initAnthony Roussel2023-11-15
| | | | |
* | | | | nixos/tests/dnscrypt-wrapper: test TCP and run on port 443rnhmjoj2023-11-15
|/ / / / | | | | | | | | | | | | | | | | | | | | - Test both TCP and UDP queries (tinydns → bind) - Test IPv6 by default - Run DNSCrypt on port 443 along with HTTPS
* | | | Merge pull request #251950 from erictapen/mastodonRyan Lahfa2023-11-15
|\ \ \ \
| * | | | mastodon: 4.1.6 -> 4.2.1Kerstin Humm2023-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - run streaming processes in separate systemd services - remove redundancy in test - fix update script - release notes See https://github.com/mastodon/mastodon/releases/tag/v4.2.1 for details
| * | | | nixos/mastodon: fix integration testKerstin Humm2023-11-14
| | | | |
* | | | | nixos/test/ejabberd: remove myself as maintainerajs1242023-11-14
| |/ / / |/| | |
* | | | nixosTests/pleroma: fix testFélix Baylac Jacqué2023-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two issues: 1. We need a subjectAltName on the TLS cert. Stolen from the akkoma test. <3 illdefined 2. There's a bug in the current toot release wrt. date parsing. It's been fixed upstream but it's not been released yet. Using the current toot master for this VM test to work around this. Note: I warned upstream we'd need a new toot release. Fixes https://github.com/NixOS/nixpkgs/issues/264951
* | | | Merge pull request #266702 from ↵Niklas Hambüchen2023-11-14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nh2/plausible-listen-address-no-distributed-erlang plausible, nixos/plausible: Add `listenAddress` option
| * | | | plausible, nixos/plausible: Add `listenAddress` option.Niklas Hambüchen2023-11-14
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes * the plausible HTTP web server to be listening on localhost only, explicitly. This makes Plausible have an explicit safe default configuration, like all other networked services in NixOS. For background discussion, see: https://github.com/NixOS/nixpkgs/issues/130244 As per my upstream Plausible contribution (https://github.com/plausible/analytics/pull/1190) Plausible >= 1.5 also defaults to listening to localhost only; nevertheless, this default should be stated explicitly in nixpkgs for easier review and independence from upstream changes, and a NixOS user must be able to configure the `listenAddress`, as there are valid use cases for that. Also, disable * the Erlang Beam VM inter-node RPC port * the Erlang EPMD port because Plausible does not use them (see added comment). This is done by setting `RELEASE_DISTRIBUTION=none`. Thus, this commit also removes the NixOS setting `releaseCookiePath`, because it now has no effect.
* | | | Merge pull request #265696 from Stunkymonkey/nixos-exportarrFelix Bühler2023-11-13
|\ \ \ \ | |_|_|/ |/| | | nixos/exportarr: init
| * | | nixos/exportarr: initFelix Buehler2023-11-07
| | | |
* | | | Merge pull request #267120 from teutat3s/zhf/fix-prometheus-exporter-smokepingNick Cao2023-11-12
|\ \ \ \ | |_|_|/ |/| | | nixosTests.prometheus-exporters.smokeping fix test
| * | | nixosTests.prometheus-exporters.smokeping fix testteutat3s2023-11-13
| | |/ | |/|
* | | nixos/tests/udisks2: actually start udisksK9002023-11-12
| | |
* | | Merge pull request #245394 from christoph-heiss/pkgs/sourcehuttomberek2023-11-11
|\ \ \ | | | | | | | | sourcehut: update all component; lots of fixes
| * | | sourcehut: disable IPv6 completely for testsChristoph Heiss2023-11-11
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Heiss <christoph@c8h4.io>
| * | | sourcehut: drop obsolete `services` array in favor of indivdual `enable` flagsChristoph Heiss2023-11-11
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Heiss <christoph@c8h4.io>
* | | | Merge pull request #266469 from ambroisie/fix-tandoor-recipesPeder Bergebakken Sundt2023-11-11
|\ \ \ \ | | | | | | | | | | tandoor-recipes: fix `django-allauth`
| * | | | nixos/tests/tandoor-recipes: use SQLiteBruno BELANYI2023-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | This is a work-around for getting the tests working until #216989 is fixed.
* | | | | maintainers: ninjatrappeur -> picnoirFélix Baylac Jacqué2023-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I changed my nickname from Ninjatrappeur to Picnoir. My github id is stable, it shouldn't break too much stuff. I took advantage of this handle change to remove myself from the hostapd maintainers: I don't use NixOS as a router anymore.
* | | | | Merge pull request #160346 from mweinelt/hass-custom-everythingMartin Weinelt2023-11-11
|\ \ \ \ \ | |_|/ / / |/| | | | home-assistant: custom components and lovelace modules
| * | | | nixos/tests/home-assistant: test custom things cleanupMartin Weinelt2023-11-10
| | | | | | | | | | | | | | | | | | | | | | | | | Make sure we properly remove custom components and custom lovelace modules, when they're not configured anymore.
| * | | | nixos/tests/home-assistant: test loading custom componentsMartin Weinelt2023-11-10
| | | | |
| * | | | nixos/tests/home-assistant: test loading lovelace modulesMartin Weinelt2023-11-10
| | | | |
* | | | | Merge pull request #256226 from ElvishJerricco/systemd-stage-1-testing-backdoorRyan Lahfa2023-11-10
|\ \ \ \ \
| * | | | | nixos/tests/systemd-initrd-modprobe: Test parameter in stage 1Will Fancher2023-11-09
| | | | | |
| * | | | | nixos/tests/systemd-initrd-networkd-ssh: Test with backdoor not LUKSWill Fancher2023-11-09
| | | | | |
| * | | | | nixos/tests/systemd-initrd-networkd: Use initrdBackdoorWill Fancher2023-11-09
| | | | | |
| * | | | | nixos/tests/systemd-initrd-networkd: Separate into different testsWill Fancher2023-11-09
| | | | | |