Add demo cleanup dry-run smoke
This commit is contained in:
@@ -115,6 +115,22 @@ the operator raises it after reviewing dry-run output. Repeat `--export-type` to
|
||||
limit cleanup to specific artifact kinds such as `project_report_html` or
|
||||
`project_metadata_json`.
|
||||
|
||||
Verify the cleanup path against a running backend without deleting anything:
|
||||
|
||||
```bash
|
||||
bash scripts/verify_demo_cleanup_dry_run.sh
|
||||
CLEANUP_MODE=compose bash scripts/verify_demo_cleanup_dry_run.sh
|
||||
CLEANUP_MODE=container CLEANUP_CONTAINER=geointel bash scripts/verify_demo_cleanup_dry_run.sh
|
||||
```
|
||||
|
||||
The smoke runs the cleanup command without `--apply`, expects `dry_run=true`,
|
||||
expects `deleted_export_count=0`, verifies candidate fields are present and
|
||||
prints the matched/type-filtered/selected counts. Use `KEEP_LATEST`,
|
||||
`MAX_DELETE` and `EXPORT_TYPE` environment variables to adjust the dry-run
|
||||
thresholds without changing the script. The main readiness gate checks this
|
||||
script's syntax; run it explicitly against Docker/PostGIS when validating a
|
||||
live deployment.
|
||||
|
||||
## Tower deployment
|
||||
|
||||
Push the local branch to Gitea, then rebuild the Unraid/Tower Docker runtime:
|
||||
|
||||
Reference in New Issue
Block a user