diff --git a/README.md b/README.md index 52ab10b0..1563ce02 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,6 @@ Drobodata is a workflow orchestration platform for embodied AI and vision pipeli - `npm run verify:security`: dependency audit with retry - `npm run verify`: run local verification first, then dependency audit - `npm run acceptance:workflow`: live workflow acceptance against the running API and worker; requires an explicit real source path -- `npm run smoke`: legacy compatibility alias for `npm run acceptance:workflow` - `npm run acceptance:gpu`: real Kubernetes GPU scheduling and `nvidia-smi` acceptance test - `npm run k8s:cleanup-jobs`: delete old finished operator-runner Jobs that predate TTL cleanup - `npm run reconcile:data -- `: remove legacy demo data, reset settings, and bootstrap built-in operators through the real API; honors `DROBOTICFLOW_API_TOKEN` and optional session login env vars for protected deployments @@ -111,7 +110,7 @@ Key environment variables: - `DROBOTICFLOW_API_TOKEN`: optional shared API token for non-browser API clients. When set, non-public API calls require `Authorization: Bearer ` or `X-Droboticflow-API-Token` unless a valid session cookie is already present while session auth is enabled. - `DROBOTICFLOW_REQUIRE_SESSION_AUTH`: optional cookie-session auth enforcement for business APIs, default `false` locally; public LoadBalancer deploys force it to `true` - `DROBOTICFLOW_SESSION_COOKIE_SECURE`: sets the `Secure` attribute on session cookies, default `false` for local development; enable it behind HTTPS -- `DROBOTICFLOW_ACCEPTANCE_EMAIL` / `DROBOTICFLOW_ACCEPTANCE_PASSWORD`: optional credentials used by live acceptance and reconcile scripts to log in, persist cookies, and send CSRF headers against session-authenticated deployments. Workflow acceptance checks can use admin, pipeline-engineer, data-operator, or legacy operator accounts depending on the exercised surface; reconcile still needs an admin account when it updates settings or management resources. Legacy `DROBOTICFLOW_SMOKE_EMAIL` / `DROBOTICFLOW_SMOKE_PASSWORD` are still accepted as compatibility aliases. +- `DROBOTICFLOW_ACCEPTANCE_EMAIL` / `DROBOTICFLOW_ACCEPTANCE_PASSWORD`: optional credentials used by live acceptance and reconcile scripts to log in, persist cookies, and send CSRF headers against session-authenticated deployments. Workflow acceptance checks can use admin, pipeline-engineer, data-operator, or legacy operator accounts depending on the exercised surface; reconcile still needs an admin account when it updates settings or management resources. - `DROBOTICFLOW_TRUSTED_PROXY_CIDRS`: optional comma/space-separated proxy CIDRs whose `X-Forwarded-For` or `X-Real-IP` headers may be trusted for rate limiting; empty means trust no forwarded headers - `API_SERVICE_TYPE`: Kubernetes API service type for rendered manifests, `NodePort` by default and `ClusterIP` when exposure is handled by LoadBalancer or ingress - `AI_API_BASE_URL`: OpenAI-compatible endpoint used by server-side AI generation; required when `AI_API_KEY` is set @@ -120,7 +119,7 @@ Key environment variables: - `VITE_API_BASE_URL`: optional frontend API base URL override; leave empty for same-origin `/api`, or set an absolute `http://` / `https://` URL - `VITE_DEV_API_BASE_URL`: optional Vite dev proxy target for `/api`, default `http://127.0.0.1:3001` - `VITE_DEV_WORKER_BASE_URL`: optional Vite dev proxy target for `/worker-api`, default `http://127.0.0.1:3002` -- `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT`: set to `true` for deployed-environment workflow acceptance so omitted API endpoints fail instead of falling back to localhost. Legacy `SMOKE_REQUIRE_EXPLICIT_ENDPOINT` is still accepted by the compatibility wrapper. +- `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT`: set to `true` for deployed-environment workflow acceptance so omitted API endpoints fail instead of falling back to localhost. Explicit startup values are validated before API/worker startup, before Kubernetes manifest rendering, and before `scripts/deploy-k8s.sh` performs cluster writes. `MONGO_URI` is required at runtime and must be a `mongodb://` or `mongodb+srv://` URI without whitespace or unreplaced placeholder markers. `PORT`/`WORKER_PORT` must be valid TCP ports, Mongo retry count and retry delay must be positive, worker poll interval must be positive, replica counts must be non-negative in manifests, NodePort must be in the Kubernetes `30000..32767` range, and `OPERATOR_JOB_TTL_SECONDS` must be non-negative (`0` disables TTL injection). Manifest, build, and deploy wrappers no longer carry a repository-default image registry: callers must set `API_IMAGE`, `WORKER_IMAGE`, and `OPERATOR_RUNNER_IMAGE` explicitly, or set `REGISTRY_HOST` and `REGISTRY_NAMESPACE` so those image references can be derived from `IMAGE_TAG`; all three wrappers validate generated or explicit image references before Docker or Kubernetes calls. Manifest and deploy wrappers also reject invalid Kubernetes namespace/Secret/PVC/Service names, non-absolute workspace mount paths, malformed worker/BOS service URLs, malformed non-empty AI service URLs, missing AI base/model when an AI key is configured, and container image references with whitespace. Multi-line ConfigMap block values such as GPU tolerations JSON and shell command allow/deny regexes are indented before manifest output so readable multi-line input stays valid YAML. Explicit boolean env values accept `true/false`, `1/0`, `yes/no`, or `on/off`; other spellings fail fast instead of silently falling back, and accepted true aliases drive deploy-time branches such as public LoadBalancer creation. @@ -129,7 +128,7 @@ Development and acceptance entrypoints resolve API endpoints through shared help The frontend never reads the AI key directly. Workflow generation and operator generation are proxied through the Go API so secrets stay on the server side. The settings page can update K8s access details, the worker defaults, the global `timezone`, `provider`, `baseURL`, `model`, and the server-side AI key. `GET /api/settings` only returns whether secrets exist via `k8s.hasKubeconfig` / `ai.hasAPIKey`; it does not echo plaintext kubeconfig or API keys back to the browser. When session auth is required, `/api/settings`, `/api/users`, database browser routes, object-storage management routes, Mongo connection tests, and external business-DB token management are organization-admin surfaces; creating a user or setting a password requires a non-blank password value, user names cannot be blank, and account status must be `active` or `disabled`. Business roles are modeled around embodied-AI data production: `admin` owns organization/system governance, `pipeline_engineer` owns operators/templates/workflow design and AI-assisted generation, `data_operator` owns project execution, run control, production monitoring, and storage browsing, `qa_reviewer` owns workflow audit decisions and post-package sampling acceptance, and `compliance_auditor` is read-only for monitoring, data assets, and audit traceability. Legacy `operator` and `auditor` users remain accepted for migration compatibility. Project mutations reject blank names and unknown statuses; project status must be `active` or `archived`. Workflow and template mutations reject blank names and unknown metadata enum values before persistence. Operator mutations reject blank metadata, unknown operator/port enum values, duplicate port IDs, and invalid resource defaults before persistence. Reusable storage/Mongo connection list/get routes and workflow storage browse helpers require admin, pipeline engineer, data operator, or legacy operator role so workflow editors and production operators can select real connections without exposing connection or bucket metadata to reviewers. Creating, updating, deleting, or testing connections remains admin-only. Model-backed AI generation requires admin, pipeline engineer, or legacy operator role. Non-admin pages use `/api/public/settings`, which exposes only `timezone`, and users can update only their own sidebar `name` / `email` through `/api/users/me`. Worker polling and concurrency values are positive-integer gated in the browser, the shared settings payload builder, and the API, so values such as `0`, `1.5`, `60s`, or blank strings fail instead of being ignored. Default CPU/MEM resource values are trimmed and validated as positive Kubernetes resource quantities when settings are saved, and default GPU must be a positive integer when present. Timestamps in the UI are rendered in the configured IANA timezone with compact minute-level formatting for cards, lists, and summaries, while logs keep finer granularity when needed. OSS-related bucket and path settings belong on OSS operators in workflows, not in the global system settings page. Scan workflows can now reference reusable BOS storage connections via `scanConfig.connectionId`, so endpoint and AK/SK are stored once in `/api/storage/connections` and resolved by the API/worker at preview and execution time instead of being duplicated into each workflow; if a scan config or connection omits endpoint, both API preview and worker execution use the validated `BOS_ENDPOINT` startup value when it is set, otherwise real BOS requests fail with an explicit missing-endpoint error. -The API now includes a cookie-session account foundation for organization-based access. Auth endpoints cover bootstrap, login, logout, current session, and super-admin organization/user management. Existing local deployments remain compatible by default; public LoadBalancer deploys require `DROBOTICFLOW_REQUIRE_SESSION_AUTH=true` so browser business APIs keep role checks. Session-authenticated unsafe requests, including logout, use a double-submit `droboticflow_csrf` cookie plus `X-Droboticflow-CSRF-Token` header. Browser JSON, object-storage preview, and multipart object upload requests share the same credentials and CSRF header path; object-storage preview byte-count headers are accepted only when they are exact safe non-negative integers. Worker control endpoints under `/worker-api` require an admin, pipeline engineer, data operator, or legacy operator session, or an API token when session auth is not enforced. Bundled acceptance and reconcile scripts can log in with `DROBOTICFLOW_ACCEPTANCE_EMAIL` / `DROBOTICFLOW_ACCEPTANCE_PASSWORD` and will send CSRF headers on writes; legacy `DROBOTICFLOW_SMOKE_*` names remain compatibility aliases. Do not embed `DROBOTICFLOW_API_TOKEN` into frontend builds; it is intended for machine-to-machine calls only. +The API now includes a cookie-session account foundation for organization-based access. Auth endpoints cover bootstrap, login, logout, current session, and super-admin organization/user management. Existing local deployments remain compatible by default; public LoadBalancer deploys require `DROBOTICFLOW_REQUIRE_SESSION_AUTH=true` so browser business APIs keep role checks. Session-authenticated unsafe requests, including logout, use a double-submit `droboticflow_csrf` cookie plus `X-Droboticflow-CSRF-Token` header. Browser JSON, object-storage preview, and multipart object upload requests share the same credentials and CSRF header path; object-storage preview byte-count headers are accepted only when they are exact safe non-negative integers. Worker control endpoints under `/worker-api` require an admin, pipeline engineer, data operator, or legacy operator session, or an API token when session auth is not enforced. Bundled acceptance and reconcile scripts can log in with `DROBOTICFLOW_ACCEPTANCE_EMAIL` / `DROBOTICFLOW_ACCEPTANCE_PASSWORD` and will send CSRF headers on writes. Do not embed `DROBOTICFLOW_API_TOKEN` into frontend builds; it is intended for machine-to-machine calls only. The Kubernetes runtime now assumes a shared workspace PVC. Worker writes per-node `input-artifacts.json` files into the shared workspace, operator-runner Jobs read those files through `INPUT_ARTIFACTS_PATH`, then persist `result.json` and `stage-manifest.json` back into the same PVC. Large artifact lists no longer need to travel through giant env vars or stdout payloads. Node CPU and memory requests/limits are applied to Kubernetes Job container resources and must be valid positive Kubernetes resource quantities; malformed explicit values fail before a Job is created instead of being omitted. GPU requests use `nvidia.com/gpu` when the node or default resource config sets a positive GPU count. GPU scheduling requires a cluster with GPU nodes and the NVIDIA device plugin/runtime installed. Optional GPU node selector, tolerations, and runtime class settings are only injected into Jobs that request a positive GPU count. Invalid GPU selector or tolerations configuration fails worker startup instead of being ignored. Operator-runner Jobs also receive `ttlSecondsAfterFinished` from `OPERATOR_JOB_TTL_SECONDS`, and the cleanup script can remove old completed Jobs that were created before TTL was enabled. Run `npm run acceptance:gpu` against a real GPU cluster to validate allocatable GPU resources, scheduling, runtime, and `nvidia-smi` execution; the acceptance script rejects invalid namespace, image, timeout, GPU count, selector, toleration, resource-name, Job-name, and runtime-class inputs before it touches the cluster, and renders dynamic manifest values as quoted YAML scalars. Runs that execute on NVIDIA hardware report GPU utilization, GPU memory, GPU count, and GPU model in the resource samples shown on the monitoring page. @@ -254,7 +253,7 @@ WORKFLOW_ACCEPTANCE_SOURCE_PATH= \ ./scripts/live-workflow-acceptance.sh http://:30080 ``` -`WORKFLOW_ACCEPTANCE_SOURCE_PATH` can be a filesystem/PVC path or a `bos://bucket/prefix` path. The real-source operator infers `LOCAL` or `BOS` from that path and fails fast when no real source is configured, so an empty source configuration cannot pass by producing an empty manifest. Set `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT=true` for deployed workflow acceptance so the script fails instead of falling back to localhost when `BASE_URL` / `API_BASE_URL` is omitted. Legacy `SMOKE_SOURCE_PATH`, `SMOKE_REQUIRE_EXPLICIT_ENDPOINT`, and `./scripts/smoke-test.sh` still forward to the live acceptance script. +`WORKFLOW_ACCEPTANCE_SOURCE_PATH` can be a filesystem/PVC path or a `bos://bucket/prefix` path. The real-source operator infers `LOCAL` or `BOS` from that path and fails fast when no real source is configured, so an empty source configuration cannot pass by producing an empty manifest. Set `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT=true` for deployed workflow acceptance so the script fails instead of falling back to localhost when `BASE_URL` / `API_BASE_URL` is omitted. Run browser object-storage acceptance against a deployed cluster: diff --git a/backend/operators/README.md b/backend/operators/README.md index 54742d7d..cc05a530 100644 --- a/backend/operators/README.md +++ b/backend/operators/README.md @@ -20,7 +20,7 @@ Repository contract: Acceptance requirements: - Use real input files, JSON payloads, command execution, or storage clients in tests. -- Do not add mock-only, simulation-only, hard-coded, or smoke-only acceptance paths. +- Do not add mock-only, simulation-only, hard-coded, or shallow-only acceptance paths. - Keep catalog metadata in `internal/api/builtin_operators_catalog.json` aligned with the operator directory metadata. - Keep public operator docs in `docs/operators/` aligned with runtime handlers. diff --git a/backend/operators/builtin/audit_sample/operator.json b/backend/operators/builtin/audit_sample/operator.json index 66bb512f..54bd9cd0 100644 --- a/backend/operators/builtin/audit_sample/operator.json +++ b/backend/operators/builtin/audit_sample/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/audit_sample/repository.json b/backend/operators/builtin/audit_sample/repository.json index f325d25e..d14a5608 100644 --- a/backend/operators/builtin/audit_sample/repository.json +++ b/backend/operators/builtin/audit_sample/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "QA", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/bos_incremental_scan/operator.json b/backend/operators/builtin/bos_incremental_scan/operator.json index 1c02933e..f2cf7685 100644 --- a/backend/operators/builtin/bos_incremental_scan/operator.json +++ b/backend/operators/builtin/bos_incremental_scan/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/bos_incremental_scan/repository.json b/backend/operators/builtin/bos_incremental_scan/repository.json index 659c1025..ba1b4143 100644 --- a/backend/operators/builtin/bos_incremental_scan/repository.json +++ b/backend/operators/builtin/bos_incremental_scan/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "IO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/conditional_route/operator.json b/backend/operators/builtin/conditional_route/operator.json index d7a1bca6..d75660a7 100644 --- a/backend/operators/builtin/conditional_route/operator.json +++ b/backend/operators/builtin/conditional_route/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/conditional_route/repository.json b/backend/operators/builtin/conditional_route/repository.json index 5bbcab0c..d5dddfc9 100644 --- a/backend/operators/builtin/conditional_route/repository.json +++ b/backend/operators/builtin/conditional_route/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "LOGIC", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/csv_to_json/operator.json b/backend/operators/builtin/csv_to_json/operator.json index bb326d02..5a32e515 100644 --- a/backend/operators/builtin/csv_to_json/operator.json +++ b/backend/operators/builtin/csv_to_json/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/csv_to_json/repository.json b/backend/operators/builtin/csv_to_json/repository.json index 88ca86f8..5abe6ebb 100644 --- a/backend/operators/builtin/csv_to_json/repository.json +++ b/backend/operators/builtin/csv_to_json/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATA", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/dcloud_data_generation/operator.json b/backend/operators/builtin/dcloud_data_generation/operator.json index 6cb20805..016ce80a 100644 --- a/backend/operators/builtin/dcloud_data_generation/operator.json +++ b/backend/operators/builtin/dcloud_data_generation/operator.json @@ -11,7 +11,7 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false }, "externalApi": { "sourceRepo": "https://gitea.d-robotics.cc/d-cloud/data_generation", diff --git a/backend/operators/builtin/dcloud_data_generation/repository.json b/backend/operators/builtin/dcloud_data_generation/repository.json index d1bc12f8..a389c922 100644 --- a/backend/operators/builtin/dcloud_data_generation/repository.json +++ b/backend/operators/builtin/dcloud_data_generation/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "AI", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/dcloud_embodied_annotation/operator.json b/backend/operators/builtin/dcloud_embodied_annotation/operator.json index a2a2a41f..7b775f70 100644 --- a/backend/operators/builtin/dcloud_embodied_annotation/operator.json +++ b/backend/operators/builtin/dcloud_embodied_annotation/operator.json @@ -11,7 +11,7 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false }, "externalApi": { "sourceRepo": "https://gitea.d-robotics.cc/d-cloud/robo_annotation_backend", diff --git a/backend/operators/builtin/dcloud_embodied_annotation/repository.json b/backend/operators/builtin/dcloud_embodied_annotation/repository.json index f6360c2c..53a8f8fb 100644 --- a/backend/operators/builtin/dcloud_embodied_annotation/repository.json +++ b/backend/operators/builtin/dcloud_embodied_annotation/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "AI", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/directory_scan/operator.json b/backend/operators/builtin/directory_scan/operator.json index dedc1cf7..b21738d3 100644 --- a/backend/operators/builtin/directory_scan/operator.json +++ b/backend/operators/builtin/directory_scan/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/directory_scan/repository.json b/backend/operators/builtin/directory_scan/repository.json index 8e612a5c..4885693f 100644 --- a/backend/operators/builtin/directory_scan/repository.json +++ b/backend/operators/builtin/directory_scan/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "IO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/human_review/operator.json b/backend/operators/builtin/human_review/operator.json index 380c00c0..d7d76141 100644 --- a/backend/operators/builtin/human_review/operator.json +++ b/backend/operators/builtin/human_review/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/human_review/repository.json b/backend/operators/builtin/human_review/repository.json index 90c44e58..0bfed8f3 100644 --- a/backend/operators/builtin/human_review/repository.json +++ b/backend/operators/builtin/human_review/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "HUMAN", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/json_field_extract/operator.json b/backend/operators/builtin/json_field_extract/operator.json index a7c32566..d3b59124 100644 --- a/backend/operators/builtin/json_field_extract/operator.json +++ b/backend/operators/builtin/json_field_extract/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/json_field_extract/repository.json b/backend/operators/builtin/json_field_extract/repository.json index d19ff0d9..d67e9b9f 100644 --- a/backend/operators/builtin/json_field_extract/repository.json +++ b/backend/operators/builtin/json_field_extract/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATA", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/json_filter/operator.json b/backend/operators/builtin/json_filter/operator.json index 8acecaea..8ae11308 100644 --- a/backend/operators/builtin/json_filter/operator.json +++ b/backend/operators/builtin/json_filter/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/json_filter/repository.json b/backend/operators/builtin/json_filter/repository.json index 118d329e..e4229cfd 100644 --- a/backend/operators/builtin/json_filter/repository.json +++ b/backend/operators/builtin/json_filter/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATA", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/json_map_rename/operator.json b/backend/operators/builtin/json_map_rename/operator.json index 09c79570..aadfd8f2 100644 --- a/backend/operators/builtin/json_map_rename/operator.json +++ b/backend/operators/builtin/json_map_rename/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/json_map_rename/repository.json b/backend/operators/builtin/json_map_rename/repository.json index 9de16796..643fe315 100644 --- a/backend/operators/builtin/json_map_rename/repository.json +++ b/backend/operators/builtin/json_map_rename/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATA", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/json_to_csv/operator.json b/backend/operators/builtin/json_to_csv/operator.json index 04fbe399..1a57adc6 100644 --- a/backend/operators/builtin/json_to_csv/operator.json +++ b/backend/operators/builtin/json_to_csv/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/json_to_csv/repository.json b/backend/operators/builtin/json_to_csv/repository.json index 1a525c63..79b76b79 100644 --- a/backend/operators/builtin/json_to_csv/repository.json +++ b/backend/operators/builtin/json_to_csv/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATA", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/lerobot_summary/operator.json b/backend/operators/builtin/lerobot_summary/operator.json index 64a5624a..59e3b781 100644 --- a/backend/operators/builtin/lerobot_summary/operator.json +++ b/backend/operators/builtin/lerobot_summary/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/lerobot_summary/repository.json b/backend/operators/builtin/lerobot_summary/repository.json index bd932356..15b43688 100644 --- a/backend/operators/builtin/lerobot_summary/repository.json +++ b/backend/operators/builtin/lerobot_summary/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "ROBOTICS", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/merge/operator.json b/backend/operators/builtin/merge/operator.json index f713e2b5..d7b69294 100644 --- a/backend/operators/builtin/merge/operator.json +++ b/backend/operators/builtin/merge/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/merge/repository.json b/backend/operators/builtin/merge/repository.json index f68f047d..bbdba536 100644 --- a/backend/operators/builtin/merge/repository.json +++ b/backend/operators/builtin/merge/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "MATH", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/model_inference/operator.json b/backend/operators/builtin/model_inference/operator.json index 2d434eb1..bce51785 100644 --- a/backend/operators/builtin/model_inference/operator.json +++ b/backend/operators/builtin/model_inference/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/model_inference/repository.json b/backend/operators/builtin/model_inference/repository.json index 7ad5d14e..a01dc3ff 100644 --- a/backend/operators/builtin/model_inference/repository.json +++ b/backend/operators/builtin/model_inference/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "AI", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/mongodb_write/operator.json b/backend/operators/builtin/mongodb_write/operator.json index 20da1c94..7b4992fd 100644 --- a/backend/operators/builtin/mongodb_write/operator.json +++ b/backend/operators/builtin/mongodb_write/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/mongodb_write/repository.json b/backend/operators/builtin/mongodb_write/repository.json index 792f40e8..326eaca6 100644 --- a/backend/operators/builtin/mongodb_write/repository.json +++ b/backend/operators/builtin/mongodb_write/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATA", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/package/operator.json b/backend/operators/builtin/package/operator.json index 743862be..f9dbd811 100644 --- a/backend/operators/builtin/package/operator.json +++ b/backend/operators/builtin/package/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/package/repository.json b/backend/operators/builtin/package/repository.json index 95f1d031..3869fd3e 100644 --- a/backend/operators/builtin/package/repository.json +++ b/backend/operators/builtin/package/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "VIDEO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/real_source/operator.json b/backend/operators/builtin/real_source/operator.json index 43eb2091..e22a9659 100644 --- a/backend/operators/builtin/real_source/operator.json +++ b/backend/operators/builtin/real_source/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/real_source/repository.json b/backend/operators/builtin/real_source/repository.json index 74f502a8..7b1f1dc1 100644 --- a/backend/operators/builtin/real_source/repository.json +++ b/backend/operators/builtin/real_source/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "IO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/rosbag_summary/operator.json b/backend/operators/builtin/rosbag_summary/operator.json index 3c8ef268..aba3b82c 100644 --- a/backend/operators/builtin/rosbag_summary/operator.json +++ b/backend/operators/builtin/rosbag_summary/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/rosbag_summary/repository.json b/backend/operators/builtin/rosbag_summary/repository.json index 5b12d2c6..9041ea65 100644 --- a/backend/operators/builtin/rosbag_summary/repository.json +++ b/backend/operators/builtin/rosbag_summary/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "ROBOTICS", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/shell_command/operator.json b/backend/operators/builtin/shell_command/operator.json index 2b71d70f..0584243e 100644 --- a/backend/operators/builtin/shell_command/operator.json +++ b/backend/operators/builtin/shell_command/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/shell_command/repository.json b/backend/operators/builtin/shell_command/repository.json index ffa8e4d7..1809e064 100644 --- a/backend/operators/builtin/shell_command/repository.json +++ b/backend/operators/builtin/shell_command/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "UTIL", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/template_render/operator.json b/backend/operators/builtin/template_render/operator.json index 06dd1096..97e02e50 100644 --- a/backend/operators/builtin/template_render/operator.json +++ b/backend/operators/builtin/template_render/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/template_render/repository.json b/backend/operators/builtin/template_render/repository.json index f702dce1..d45f95e8 100644 --- a/backend/operators/builtin/template_render/repository.json +++ b/backend/operators/builtin/template_render/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "UTIL", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/upload/operator.json b/backend/operators/builtin/upload/operator.json index c7e9b92d..f02d44cb 100644 --- a/backend/operators/builtin/upload/operator.json +++ b/backend/operators/builtin/upload/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/upload/repository.json b/backend/operators/builtin/upload/repository.json index a96278b2..75790f11 100644 --- a/backend/operators/builtin/upload/repository.json +++ b/backend/operators/builtin/upload/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "IO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/video_annotate/operator.json b/backend/operators/builtin/video_annotate/operator.json index 9dab7dad..60249945 100644 --- a/backend/operators/builtin/video_annotate/operator.json +++ b/backend/operators/builtin/video_annotate/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/video_annotate/repository.json b/backend/operators/builtin/video_annotate/repository.json index f6e9354d..c950bacd 100644 --- a/backend/operators/builtin/video_annotate/repository.json +++ b/backend/operators/builtin/video_annotate/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "VIDEO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/video_filter/operator.json b/backend/operators/builtin/video_filter/operator.json index 6263c964..7649b538 100644 --- a/backend/operators/builtin/video_filter/operator.json +++ b/backend/operators/builtin/video_filter/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/video_filter/repository.json b/backend/operators/builtin/video_filter/repository.json index 101cdc96..2eb734bd 100644 --- a/backend/operators/builtin/video_filter/repository.json +++ b/backend/operators/builtin/video_filter/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "VIDEO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/video_quality/operator.json b/backend/operators/builtin/video_quality/operator.json index e1f701ab..1b167608 100644 --- a/backend/operators/builtin/video_quality/operator.json +++ b/backend/operators/builtin/video_quality/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/video_quality/repository.json b/backend/operators/builtin/video_quality/repository.json index 65c628c8..2a7977ae 100644 --- a/backend/operators/builtin/video_quality/repository.json +++ b/backend/operators/builtin/video_quality/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "VIDEO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/video_slice/operator.json b/backend/operators/builtin/video_slice/operator.json index 2e95c819..3fb6944f 100644 --- a/backend/operators/builtin/video_slice/operator.json +++ b/backend/operators/builtin/video_slice/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/video_slice/repository.json b/backend/operators/builtin/video_slice/repository.json index 98509693..76e153b9 100644 --- a/backend/operators/builtin/video_slice/repository.json +++ b/backend/operators/builtin/video_slice/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "VIDEO", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/xplatform_dataset_index/operator.json b/backend/operators/builtin/xplatform_dataset_index/operator.json index ef1b5c3a..a75e9123 100644 --- a/backend/operators/builtin/xplatform_dataset_index/operator.json +++ b/backend/operators/builtin/xplatform_dataset_index/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/xplatform_dataset_index/repository.json b/backend/operators/builtin/xplatform_dataset_index/repository.json index a475600c..93b19d99 100644 --- a/backend/operators/builtin/xplatform_dataset_index/repository.json +++ b/backend/operators/builtin/xplatform_dataset_index/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATASET", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/backend/operators/builtin/xplatform_dataset_validate/operator.json b/backend/operators/builtin/xplatform_dataset_validate/operator.json index 61890a5d..bbd65a4e 100644 --- a/backend/operators/builtin/xplatform_dataset_validate/operator.json +++ b/backend/operators/builtin/xplatform_dataset_validate/operator.json @@ -11,6 +11,6 @@ "mockOnlyAccepted": false, "simulationOnlyAccepted": false, "hardcodedOutputAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false } } diff --git a/backend/operators/builtin/xplatform_dataset_validate/repository.json b/backend/operators/builtin/xplatform_dataset_validate/repository.json index 297c752d..ba42d07d 100644 --- a/backend/operators/builtin/xplatform_dataset_validate/repository.json +++ b/backend/operators/builtin/xplatform_dataset_validate/repository.json @@ -5,8 +5,8 @@ "pocFullAcceptanceScript": "scripts/poc-operator-full-acceptance.sh", "requiresPersistentWorkspaceEvidence": true, "requiresRealInputs": true, - "simulationOnlyAccepted": false, - "smokeOnlyAccepted": false + "shallowOnlyAccepted": false, + "simulationOnlyAccepted": false }, "category": "DATASET", "containerEntrypoint": "backend/operator-runner/main.py", diff --git a/docs/deployment.md b/docs/deployment.md index b0abab4a..51965a49 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -231,12 +231,12 @@ http://:30080 - `DROBOTICFLOW_TRUSTED_PROXY_CIDRS` controls which reverse proxies may supply `X-Forwarded-For` / `X-Real-IP` for rate limiting. Leave it empty unless ingress or load balancer source ranges are known. - Session-authenticated unsafe requests, including logout, require `X-Droboticflow-CSRF-Token` to match the readable `droboticflow_csrf` cookie. The bundled frontend sets this header automatically. - `IMAGE_TAG` defaults to the current git short SHA in build, deploy, and render scripts only when explicit registry coordinates are configured. Set it explicitly for release names or rollback-friendly tags. -- `scripts/live-workflow-acceptance.sh` requires `WORKFLOW_ACCEPTANCE_SOURCE_PATH`, a real path visible to operator-runner Jobs. The `真实数据源` runner infers filesystem/PVC paths as `LOCAL` and `bos://bucket/prefix` paths as `BOS`; if no real source is configured, the source node fails instead of emitting an empty manifest. Set `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT=true` for deployed-environment workflow acceptance so missing `BASE_URL` / `API_BASE_URL` fails instead of falling back to localhost. The script can exercise session-authenticated deployments when `DROBOTICFLOW_ACCEPTANCE_EMAIL` and `DROBOTICFLOW_ACCEPTANCE_PASSWORD` are set; it logs in, persists cookies, and sends the CSRF header on write requests. Legacy `scripts/smoke-test.sh`, `SMOKE_SOURCE_PATH`, `SMOKE_REQUIRE_EXPLICIT_ENDPOINT`, and `DROBOTICFLOW_SMOKE_*` still forward to the live workflow acceptance path. +- `scripts/live-workflow-acceptance.sh` requires `WORKFLOW_ACCEPTANCE_SOURCE_PATH`, a real path visible to operator-runner Jobs. The `真实数据源` runner infers filesystem/PVC paths as `LOCAL` and `bos://bucket/prefix` paths as `BOS`; if no real source is configured, the source node fails instead of emitting an empty manifest. Set `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT=true` for deployed-environment workflow acceptance so missing `BASE_URL` / `API_BASE_URL` fails instead of falling back to localhost. The script can exercise session-authenticated deployments when `DROBOTICFLOW_ACCEPTANCE_EMAIL` and `DROBOTICFLOW_ACCEPTANCE_PASSWORD` are set; it logs in, persists cookies, and sends the CSRF header on write requests. - `scripts/reconcile-system-data.sh` delegates to `scripts/reconcile_system_data.py` and uses the same protected-client behavior. Set `DROBOTICFLOW_API_TOKEN` for token-protected APIs when session auth is not enforced. For public session-auth deployments, set `DROBOTICFLOW_ACCEPTANCE_EMAIL` and `DROBOTICFLOW_ACCEPTANCE_PASSWORD` to an organization admin account because the reconcile flow updates settings, users, templates, and operators. Builtin operators are read from the live `/api/operators` catalog and refreshed to `OPERATOR_RUNNER_IMAGE`; the script does not carry a separate builtin catalog. - `scripts/object-storage-acceptance.mjs` runs browser create, preview, rename, upload, delete, and optional video playback checks against a live storage connection. It never rewrites storage connection metadata; provide `OBJECT_STORAGE_CONNECTION_ID`, `OBJECT_STORAGE_CONNECTION_NAME`, or `OBJECT_STORAGE_BUCKET` explicitly. `OBJECT_STORAGE_ACCEPTANCE_PAYLOAD_FILE` is required and must point to a non-empty real UTF-8 text or JSON payload used for create/upload/preview checks; set `OBJECT_STORAGE_ACCEPTANCE_CONTENT_TYPE` when auto-detection is not enough. Set `OBJECT_STORAGE_VIDEO_KEY` only when an existing playable object should be validated. `PLAYWRIGHT_IGNORE_HTTPS_ERRORS` must be an explicit boolean spelling when set. The script supports `DROBOTICFLOW_API_TOKEN` for token-protected non-session APIs and `DROBOTICFLOW_ACCEPTANCE_EMAIL` / `DROBOTICFLOW_ACCEPTANCE_PASSWORD` for session-authenticated browser access; session-auth object-storage management checks require an organization admin account. - `scripts/playwright-preview-operators-check.mjs` runs browser/operator preview acceptance with caller-supplied payloads and real source paths. Provide `PREVIEW_CHECK_CSV_PAYLOAD_FILE`, `PREVIEW_CHECK_TEXT_PAYLOAD_FILE`, `PREVIEW_CHECK_JSON_PAYLOAD_FILE`, `PREVIEW_CHECK_JSON_EXTRACT_FIELD`, `PREVIEW_CHECK_JSON_FILTER_FIELD`, `PREVIEW_CHECK_JSON_FIELD_MAP_JSON`, `PREVIEW_CHECK_SCAN_SOURCE_PATH`, `PREVIEW_CHECK_ROSBAG_SOURCE_PATH`, and `PREVIEW_CHECK_LEROBOT_SOURCE_PATH`. The script no longer generates built-in CSV/text/JSON/ROSBag/LeRobot data. Optional `PREVIEW_CHECK_SCAN_MIN_FILES` must be an exact safe positive integer. - `scripts/xplatform-live-acceptance.py` runs the X-platform chain only when the caller provides the real source path plus explicit acceptance criteria. Provide `XPLATFORM_RULES_JSON`, all `XPLATFORM_MIN_*` counts, finite normalized `XPLATFORM_MIN_CLARITY`, `XPLATFORM_MAX_SHAKE`, and `XPLATFORM_MAX_HAND_OCCLUSION`, finite positive `XPLATFORM_CLARITY_SCALE` and `XPLATFORM_FRAME_INTERVAL_SECONDS`, and exact safe positive integer values for `XPLATFORM_SEGMENT_DURATION_SECONDS` and every `XPLATFORM_MIN_*` count; the script has no built-in sampling rule or threshold fallback. -- `npm run acceptance:gpu` creates a temporary GPU Job in the target namespace and runs `nvidia-smi`. Override `GPU_ACCEPTANCE_IMAGE`, `GPU_ACCEPTANCE_TIMEOUT`, `GPU_RESOURCE_NAME`, `GPU_RESOURCE_COUNT`, and the `OPERATOR_GPU_*` scheduling variables when the cluster uses custom GPU images, wait windows, or labels. The script validates namespace, image, timeout, Job name, resource name/count, node selector, tolerations JSON, and runtime class before any `kubectl` call so malformed GPU acceptance inputs fail locally instead of mutating the cluster with a bad manifest. Dynamic manifest strings are rendered as quoted YAML scalars. Legacy `GPU_SMOKE_IMAGE`, `GPU_SMOKE_TIMEOUT`, `GPU_SMOKE_NAME`, and `npm run gpu:smoke` remain compatibility aliases. +- `npm run acceptance:gpu` creates a temporary GPU Job in the target namespace and runs `nvidia-smi`. Override `GPU_ACCEPTANCE_IMAGE`, `GPU_ACCEPTANCE_TIMEOUT`, `GPU_RESOURCE_NAME`, `GPU_RESOURCE_COUNT`, and the `OPERATOR_GPU_*` scheduling variables when the cluster uses custom GPU images, wait windows, or labels. The script validates namespace, image, timeout, Job name, resource name/count, node selector, tolerations JSON, and runtime class before any `kubectl` call so malformed GPU acceptance inputs fail locally instead of mutating the cluster with a bad manifest. Dynamic manifest strings are rendered as quoted YAML scalars. - Deployed-environment checks run from a local shell or external CI by invoking the acceptance scripts directly. Configure `WORKFLOW_ACCEPTANCE_SOURCE_PATH` for live workflow acceptance, a kubeconfig for GPU acceptance, and optionally `DROBOTICFLOW_API_TOKEN`, `DROBOTICFLOW_ACCEPTANCE_EMAIL`, `DROBOTICFLOW_ACCEPTANCE_PASSWORD`, `OBJECT_STORAGE_CONNECTION_ID`, `OBJECT_STORAGE_CONNECTION_NAME`, `OBJECT_STORAGE_BUCKET`, `OBJECT_STORAGE_ACCEPTANCE_PAYLOAD_FILE`, `OBJECT_STORAGE_ACCEPTANCE_CONTENT_TYPE`, `OBJECT_STORAGE_VIDEO_KEY`, `PREVIEW_CHECK_CSV_PAYLOAD_FILE`, `PREVIEW_CHECK_TEXT_PAYLOAD_FILE`, `PREVIEW_CHECK_JSON_PAYLOAD_FILE`, the preview JSON field settings, the preview scan/ROSBag/LeRobot source paths, and the X-platform source path plus explicit rules/threshold/count inputs for authenticated acceptance tests. - If you use DashScope-compatible models, prefer a backend-allowed API key. Do not deploy tool-only Coding Plan keys into the cluster. - Production hardening still depends on the target cluster policy: TLS ingress, network policies, backup strategy, and secret rotation. diff --git a/docs/operations.md b/docs/operations.md index 09a76345..7ec29d6c 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -118,7 +118,7 @@ WORKFLOW_ACCEPTANCE_SOURCE_PATH= \ `WORKFLOW_ACCEPTANCE_SOURCE_PATH` may be a filesystem/PVC path or a `bos://bucket/prefix` path. The `真实数据源` runner infers `LOCAL` or `BOS` from the path and rejects a run that has no `SOURCE_TEXT`, `SOURCE_JSON`, `SOURCE_PATH`, configured BOS source, local `STORAGE_PREFIX`, or upstream artifact input. This prevents an unconfigured source node from completing with an empty manifest. -For deployed workflow acceptance, pass the deployed URL or set `BASE_URL` / `API_BASE_URL`, and set `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT=true` so localhost defaults are disabled. Legacy `SMOKE_SOURCE_PATH`, `SMOKE_REQUIRE_EXPLICIT_ENDPOINT`, and `./scripts/smoke-test.sh` still forward to the live workflow acceptance script. +For deployed workflow acceptance, pass the deployed URL or set `BASE_URL` / `API_BASE_URL`, and set `WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT=true` so localhost defaults are disabled. Run the production-style WJZH real-data regression: diff --git a/docs/operators/D-Cloud-具身数据生成-API.md b/docs/operators/D-Cloud-具身数据生成-API.md index 8bebac78..20d79d6b 100644 --- a/docs/operators/D-Cloud-具身数据生成-API.md +++ b/docs/operators/D-Cloud-具身数据生成-API.md @@ -33,4 +33,4 @@ ## 验收要求 -该算子必须发起真实 HTTP 请求并保存真实响应。`data_generation` 源码要求 `/generationApi` 业务路由携带 `d-user-id` header,FAT 网关通过 JWT claim 注入 `d-user-id`,也支持显式 header。测试使用本地 HTTP 服务验收请求方法、路径、登录换 token、查询参数、D-Cloud 上下文头、响应 artifact 和预览 ID/URL 提取,不接受 mock-only、仿真-only、硬编码输出或 smoke-only 验收。 +该算子必须发起真实 HTTP 请求并保存真实响应。`data_generation` 源码要求 `/generationApi` 业务路由携带 `d-user-id` header,FAT 网关通过 JWT claim 注入 `d-user-id`,也支持显式 header。测试使用本地 HTTP 服务验收请求方法、路径、登录换 token、查询参数、D-Cloud 上下文头、响应 artifact 和预览 ID/URL 提取,不接受 mock-only、仿真-only、硬编码输出或 shallow-only 验收。 diff --git a/docs/operators/D-Cloud-具身标注-API.md b/docs/operators/D-Cloud-具身标注-API.md index d87b3202..070b2472 100644 --- a/docs/operators/D-Cloud-具身标注-API.md +++ b/docs/operators/D-Cloud-具身标注-API.md @@ -33,4 +33,4 @@ ## 验收要求 -该算子必须发起真实 HTTP 请求并保存真实响应。`robo_annotation_backend` 源码要求业务接口携带 `d-user-id`、`org-symbol` 和 `sourceapp` header,FAT 网关通过 JWT claim 注入 `d-user-id`,也支持显式 header。测试使用本地 HTTP 服务验收请求方法、路径、登录换 token、认证头、D-Cloud 上下文头、响应 artifact 和预览 URL 提取,不接受 mock-only、仿真-only、硬编码输出或 smoke-only 验收。 +该算子必须发起真实 HTTP 请求并保存真实响应。`robo_annotation_backend` 源码要求业务接口携带 `d-user-id`、`org-symbol` 和 `sourceapp` header,FAT 网关通过 JWT claim 注入 `d-user-id`,也支持显式 header。测试使用本地 HTTP 服务验收请求方法、路径、登录换 token、认证头、D-Cloud 上下文头、响应 artifact 和预览 URL 提取,不接受 mock-only、仿真-only、硬编码输出或 shallow-only 验收。 diff --git a/docs/plans/2026-04-22-scheduled-run-history-and-subtree-rerun-implementation.md b/docs/plans/2026-04-22-scheduled-run-history-and-subtree-rerun-implementation.md index 5c51895d..1f968e81 100644 --- a/docs/plans/2026-04-22-scheduled-run-history-and-subtree-rerun-implementation.md +++ b/docs/plans/2026-04-22-scheduled-run-history-and-subtree-rerun-implementation.md @@ -65,4 +65,4 @@ - `node --test tests/frontend/workflow-system-env.test.mjs` - `npm run build` - deploy to `wjzh` -- smoke: `/api/health`, `/api/operators` +- acceptance: `/api/health`, `/api/operators` diff --git a/docs/plans/2026-04-25-account-organization-system-implementation.md b/docs/plans/2026-04-25-account-organization-system-implementation.md index cdd89d03..e93b128f 100644 --- a/docs/plans/2026-04-25-account-organization-system-implementation.md +++ b/docs/plans/2026-04-25-account-organization-system-implementation.md @@ -278,7 +278,7 @@ npm run build Expected: PASS. -**Step 3: Manual smoke test** +**Step 3: Manual acceptance test** Use the app in browser: diff --git a/docs/wjzh-operator-regression.md b/docs/wjzh-operator-regression.md index 9c708fbe..caebcb28 100644 --- a/docs/wjzh-operator-regression.md +++ b/docs/wjzh-operator-regression.md @@ -324,7 +324,7 @@ python3 scripts/wjzh_operator_multi_project_regression.py --preflight-only ## 鉴权配置 - `DROBOTICFLOW_API_TOKEN`:用于未强制 session auth 的 token-protected API。 -- `DROBOTICFLOW_ACCEPTANCE_EMAIL` / `DROBOTICFLOW_ACCEPTANCE_PASSWORD`:用于公开 session-auth 环境。脚本会登录、保存 cookie,并在写请求中发送 CSRF header。旧的 `DROBOTICFLOW_SMOKE_EMAIL` / `DROBOTICFLOW_SMOKE_PASSWORD` 仍作为兼容别名可用。 +- `DROBOTICFLOW_ACCEPTANCE_EMAIL` / `DROBOTICFLOW_ACCEPTANCE_PASSWORD`:用于公开 session-auth 环境。脚本会登录、保存 cookie,并在写请求中发送 CSRF header。 - 如果 API 同时要求共享 token 和 session 登录,可以同时设置两组变量。 ## 脚本做了什么 diff --git a/package.json b/package.json index 237ef811..2f9297fd 100644 --- a/package.json +++ b/package.json @@ -41,8 +41,6 @@ "k8s:deploy": "./scripts/deploy-k8s.sh", "k8s:cleanup-jobs": "./scripts/cleanup-operator-jobs.sh", "acceptance:gpu": "./scripts/gpu-acceptance-test.sh", - "gpu:smoke": "./scripts/gpu-smoke-test.sh", - "smoke": "./scripts/smoke-test.sh", "acceptance:workflow": "./scripts/live-workflow-acceptance.sh", "reconcile:data": "./scripts/reconcile-system-data.sh", "acceptance:operators-preview": "node scripts/playwright-preview-operators-check.mjs", diff --git a/scripts/gpu-acceptance-test.sh b/scripts/gpu-acceptance-test.sh index e4b56ee2..ad9d9ce7 100755 --- a/scripts/gpu-acceptance-test.sh +++ b/scripts/gpu-acceptance-test.sh @@ -2,9 +2,9 @@ set -euo pipefail K8S_NAMESPACE="${K8S_NAMESPACE:-droboticflow}" -GPU_ACCEPTANCE_IMAGE="${GPU_ACCEPTANCE_IMAGE:-${GPU_SMOKE_IMAGE:-nvidia/cuda:12.4.1-base-ubuntu22.04}}" -GPU_ACCEPTANCE_TIMEOUT="${GPU_ACCEPTANCE_TIMEOUT:-${GPU_SMOKE_TIMEOUT:-300s}}" -GPU_ACCEPTANCE_NAME="${GPU_ACCEPTANCE_NAME:-${GPU_SMOKE_NAME:-droboticflow-gpu-acceptance-$(date +%s)}}" +GPU_ACCEPTANCE_IMAGE="${GPU_ACCEPTANCE_IMAGE:-nvidia/cuda:12.4.1-base-ubuntu22.04}" +GPU_ACCEPTANCE_TIMEOUT="${GPU_ACCEPTANCE_TIMEOUT:-300s}" +GPU_ACCEPTANCE_NAME="${GPU_ACCEPTANCE_NAME:-droboticflow-gpu-acceptance-$(date +%s)}" GPU_RESOURCE_NAME="${GPU_RESOURCE_NAME:-nvidia.com/gpu}" GPU_RESOURCE_COUNT="${GPU_RESOURCE_COUNT:-1}" OPERATOR_GPU_NODE_SELECTOR="${OPERATOR_GPU_NODE_SELECTOR:-}" diff --git a/scripts/gpu-smoke-test.sh b/scripts/gpu-smoke-test.sh deleted file mode 100755 index 053cf3b2..00000000 --- a/scripts/gpu-smoke-test.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - -if [[ -n "${GPU_SMOKE_IMAGE:-}" && -z "${GPU_ACCEPTANCE_IMAGE:-}" ]]; then - export GPU_ACCEPTANCE_IMAGE="$GPU_SMOKE_IMAGE" -fi -if [[ -n "${GPU_SMOKE_TIMEOUT:-}" && -z "${GPU_ACCEPTANCE_TIMEOUT:-}" ]]; then - export GPU_ACCEPTANCE_TIMEOUT="$GPU_SMOKE_TIMEOUT" -fi -if [[ -n "${GPU_SMOKE_NAME:-}" && -z "${GPU_ACCEPTANCE_NAME:-}" ]]; then - export GPU_ACCEPTANCE_NAME="$GPU_SMOKE_NAME" -fi - -exec "$SCRIPT_DIR/gpu-acceptance-test.sh" "$@" diff --git a/scripts/live-workflow-acceptance.sh b/scripts/live-workflow-acceptance.sh index 0136d772..e42a0d7e 100755 --- a/scripts/live-workflow-acceptance.sh +++ b/scripts/live-workflow-acceptance.sh @@ -5,24 +5,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1091 source "$SCRIPT_DIR/lib/service-endpoints.sh" -compat_value() { - local primary="$1" - local legacy="$2" - local default_value="${3:-}" - local primary_value="${!primary:-}" - local legacy_value="${!legacy:-}" - if [[ -n "$primary_value" ]]; then - printf '%s' "$primary_value" - return - fi - if [[ -n "$legacy_value" ]]; then - printf '%s' "$legacy_value" - return - fi - printf '%s' "$default_value" -} - -WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT="$(compat_value WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT SMOKE_REQUIRE_EXPLICIT_ENDPOINT false)" +WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT="${WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT:-false}" case "$(printf '%s' "$WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT" | tr '[:upper:]' '[:lower:]')" in 1|true|yes|on) WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT="true" @@ -51,10 +34,10 @@ else WORKER_BASE_URL="$(droboticflow_first_service_url "${WORKER_BASE_URL:-}" "${WORKER_API_BASE_URL:-}" "$(droboticflow_default_worker_base_url)")" fi -WORKFLOW_ACCEPTANCE_SOURCE_PATH="$(compat_value WORKFLOW_ACCEPTANCE_SOURCE_PATH SMOKE_SOURCE_PATH)" -WORKFLOW_ACCEPTANCE_RUN_TIMEOUT_SECONDS="$(compat_value WORKFLOW_ACCEPTANCE_RUN_TIMEOUT_SECONDS SMOKE_RUN_TIMEOUT_SECONDS 180)" -WORKFLOW_ACCEPTANCE_EMAIL="$(compat_value DROBOTICFLOW_ACCEPTANCE_EMAIL DROBOTICFLOW_SMOKE_EMAIL)" -WORKFLOW_ACCEPTANCE_PASSWORD="$(compat_value DROBOTICFLOW_ACCEPTANCE_PASSWORD DROBOTICFLOW_SMOKE_PASSWORD)" +WORKFLOW_ACCEPTANCE_SOURCE_PATH="${WORKFLOW_ACCEPTANCE_SOURCE_PATH:-}" +WORKFLOW_ACCEPTANCE_RUN_TIMEOUT_SECONDS="${WORKFLOW_ACCEPTANCE_RUN_TIMEOUT_SECONDS:-180}" +WORKFLOW_ACCEPTANCE_EMAIL="${DROBOTICFLOW_ACCEPTANCE_EMAIL:-}" +WORKFLOW_ACCEPTANCE_PASSWORD="${DROBOTICFLOW_ACCEPTANCE_PASSWORD:-}" if [[ -z "$WORKFLOW_ACCEPTANCE_SOURCE_PATH" ]]; then echo "ERROR: WORKFLOW_ACCEPTANCE_SOURCE_PATH is required for live workflow acceptance; provide a real path visible to operator-runner Jobs." >&2 diff --git a/scripts/object-storage-acceptance.mjs b/scripts/object-storage-acceptance.mjs index 27e90095..6f547ef4 100644 --- a/scripts/object-storage-acceptance.mjs +++ b/scripts/object-storage-acceptance.mjs @@ -15,8 +15,8 @@ import { apiBaseURLFromEnv } from "./lib/service-endpoints.mjs"; const MAX_EDITOR_PAYLOAD_BYTES = 4 * 1024 * 1024; const BASE_URL = apiBaseURLFromEnv({ env: process.env, cliIndex: null }); const API_TOKEN = (process.env.DROBOTICFLOW_API_TOKEN || "").trim(); -const ACCEPTANCE_EMAIL = (process.env.DROBOTICFLOW_ACCEPTANCE_EMAIL || process.env.DROBOTICFLOW_SMOKE_EMAIL || "").trim(); -const ACCEPTANCE_PASSWORD = process.env.DROBOTICFLOW_ACCEPTANCE_PASSWORD || process.env.DROBOTICFLOW_SMOKE_PASSWORD || ""; +const ACCEPTANCE_EMAIL = (process.env.DROBOTICFLOW_ACCEPTANCE_EMAIL || "").trim(); +const ACCEPTANCE_PASSWORD = process.env.DROBOTICFLOW_ACCEPTANCE_PASSWORD || ""; const CONNECTION_ID = (process.env.OBJECT_STORAGE_CONNECTION_ID || "").trim(); const CONNECTION_NAME = (process.env.OBJECT_STORAGE_CONNECTION_NAME || "").trim(); const CONFIGURED_BUCKET = (process.env.OBJECT_STORAGE_BUCKET || "").trim(); diff --git a/scripts/poc_operator_full_acceptance_job.py b/scripts/poc_operator_full_acceptance_job.py index e1b7ea3c..968b0ecc 100755 --- a/scripts/poc_operator_full_acceptance_job.py +++ b/scripts/poc_operator_full_acceptance_job.py @@ -387,7 +387,7 @@ def validate_static_operator_layout(base_dir: pathlib.Path) -> dict[str, Any]: acceptance = repository_manifest.get("acceptance") if isinstance(repository_manifest.get("acceptance"), dict) else {} if not acceptance.get("requiresRealInputs"): repository_manifest_errors.append(f"{slug}: repository.json must require real inputs") - for key in ("mockOnlyAccepted", "simulationOnlyAccepted", "hardcodedOutputAccepted", "smokeOnlyAccepted"): + for key in ("mockOnlyAccepted", "simulationOnlyAccepted", "hardcodedOutputAccepted", "shallowOnlyAccepted"): if acceptance.get(key) is not False: repository_manifest_errors.append(f"{slug}: repository.json acceptance.{key} must be false") if acceptance.get("requiresPersistentWorkspaceEvidence") is not True: diff --git a/scripts/reconcile_system_data.py b/scripts/reconcile_system_data.py index ee88866c..d77aaa39 100644 --- a/scripts/reconcile_system_data.py +++ b/scripts/reconcile_system_data.py @@ -38,7 +38,6 @@ def is_legacy_user(item: JSON) -> bool: def is_legacy_project(item: JSON) -> bool: return item_id(item) in {"1", "2", "3"} or item.get("description") in { - "Created by scripts/smoke-test.sh", "Created by scripts/live-workflow-acceptance.sh", } @@ -191,8 +190,8 @@ def main() -> None: try: login_if_configured( client, - (os.getenv("DROBOTICFLOW_ACCEPTANCE_EMAIL", "") or os.getenv("DROBOTICFLOW_SMOKE_EMAIL", "")).strip(), - os.getenv("DROBOTICFLOW_ACCEPTANCE_PASSWORD", "") or os.getenv("DROBOTICFLOW_SMOKE_PASSWORD", ""), + os.getenv("DROBOTICFLOW_ACCEPTANCE_EMAIL", "").strip(), + os.getenv("DROBOTICFLOW_ACCEPTANCE_PASSWORD", ""), ) reconcile( client, diff --git a/scripts/smoke-test.sh b/scripts/smoke-test.sh deleted file mode 100755 index 5c862baa..00000000 --- a/scripts/smoke-test.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - -if [[ -n "${SMOKE_REQUIRE_EXPLICIT_ENDPOINT:-}" && -z "${WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT:-}" ]]; then - export WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT="$SMOKE_REQUIRE_EXPLICIT_ENDPOINT" -fi -if [[ -n "${SMOKE_RUN_TIMEOUT_SECONDS:-}" && -z "${WORKFLOW_ACCEPTANCE_RUN_TIMEOUT_SECONDS:-}" ]]; then - export WORKFLOW_ACCEPTANCE_RUN_TIMEOUT_SECONDS="$SMOKE_RUN_TIMEOUT_SECONDS" -fi -if [[ -n "${SMOKE_SOURCE_PATH:-}" && -z "${WORKFLOW_ACCEPTANCE_SOURCE_PATH:-}" ]]; then - export WORKFLOW_ACCEPTANCE_SOURCE_PATH="$SMOKE_SOURCE_PATH" -fi -if [[ -n "${DROBOTICFLOW_SMOKE_EMAIL:-}" && -z "${DROBOTICFLOW_ACCEPTANCE_EMAIL:-}" ]]; then - export DROBOTICFLOW_ACCEPTANCE_EMAIL="$DROBOTICFLOW_SMOKE_EMAIL" -fi -if [[ -n "${DROBOTICFLOW_SMOKE_PASSWORD:-}" && -z "${DROBOTICFLOW_ACCEPTANCE_PASSWORD:-}" ]]; then - export DROBOTICFLOW_ACCEPTANCE_PASSWORD="$DROBOTICFLOW_SMOKE_PASSWORD" -fi - -exec "$SCRIPT_DIR/live-workflow-acceptance.sh" "$@" diff --git a/scripts/wjzh_operator_regression.py b/scripts/wjzh_operator_regression.py index a8afaf93..cacf783c 100755 --- a/scripts/wjzh_operator_regression.py +++ b/scripts/wjzh_operator_regression.py @@ -270,15 +270,13 @@ def parse_args() -> Config: parser.add_argument("--api-token", default=env_default("DROBOTICFLOW_API_TOKEN")) parser.add_argument( "--acceptance-email", - "--smoke-email", dest="acceptance_email", - default=env_default("DROBOTICFLOW_ACCEPTANCE_EMAIL", env_default("DROBOTICFLOW_SMOKE_EMAIL")), + default=env_default("DROBOTICFLOW_ACCEPTANCE_EMAIL"), ) parser.add_argument( "--acceptance-password", - "--smoke-password", dest="acceptance_password", - default=os.getenv("DROBOTICFLOW_ACCEPTANCE_PASSWORD", "") or os.getenv("DROBOTICFLOW_SMOKE_PASSWORD", ""), + default=os.getenv("DROBOTICFLOW_ACCEPTANCE_PASSWORD", ""), ) parser.add_argument("--source-path", default=env_default("SOURCE_PATH")) parser.add_argument("--upload-root-prefix", default=env_default("UPLOAD_ROOT_PREFIX")) @@ -299,7 +297,7 @@ def parse_args() -> Config: parser.add_argument("--delete-all-projects", action="store_true") parser.add_argument("--delete-regression-projects", action="store_true") parser.add_argument("--preflight-only", action="store_true") - parser.add_argument("--skip-runtime-acceptance", "--skip-runtime-smoke", dest="skip_runtime_acceptance", action="store_true") + parser.add_argument("--skip-runtime-acceptance", dest="skip_runtime_acceptance", action="store_true") parser.add_argument( "--max-wait-seconds", type=positive_int_arg("MAX_WAIT_SECONDS"), diff --git a/scripts/xplatform-live-acceptance.py b/scripts/xplatform-live-acceptance.py index 33dcb166..719fe5cd 100644 --- a/scripts/xplatform-live-acceptance.py +++ b/scripts/xplatform-live-acceptance.py @@ -109,15 +109,13 @@ def parse_args() -> Config: parser.add_argument("--api-token", default=env_default("DROBOTICFLOW_API_TOKEN")) parser.add_argument( "--acceptance-email", - "--smoke-email", dest="acceptance_email", - default=env_default("DROBOTICFLOW_ACCEPTANCE_EMAIL", env_default("DROBOTICFLOW_SMOKE_EMAIL")), + default=env_default("DROBOTICFLOW_ACCEPTANCE_EMAIL"), ) parser.add_argument( "--acceptance-password", - "--smoke-password", dest="acceptance_password", - default=os.getenv("DROBOTICFLOW_ACCEPTANCE_PASSWORD", "") or os.getenv("DROBOTICFLOW_SMOKE_PASSWORD", ""), + default=os.getenv("DROBOTICFLOW_ACCEPTANCE_PASSWORD", ""), ) parser.add_argument("--source-path", default=env_default("XPLATFORM_SOURCE_PATH", env_default("SOURCE_PATH"))) parser.add_argument("--storage-connection-id", default=env_default("XPLATFORM_STORAGE_CONNECTION_ID", env_default("STORAGE_CONNECTION_ID"))) diff --git a/tests/backend/gpu_acceptance_script_test.py b/tests/backend/gpu_acceptance_script_test.py index ab31323c..578f17b1 100644 --- a/tests/backend/gpu_acceptance_script_test.py +++ b/tests/backend/gpu_acceptance_script_test.py @@ -5,7 +5,6 @@ import subprocess ROOT = pathlib.Path(__file__).resolve().parents[2] SCRIPT = ROOT / "scripts" / "gpu-acceptance-test.sh" -COMPAT_SCRIPT = ROOT / "scripts" / "gpu-smoke-test.sh" def write_kubectl_stub(tmp_path: pathlib.Path, capture_manifest: pathlib.Path | None = None) -> pathlib.Path: @@ -54,7 +53,6 @@ def run_gpu_acceptance( tmp_path: pathlib.Path, extra_env: dict[str, str], capture_manifest: pathlib.Path | None = None, - script: pathlib.Path = SCRIPT, ) -> subprocess.CompletedProcess: stub_bin = write_kubectl_stub(tmp_path, capture_manifest=capture_manifest) env = os.environ.copy() @@ -135,18 +133,3 @@ def test_gpu_acceptance_renders_valid_scheduling_manifest(tmp_path): assert 'operator: "Exists"' in rendered assert 'effect: "NoSchedule"' in rendered assert 'runtimeClassName: "nvidia"' in rendered - - -def test_legacy_gpu_smoke_wrapper_forwards_to_acceptance_script(tmp_path): - manifest = tmp_path / "legacy-gpu-acceptance.yaml" - result = run_gpu_acceptance( - tmp_path, - {"GPU_ACCEPTANCE_NAME": "", "GPU_SMOKE_NAME": "droboticflow-gpu-legacy-test"}, - capture_manifest=manifest, - script=COMPAT_SCRIPT, - ) - - assert result.returncode == 0, result.stderr + result.stdout - assert "droboticflow-gpu-acceptance-ok" in result.stdout - rendered = manifest.read_text(encoding="utf-8") - assert 'name: "droboticflow-gpu-legacy-test"' in rendered diff --git a/tests/backend/live_workflow_acceptance_script_test.py b/tests/backend/live_workflow_acceptance_script_test.py index f8cf163f..dfe9fa02 100644 --- a/tests/backend/live_workflow_acceptance_script_test.py +++ b/tests/backend/live_workflow_acceptance_script_test.py @@ -5,10 +5,9 @@ import subprocess ROOT = pathlib.Path(__file__).resolve().parents[2] SCRIPT = ROOT / "scripts" / "live-workflow-acceptance.sh" -COMPAT_SCRIPT = ROOT / "scripts" / "smoke-test.sh" -def run_acceptance(extra_env: dict[str, str], script: pathlib.Path = SCRIPT) -> subprocess.CompletedProcess: +def run_acceptance(extra_env: dict[str, str]) -> subprocess.CompletedProcess: env = os.environ.copy() for key in ( "API_BASE_URL", @@ -16,16 +15,13 @@ def run_acceptance(extra_env: dict[str, str], script: pathlib.Path = SCRIPT) -> "WORKFLOW_ACCEPTANCE_REQUIRE_EXPLICIT_ENDPOINT", "WORKFLOW_ACCEPTANCE_RUN_TIMEOUT_SECONDS", "WORKFLOW_ACCEPTANCE_SOURCE_PATH", - "SMOKE_REQUIRE_EXPLICIT_ENDPOINT", - "SMOKE_RUN_TIMEOUT_SECONDS", - "SMOKE_SOURCE_PATH", "WORKER_API_BASE_URL", "WORKER_BASE_URL", "DROBOTICFLOW_API_TOKEN", ): env.pop(key, None) env.update(extra_env) - return subprocess.run(["bash", str(script)], cwd=ROOT, env=env, text=True, capture_output=True, check=False) + return subprocess.run(["bash", str(SCRIPT)], cwd=ROOT, env=env, text=True, capture_output=True, check=False) def test_acceptance_requires_explicit_endpoint_when_deployed_mode_is_enabled(): @@ -94,48 +90,3 @@ print(json.dumps(payload, separators=(",", ":"))) assert result.returncode == 0, result.stderr assert "run status: completed" in result.stdout - - -def test_legacy_smoke_wrapper_forwards_to_live_acceptance(tmp_path): - fake_curl = tmp_path / "curl" - fake_curl.write_text( - """#!/usr/bin/env python3 -import json -import sys - -url = next((arg for arg in sys.argv[1:] if arg.startswith("http://") or arg.startswith("https://")), "") -if url.endswith("/api/health"): - payload = {"status": "ok"} -elif url.endswith("/api/projects"): - payload = {"id": "project-1"} -elif url.endswith("/api/projects/project-1/workflows"): - payload = {"id": "workflow-1"} -elif url.endswith("/api/workflows/workflow-1/run"): - payload = {"id": "run-1"} -elif url.endswith("/api/runs/run-1/logs"): - payload = {"items": [{"message": "ok"}]} -elif url.endswith("/api/runs/run-1/artifacts"): - payload = {"items": [{"name": "source-manifest.json"}]} -elif url.endswith("/api/runs/run-1"): - payload = {"status": "completed"} -else: - raise SystemExit(f"unexpected URL: {url}") -print(json.dumps(payload, separators=(",", ":"))) -""", - encoding="utf-8", - ) - fake_curl.chmod(0o755) - - result = run_acceptance( - { - "API_BASE_URL": "http://poc.example.test", - "PATH": f"{tmp_path}:{os.environ['PATH']}", - "SMOKE_REQUIRE_EXPLICIT_ENDPOINT": "true", - "SMOKE_RUN_TIMEOUT_SECONDS": "1", - "SMOKE_SOURCE_PATH": "/workspace/real-data", - }, - script=COMPAT_SCRIPT, - ) - - assert result.returncode == 0, result.stderr - assert "run status: completed" in result.stdout diff --git a/tests/backend/operator_repository_layout_test.py b/tests/backend/operator_repository_layout_test.py index 816b7355..d13c763c 100644 --- a/tests/backend/operator_repository_layout_test.py +++ b/tests/backend/operator_repository_layout_test.py @@ -85,7 +85,7 @@ class OperatorRepositoryLayoutTest(unittest.TestCase): self.assertFalse(metadata["acceptance"]["mockOnlyAccepted"]) self.assertFalse(metadata["acceptance"]["simulationOnlyAccepted"]) self.assertFalse(metadata["acceptance"]["hardcodedOutputAccepted"]) - self.assertFalse(metadata["acceptance"]["smokeOnlyAccepted"]) + self.assertFalse(metadata["acceptance"]["shallowOnlyAccepted"]) self.assertTrue(matching_dirs[0].name == preferred_slug or metadata["migrationStatus"] == "migrated") self.assertTrue((matching_dirs[0] / "operator.py").exists()) @@ -132,7 +132,7 @@ class OperatorRepositoryLayoutTest(unittest.TestCase): self.assertFalse(manifest["acceptance"]["mockOnlyAccepted"]) self.assertFalse(manifest["acceptance"]["simulationOnlyAccepted"]) self.assertFalse(manifest["acceptance"]["hardcodedOutputAccepted"]) - self.assertFalse(manifest["acceptance"]["smokeOnlyAccepted"]) + self.assertFalse(manifest["acceptance"]["shallowOnlyAccepted"]) self.assertTrue(manifest["acceptance"]["requiresPersistentWorkspaceEvidence"]) if "externalApi" in metadata: self.assertEqual(manifest["externalApi"], metadata["externalApi"]) diff --git a/tests/backend/reconcile_system_data_test.py b/tests/backend/reconcile_system_data_test.py index c747de5b..46d9299e 100644 --- a/tests/backend/reconcile_system_data_test.py +++ b/tests/backend/reconcile_system_data_test.py @@ -67,7 +67,6 @@ class ReconcileSystemDataTest(unittest.TestCase): def test_reconcile_recognizes_live_acceptance_temporary_projects(self): self.assertTrue(reconcile.is_legacy_project({"description": "Created by scripts/live-workflow-acceptance.sh"})) - self.assertTrue(reconcile.is_legacy_project({"description": "Created by scripts/smoke-test.sh"})) self.assertFalse(reconcile.is_legacy_project({"description": "customer project"})) def test_sync_builtin_operators_uses_live_api_catalog(self):