Skip to content

Commit 09b57b7

Browse files
committed
Revert "Add explicit crc-fast 1.4 SIGILL detection test"
This reverts commit 7d0042f.
1 parent 7d0042f commit 09b57b7

File tree

2 files changed

+0
-63
lines changed

2 files changed

+0
-63
lines changed

tools/ci-cdk/canary-lambda/examples/test_crc_fast.rs

Lines changed: 0 additions & 33 deletions
This file was deleted.

tools/ci-cdk/canary-lambda/src/latest/s3_canary.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -435,33 +435,3 @@ async fn test_s3_canary() {
435435
fut.await.expect("joined").expect("success");
436436
}
437437
}
438-
439-
// Explicit test for crc-fast 1.4 SIGILL issue
440-
// This will fail immediately on CPUs without AVX-512 support
441-
async fn test_checksum_algorithms() -> anyhow::Result<()> {
442-
use aws_smithy_checksums::ChecksumAlgorithm;
443-
444-
println!("Testing checksum algorithms (crc-fast 1.4 SIGILL detection)...");
445-
446-
#[cfg(target_arch = "x86_64")]
447-
{
448-
println!("CPU Features - AVX-512F: {}, AVX-512VL: {}",
449-
is_x86_feature_detected!("avx512f"),
450-
is_x86_feature_detected!("avx512vl"));
451-
}
452-
453-
let test_data = vec![0u8; 1024 * 1024]; // 1MB test data
454-
455-
// These will SIGILL on x86_64 without AVX-512 if using crc-fast 1.4
456-
println!("Computing CRC32...");
457-
let _crc32 = aws_smithy_checksums::body::calculate(&test_data, &ChecksumAlgorithm::Crc32);
458-
459-
println!("Computing CRC32C...");
460-
let _crc32c = aws_smithy_checksums::body::calculate(&test_data, &ChecksumAlgorithm::Crc32C);
461-
462-
println!("Computing CRC64NVME...");
463-
let _crc64 = aws_smithy_checksums::body::calculate(&test_data, &ChecksumAlgorithm::Crc64Nvme);
464-
465-
println!("All checksum algorithms work correctly!");
466-
Ok(())
467-
}

0 commit comments

Comments
 (0)