From 1c55bd150229154bbae38d9718900c1d96e774a5 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Mon, 16 Mar 2026 21:07:54 -0400 Subject: [PATCH] ntpd-rs: skip tests depending on timestamped certs These cause consistent test failures when the bundled certs happen to expire. Upstream's response (so far) is to simply bump the expiration date of these certs by another year, so it's probably best to just avoid these until a more permanent solution is found --- pkgs/by-name/nt/ntpd-rs/package.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pkgs/by-name/nt/ntpd-rs/package.nix b/pkgs/by-name/nt/ntpd-rs/package.nix index 080cacb0f99f..ceacf343dc40 100644 --- a/pkgs/by-name/nt/ntpd-rs/package.nix +++ b/pkgs/by-name/nt/ntpd-rs/package.nix @@ -29,6 +29,28 @@ rustPlatform.buildRustPackage (finalAttrs: { installShellFiles ]; + # These fail based on timestamp issues with bundled certificates + # See https://github.com/NixOS/nixpkgs/issues/497682 & https://github.com/pendulum-project/ntpd-rs/pull/2133 + checkFlags = [ + "--skip=daemon::keyexchange::tests::key_exchange_connection_limiter" + "--skip=daemon::keyexchange::tests::key_exchange_roundtrip_with_port_server" + "--skip=daemon::ntp_source::tests::test_deny_stops_poll" + "--skip=daemon::ntp_source::tests::test_timeroundtrip" + "--skip=daemon::server::tests::test_server_serves" + "--skip=nts::tests::test_key_exchange_roundtrip_no_cookies" + "--skip=nts::tests::test_keyexchange_fixed_key_no_permission" + "--skip=nts::tests::test_keyexchange_roundtrip_fixed_key" + "--skip=nts::tests::test_keyexchange_roundtrip_fixed_key_keep_alive" + "--skip=nts::tests::test_keyexchange_roundtrip_fixed_key_no_permit" + "--skip=nts::tests::test_keyexchange_roundtrip_no_proto_overlap" + "--skip=nts::tests::test_keyexchange_roundtrip_no_upgrade_possible" + "--skip=nts::tests::test_keyexchange_roundtrip_supports" + "--skip=nts::tests::test_keyexchange_roundtrip_upgrading" + "--skip=nts::tests::test_keyexchange_roundtrip_v4" + "--skip=nts::tests::test_keyexchange_roundtrip_v5" + "--skip=nts::tests::test_keyexchange_supports_no_permission" + ]; + postPatch = '' substituteInPlace utils/generate-man.sh \ --replace-fail 'utils/pandoc.sh' 'pandoc'