Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prune remaining infra comments

Manav Rathie40d997ac6be
diff --git a/infra/ml/playground/optimizations/optimize_models.py b/infra/ml/playground/optimizations/optimize_models.py
index d7db6893d8..3fdb602151 100644
--- a/infra/ml/playground/optimizations/optimize_models.py
+++ b/infra/ml/playground/optimizations/optimize_models.py
@@ -1,11 +1,4 @@
#!/usr/bin/env python3
-"""Build Ente's optimized ONNX models for the mobile ML pipeline.
-
-The generated models remain standard ONNX. The transformations make their
-graphs easier for CoreML, WebGPU, and mobile CPU runtimes to optimize while
-preserving the outputs used by the application.
-"""
-
from __future__ import annotations
import argparse
diff --git a/infra/ml/playground/pyproject.toml b/infra/ml/playground/pyproject.toml
index 8186061af5..754fef12b5 100644
--- a/infra/ml/playground/pyproject.toml
+++ b/infra/ml/playground/pyproject.toml
@@ -1,7 +1,6 @@
[project]
name = "ente-clean-ml"
version = "0.1.0"
-description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
diff --git a/infra/workers/cast-albums/src/index.ts b/infra/workers/cast-albums/src/index.ts
index f13630d961..d877f20222 100644
--- a/infra/workers/cast-albums/src/index.ts
+++ b/infra/workers/cast-albums/src/index.ts
@@ -39,7 +39,6 @@ const isAllowedOrigin = (origin: string | null) => {
const url = new URL(origin);
return allowed.includes(url.hostname);
} catch {
- // origin is likely an invalid URL
return false;
}
};
diff --git a/infra/workers/files/src/index.ts b/infra/workers/files/src/index.ts
index ccc1720f7e..ea38e41fb5 100644
--- a/infra/workers/files/src/index.ts
+++ b/infra/workers/files/src/index.ts
@@ -32,12 +32,11 @@ const isAllowedOrigin = (origin: string | null) => {
const url = new URL(origin);
const hostname = url.hostname;
return (
- origin == "ente://app" /* desktop app */ ||
+ origin == "ente://app" ||
isEnteHostname(hostname) ||
hostname == "localhost"
);
} catch {
- // `origin` is likely an invalid URL.
return false;
}
};
diff --git a/infra/workers/health-check/wrangler.toml b/infra/workers/health-check/wrangler.toml
index 49e22359d8..381ede265d 100644
--- a/infra/workers/health-check/wrangler.toml
+++ b/infra/workers/health-check/wrangler.toml
@@ -13,5 +13,4 @@ tail_consumers = [{ service = "tail" }]
# CHAT_ID = ""
[triggers]
-# Every minute
crons = [ "*/1 * * * *" ]
diff --git a/infra/workers/thumbnails/src/index.ts b/infra/workers/thumbnails/src/index.ts
index 224bbd638a..57f3cf28ba 100644
--- a/infra/workers/thumbnails/src/index.ts
+++ b/infra/workers/thumbnails/src/index.ts
@@ -32,12 +32,11 @@ const isAllowedOrigin = (origin: string | null) => {
const url = new URL(origin);
const hostname = url.hostname;
return (
- origin == "ente://app" /* desktop app */ ||
+ origin == "ente://app" ||
isEnteHostname(hostname) ||
hostname == "localhost"
);
} catch {
- // `origin` is likely an invalid URL.
return false;
}
};
diff --git a/infra/workers/uploader/src/index.ts b/infra/workers/uploader/src/index.ts
index 8db0b3f1ed..36537ad372 100644
--- a/infra/workers/uploader/src/index.ts
+++ b/infra/workers/uploader/src/index.ts
@@ -14,7 +14,6 @@ export default {
},
} satisfies ExportedHandler;
-// Strict allowlist of upload destinations.
const ALLOWED_UPLOAD_HOSTS = new Set<string>([
"ente-prod-eu.s3.eu-central-003.backblazeb2.com",
]);