Commit graph

18 commits

Author SHA1 Message Date
rnhmjoj
54a6949722
nixos/tests/networking: test hostname via DHCP 2025-05-05 21:59:33 +02:00
Henry-Hiles
c8f4df349c
livekit: add test 2025-04-29 01:02:53 -04:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Jared Baur
f38d462b9b
nixosTests.networking.networkd.bond: fix flakiness
We need to do the virtio link setup prior to `network.target`, since
systemd-networkd orders itself before `network.target`. So in order for
the bond to properly enslave the two virtio links, they should be
configured as a part of `network-pre.target`.
2025-01-31 18:54:59 -08:00
K900
441c242855 nixos/tests: fix bonding test 2025-01-21 13:44:36 +03:00
rnhmjoj
a00e827110
nixos/tests/networkmanager: test NM is started at boot 2024-12-28 12:11:01 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
misuzu
92df50f4d0 nixos/tests/networking: fix flaky scripted.dhcpSimple test
The underlying issue is unknown, but starting
the router first and then the client makes the test not flaky.
2024-12-04 20:18:46 +02:00
Egor Savkin
8bda6ea01c tests: network: update nixosTests.networking.scripted.virtual to match correct behavior
First, `stop network-addresses-X` should clean up the addresses without deleting the interfaces. And only `stop tap0-netdev` should fully delete the interfaces.

Signed-off-by: Egor Savkin <es@m-labs.hk>
2024-12-02 10:57:42 +08:00
rnhmjoj
9cb83c2af4
nixos/tests/networking: fix GRE test
More fallout from c6f6c282.
2024-11-30 09:51:44 +01:00
rnhmjoj
127dcca388
nixos/tests/networking: test nameservers via DHCP 2024-10-15 11:53:05 +02:00
Vladimír Čunát
a3c0b3b215
Revert "nixos/tests/networking: test nameservers via DHCP"
This reverts commit bad5251e87.

https://github.com/NixOS/nixpkgs/pull/348305#issuecomment-2410165312
Should've known that commit starting with `bad` will be no good.
Fixes nixosTests.networking.networkd.dhcpSimple
https://hydra.nixos.org/build/274843085/nixlog/8/tail
2024-10-14 08:48:30 +02:00
rnhmjoj
bad5251e87
nixos/tests/networking: test nameservers via DHCP 2024-09-16 08:07:55 +02:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Janik H.
76cd1d2211 maintainers: drop janik
I guess my time has come as well...

With this commit, I'm not just dropping my maintainer entry, but I'm also
resigning from my duties as a board observer and NixCon project lead.
I also terminated my Summer of Nix contract today.
I'll also stop hosting the local NixOS meetup.

The only "project" I'll finish under the NixOS Foundation umbrella is
Google Summer of Code because the mentees aren't even remotely
responsible for why I'm leaving, and it would be unfair to leave them
hanging.

I'm grateful for all the things I was able to learn, for all the experiences
I could gather, and for all the friends I made along the way.
NixOS is what makes computers bearable for me, so I'll go and work on
some fork (*something something* you always meet twice in life).
2024-07-02 02:36:42 +02:00
Janik H.
b1fd84f6ec
nixosTests.networking: start network-online.target manually
this is done to avoid future problems for when `network-online.target` doesn't depend on `multi-user.target`
2024-04-18 00:27:45 +02:00
Janik H.
52e01114be
nixosTests.networking: refactor and add NetworkManager support 2024-04-17 21:20:11 +02:00
Janik H.
080c08d3c1
nixosTests.networking: split router into a separate file and remove with lib; antipattern
this commit also does a tiny bit more, namely:
- removing unnecessary ping's to the hosts own ip
- and simplifying a few pieces of code like changing `{ inherit (pkgs) lib pkgs; };` to `{ inherit lib pkgs; };`
2024-04-02 02:33:48 +02:00