Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

further cleanup

laurenspriem222303d2c308
diff --git a/infra/ml/test/run_ml_parity_tests.sh b/infra/ml/test/run_ml_parity_tests.sh
index 7d439e7c7e..258f1f9309 100755
--- a/infra/ml/test/run_ml_parity_tests.sh
+++ b/infra/ml/test/run_ml_parity_tests.sh
@@ -164,11 +164,6 @@ cleanup_resources() {
trap cleanup_resources EXIT
ensure_goldens_python_runtime_deps() {
- if [[ "$(uname -s)" == "Darwin" && "$(uname -m)" == "x86_64" ]]; then
- echo "Python golden generation requires Apple Silicon on macOS because ONNX Runtime 1.27 does not publish Intel Mac binaries." >&2
- return 1
- fi
-
if ! command -v uv >/dev/null 2>&1; then
echo "Python golden generation requires uv, but uv is unavailable." >&2
return 1
diff --git a/rust/crates/photos/tests/support/ml_indexing.rs b/rust/crates/photos/tests/support/ml_indexing.rs
index 5b693475d6..14b8d5bc88 100644
--- a/rust/crates/photos/tests/support/ml_indexing.rs
+++ b/rust/crates/photos/tests/support/ml_indexing.rs
@@ -633,25 +633,11 @@ fn onnx_runtime_target_key_for(os: &str, arch: &str) -> Result<String> {
match (os, arch) {
("linux", "x86_64") => Ok("x86_64-unknown-linux-gnu".to_string()),
("linux", "aarch64") => Ok("aarch64-unknown-linux-gnu".to_string()),
- ("macos", "x86_64") => bail!(
- "ONNX Runtime 1.27 does not support Apple x86_64; the ML indexing test requires Apple Silicon on macOS"
- ),
("macos", "aarch64") => Ok("aarch64-apple-darwin".to_string()),
(os, arch) => bail!("unsupported ONNX Runtime target for ML indexing test: {arch}-{os}"),
}
}
-#[cfg(test)]
-mod onnx_runtime_target_key_tests {
- use super::onnx_runtime_target_key_for;
-
- #[test]
- fn rejects_intel_macos() {
- let error = onnx_runtime_target_key_for("macos", "x86_64").unwrap_err();
- assert!(error.to_string().contains("requires Apple Silicon"));
- }
-}
-
fn url_file_name(url: &str) -> Result<String> {
Url::parse(url)
.with_context(|| format!("parse asset URL '{url}'"))?