From ec3c6432b7a6d11be547949b15eb0d5f1481abde Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Fri, 7 Feb 2025 08:33:13 -0800 Subject: [PATCH 1/2] Add MacOS to CI matrix --- .github/workflows/cargo.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index dcde3295..2e6f28ab 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -14,6 +14,7 @@ jobs: matrix: os: - ubuntu-latest + - macos-latest - windows-latest rust: - stable From 55ff57a54beae94d57b2b0d17c876dd2d6956b80 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 8 Feb 2025 16:26:34 +0100 Subject: [PATCH 2/2] Fix test which could also fail CI --- tests/git/mod.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/git/mod.rs b/tests/git/mod.rs index 5c5a1373..23166e35 100644 --- a/tests/git/mod.rs +++ b/tests/git/mod.rs @@ -11,14 +11,24 @@ pub(crate) mod with_https { let mut last_time = SystemTime::now(); let desired = 500; let mut count = 0; + let mut missing = 0; for c in ch.take(desired) { let c = c.unwrap(); count += 1; - index.crate_(&c.crate_name()).unwrap(); + if index.crate_(&c.crate_name()).is_none() { + eprintln!( + "{} is changed but couldn't be found in the Git database", + c.crate_name() + ); + missing += 1 + } assert!(last_time >= c.time()); last_time = c.time(); } assert_eq!(count, desired); + if missing != 0 { + eprintln!("Couldn't find {missing} crates when looking them up - strange") + } } #[test]