From bca2ac28125ae9df1c3f7b3643e04288a9d057ec Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 17 Dec 2025 15:25:39 +0000 Subject: [PATCH 1/3] test: Override version for consistent upload checksum Co-authored-by: daniel.szoke --- tests/integration/build/upload.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/build/upload.rs b/tests/integration/build/upload.rs index 4c14abe271..22743a421c 100644 --- a/tests/integration/build/upload.rs +++ b/tests/integration/build/upload.rs @@ -238,6 +238,9 @@ fn command_build_upload_ipa_chunked() { .expect(2), ) .register_trycmd_test("build/build-upload-ipa.trycmd") + // We override the version in the metadata field to ensure a consistent checksum + // for the uploaded files. + .env("SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE", "0.0.0-test") .with_default_token(); } From 80e35ded0bfc5ad8036347021e401effdf05deee Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Wed, 17 Dec 2025 16:32:45 +0100 Subject: [PATCH 2/3] fix the hash --- tests/integration/build/upload.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/build/upload.rs b/tests/integration/build/upload.rs index 22743a421c..9e702c8d28 100644 --- a/tests/integration/build/upload.rs +++ b/tests/integration/build/upload.rs @@ -163,7 +163,7 @@ fn command_build_upload_apk_chunked() { "/api/0/projects/wat-org/wat-project/files/preprodartifacts/assemble/", ) .with_header_matcher("content-type", "application/json") - .with_response_fn(move |_| { + .with_response_fn(move |req| { if is_first_assemble_call.swap(false, Ordering::Relaxed) { r#"{ "state": "created", @@ -224,7 +224,7 @@ fn command_build_upload_ipa_chunked() { if is_first_assemble_call.swap(false, Ordering::Relaxed) { r#"{ "state": "created", - "missingChunks": ["1f168f404b360494fd1adbafaf920a303d1b3691"] + "missingChunks": ["ecf0e7cb306f29b21189f49d0879bd85aa4be146"] }"# } else { r#"{ From 5ded699a2ab2fdc397fb1dd60bf26a5863ebe164 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Wed, 17 Dec 2025 16:34:29 +0100 Subject: [PATCH 3/3] fix lint --- tests/integration/build/upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/build/upload.rs b/tests/integration/build/upload.rs index 9e702c8d28..94c2dfd294 100644 --- a/tests/integration/build/upload.rs +++ b/tests/integration/build/upload.rs @@ -163,7 +163,7 @@ fn command_build_upload_apk_chunked() { "/api/0/projects/wat-org/wat-project/files/preprodartifacts/assemble/", ) .with_header_matcher("content-type", "application/json") - .with_response_fn(move |req| { + .with_response_fn(move |_| { if is_first_assemble_call.swap(false, Ordering::Relaxed) { r#"{ "state": "created",