Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove suite flag

laurenspriemdbf40c6d24e2
diff --git a/.github/workflows/ml-indexing-parity.yml b/.github/workflows/ml-indexing-parity.yml
index 431dff4a25..230a856860 100644
--- a/.github/workflows/ml-indexing-parity.yml
+++ b/.github/workflows/ml-indexing-parity.yml
@@ -3,14 +3,6 @@ name: "ML Indexing Parity"
on:
workflow_dispatch: # Manual trigger only. No automatic PR/push/schedule triggers.
inputs:
- suite:
- description: "Parity corpus selection"
- required: true
- default: "smoke"
- type: choice
- options:
- - smoke
- - full
platforms:
description: "Platform runner(s) to execute"
required: true
@@ -148,13 +140,11 @@ jobs:
- name: Run ML indexing parity suite
env:
- PARITY_SUITE: ${{ github.event.inputs.suite }}
PARITY_PLATFORMS: ${{ github.event.inputs.platforms }}
PARITY_FAIL_ON_MISSING: ${{ github.event.inputs.fail_on_missing_platform }}
PARITY_ALLOW_EMPTY: ${{ github.event.inputs.allow_empty_comparison }}
run: |
args=(
- --suite "$PARITY_SUITE"
--platforms "$PARITY_PLATFORMS"
--output-dir "infra/ml/test/out/parity"
)
diff --git a/infra/ml/test/README.md b/infra/ml/test/README.md
index e8ff92486a..ef1e6ab7ee 100644
--- a/infra/ml/test/README.md
+++ b/infra/ml/test/README.md
@@ -21,12 +21,11 @@ This directory contains the ML indexing parity framework for Android, iOS, deskt
## Local Run (One Command)
```bash
-bash infra/ml/test/tools/run_suite.sh --suite smoke --platforms all
+bash infra/ml/test/tools/run_suite.sh
```
Common flags:
-- `--suite smoke|full`
- `--platforms all|desktop|android|ios`
- `--fail-on-missing-platform`
- `--fail-on-platform-runner-error`
@@ -47,7 +46,6 @@ Workflow: `.github/workflows/ml-indexing-parity.yml`
Run via `workflow_dispatch` and choose:
-- `suite`
- `platforms`
- strictness flags
- optional explicit Android/iOS device IDs
@@ -64,7 +62,7 @@ Use this process when corpus/threshold/model behavior changes intentionally:
2. Regenerate and compare with a real run:
```bash
-bash infra/ml/test/tools/run_suite.sh --suite full --platforms all --output-dir infra/ml/test/out/parity
+bash infra/ml/test/tools/run_suite.sh --platforms all --output-dir infra/ml/test/out/parity
```
3. Review `infra/ml/test/out/parity/parity_report.html`, `comparison_report.json`, and per-platform `results.json` files.
diff --git a/infra/ml/test/ml-indexing-parity-test-plan.md b/infra/ml/test/ml-indexing-parity-test-plan.md
index ff031ee2ce..59b69c75b0 100644
--- a/infra/ml/test/ml-indexing-parity-test-plan.md
+++ b/infra/ml/test/ml-indexing-parity-test-plan.md
@@ -283,13 +283,12 @@ Default behavior:
6. Clearly mark unavailable/failed platform runs.
Flags:
-1. `--suite smoke|full`
-2. `--platforms all|desktop|android|ios`
-3. `--fail-on-missing-platform`
-4. `--fail-on-platform-runner-error`
-5. `--allow-empty-comparison` (optional override when intentionally running without any platform outputs)
-6. `--output-dir ...`
-7. `--verbose` (optional, streams full logs/tables to terminal)
+1. `--platforms all|desktop|android|ios`
+2. `--fail-on-missing-platform`
+3. `--fail-on-platform-runner-error`
+4. `--allow-empty-comparison` (optional override when intentionally running without any platform outputs)
+5. `--output-dir ...`
+6. `--verbose` (optional, streams full logs/tables to terminal)
Target runtime: 10-20 minutes for full local run (with caching).
@@ -301,7 +300,7 @@ Trigger policy:
Execution model:
1. Single parity job on `macos-latest`.
-2. Job accepts manual inputs for `suite`, `platforms`, strictness flags, and optional device IDs.
+2. Job accepts manual inputs for `platforms`, strictness flags, and optional device IDs.
3. Job runs `infra/ml/test/tools/run_suite.sh` and uploads `infra/ml/test/out/parity/**` artifacts.
No automatic pull-request, push, or schedule triggers.
diff --git a/infra/ml/test/tools/run_suite.sh b/infra/ml/test/tools/run_suite.sh
index 0941949bdc..e427a486e4 100755
--- a/infra/ml/test/tools/run_suite.sh
+++ b/infra/ml/test/tools/run_suite.sh
@@ -10,7 +10,6 @@ UV_PROJECT_DIR="$ROOT_DIR/infra/ml"
MANIFEST_PATH="$ROOT_DIR/infra/ml/test/ground_truth/manifest.json"
TEST_DATA_DIR="$ML_DIR/test_data/ml-indexing/v1"
-SUITE="smoke"
PLATFORMS="all"
FAIL_ON_MISSING_PLATFORM=false
FAIL_ON_PLATFORM_RUNNER_ERROR=false
@@ -23,7 +22,6 @@ usage() {
Usage: infra/ml/test/tools/run_suite.sh [flags]
Flags:
- --suite smoke|full (default: smoke)
--platforms all|desktop|android|ios (default: all)
--fail-on-missing-platform (default: disabled)
--fail-on-platform-runner-error (default: disabled)
@@ -38,10 +36,6 @@ EOF
while (($# > 0)); do
case "$1" in
- --suite)
- SUITE="$2"
- shift 2
- ;;
--platforms)
PLATFORMS="$2"
shift 2
@@ -109,7 +103,6 @@ PY
CODE_REVISION="$(git -C "$ROOT_DIR" rev-parse --short HEAD 2>/dev/null || echo local)"
echo "Running ML parity suite"
-echo " suite: $SUITE"
echo " platforms: $PLATFORMS"
echo " output_dir: $OUTPUT_DIR"
echo " verbose: $VERBOSE"
@@ -427,7 +420,6 @@ run_mobile_runner() {
--no-dds
--dart-define=ML_PARITY_MANIFEST_B64="$MANIFEST_B64"
--dart-define=ML_PARITY_CODE_REVISION="$CODE_REVISION"
- --dart-define=ML_PARITY_SUITE="$SUITE"
)
if [[ -n "$device_id" ]]; then
drive_cmd+=(-d "$device_id")