From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 024111FF0B6 for ; Thu, 12 Nov 2026 10:45:25 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9BC962170E; Thu, 12 Nov 2026 10:44:51 +0100 (CET) From: Dominik Rusovac To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox v2 07/19] workspace,resource-scheduling: add proptest as dev-dependency Date: Thu, 12 Nov 2026 10:44:25 +0100 Message-ID: <20261112094437.1951271-8-d.rusovac@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261112094437.1951271-1-d.rusovac@proxmox.com> References: <20261112094437.1951271-1-d.rusovac@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1794476685647 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.044 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: QF54OXSPDBJSHMGALISIG5QDL6KVRVWT X-Message-ID-Hash: QF54OXSPDBJSHMGALISIG5QDL6KVRVWT X-MailFrom: d.rusovac@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: property-based tests let the resource-scheduling methods be checked against invariants over a broad range of, for example, generated clusters, instead of only a few hand-picked examples proptest 1.11 crate exists, but packaged version 1.6 is fine for now afaict updating to 1.11 at some point shouldn't come with breaking changes Signed-off-by: Dominik Rusovac --- Notes: changes since v1: * reword commit * place proptest in alphabetical order in the workspace Cargo.toml Cargo.toml | 1 + proxmox-resource-scheduling/Cargo.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ba62378e..361dd1cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -130,6 +130,7 @@ percent-encoding = "2.1" pin-utils = "0.1.0" pretty_assertions = "1.4" proc-macro2 = "1.0" +proptest = "1.6" quick-xml = "0.36.1" quote = "1.0" regex = "1.5" diff --git a/proxmox-resource-scheduling/Cargo.toml b/proxmox-resource-scheduling/Cargo.toml index 2bfb7871..27d0f3f6 100644 --- a/proxmox-resource-scheduling/Cargo.toml +++ b/proxmox-resource-scheduling/Cargo.toml @@ -11,3 +11,6 @@ exclude.workspace = true [dependencies] anyhow.workspace = true serde = { workspace = true, features = [ "derive" ] } + +[dev-dependencies] +proptest.workspace = true -- 2.47.3