Repository navigation
chore: remove demo/ directory (backport from #147 to stable/9) - #546
Conversation
|
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-147-to-stable/9
git worktree add --checkout .worktree/backport-147-to-stable/9 backport-147-to-stable/9
cd .worktree/backport-147-to-stable/9
git reset --hard HEAD^
git cherry-pick -x bdcd7c63ceb74d82aca8397fead50cf36b65712b 0606bc126fa03c69e49c08b21646e3a0a291684e 3a2d417789f6b3854022842a5cdc061978b47b2f d6ae7e4189d986b9b35e232260a13f5eb5609234 |
594dcd1 to
9644da2
Compare
|
Could not regenerate the generated code on this backport: the regeneration job stopped before reaching a result. It may still carry the generated files of the source branch. See the run and the "Backporting to stable branches" section of AGENTS.md. |
9644da2 to
20cbf2a
Compare
|
Rebuilt from Why now: code scanning started covering |
There was a problem hiding this comment.
🟡 Changes recommended
The advertised type-checker migration is missing: pyproject.toml and Makefile still use Pyright rather than including the ty dependency, configuration, and command changes.
1 open issue
What changed in this PR
This backport is intended to bring #147’s type-checking changes to stable/9. The reviewed changes remove legacy SDK demos, benchmarking utilities, and their obsolete tooling exclusions.
Changes:
- Remove the week 1 worker examples and week 2 loan application demo.
- Remove v2 benchmark scenarios, results, resources, and backpressure analysis scripts.
- Remove
demofrom the Pyright and Ruff exclusion lists.
| File | Description |
|---|---|
pyproject.toml |
Removes obsolete demo exclusions. |
demo/week_2/test_api.py |
Deletes the demo API smoke script. |
demo/week_2/README.md |
Deletes loan demo documentation. |
demo/week_2/pyproject.toml |
Deletes demo package configuration. |
demo/week_2/main.py |
Deletes the FastAPI demo backend. |
demo/week_2/loan-application-process.bpmn |
Deletes the loan workflow. |
demo/week_2/loan_workers.py |
Deletes loan processing workers. |
demo/week_2/frontend/styles.css |
Deletes demo styling. |
demo/week_2/frontend/SETUP.md |
Deletes frontend setup instructions. |
demo/week_2/frontend/README.md |
Deletes frontend documentation. |
demo/week_2/frontend/QUICKSTART.md |
Deletes deployment troubleshooting guidance. |
demo/week_2/frontend/index.html |
Deletes the loan application page. |
demo/week_2/frontend/app.js |
Deletes frontend API integration. |
demo/week_2/deploy_loan_process.py |
Deletes the loan deployment helper. |
demo/week_2/camunda_demo_week2.egg-info/top_level.txt |
Removes demo package metadata. |
demo/week_2/camunda_demo_week2.egg-info/SOURCES.txt |
Removes the demo source manifest. |
demo/week_2/camunda_demo_week2.egg-info/requires.txt |
Removes demo dependency metadata. |
demo/week_2/camunda_demo_week2.egg-info/PKG-INFO |
Removes demo distribution metadata. |
demo/week_2/camunda_demo_week2.egg-info/dependency_links.txt |
Removes unused packaging metadata. |
demo/week_2/.env |
Deletes local demo configuration. |
demo/week_2/__init__.py |
Removes the demo package marker. |
demo/week_1/subprocess_workload.py |
Deletes subprocess workload simulation. |
demo/week_1/multicore_workload.py |
Deletes multicore workload simulation. |
demo/week_1/io_bound_workload.py |
Deletes asynchronous I/O simulation. |
demo/week_1/demo.py |
Deletes the worker demo runner. |
demo/week_1/cpu_bound_workload.py |
Deletes CPU workload simulation. |
demo/week_1/cancel_processes.py |
Deletes demo cleanup helpers. |
demo/week_1/__init.py__ |
Removes an empty demo file. |
demo/v2/scenarios/safety.json |
Deletes safety benchmark scenarios. |
demo/v2/scenarios/README.md |
Deletes scenario documentation. |
demo/v2/scenarios/quick.json |
Deletes quick benchmark scenarios. |
demo/v2/scenarios/minimal.json |
Deletes smoke benchmark scenarios. |
demo/v2/scenarios/fast.json |
Deletes fast benchmark scenarios. |
demo/v2/scenarios/baseline.json |
Deletes baseline benchmark scenarios. |
demo/v2/scenarios/.gitignore |
Removes scenario tracking notes. |
demo/v2/run_fast_validation.sh |
Deletes benchmark validation orchestration. |
demo/v2/run_benchmark_scenarios.py |
Deletes the benchmark scenario runner. |
demo/v2/results/README.md |
Deletes result documentation. |
demo/v2/results/fast_20251212_161858.json |
Removes recorded fast benchmark results. |
demo/v2/results/baseline_20251212_183413.json |
Removes recorded baseline results. |
demo/v2/resources/job_worker_load_test_process_1.bpmn |
Deletes the benchmark workflow. |
demo/v2/README.md |
Deletes worker benchmark documentation. |
demo/v2/QUICK_START.md |
Deletes benchmark quick-start guidance. |
demo/v2/job_worker_original.py |
Deletes the legacy worker example. |
demo/v2/generate_benchmark_scenarios.py |
Deletes benchmark scenario generation. |
demo/v2/BENCHMARK_GUIDE.md |
Deletes the detailed benchmark guide. |
demo/v2/backpressure/server_probe.py |
Deletes the server recovery probe. |
demo/v2/backpressure/resources/bp-test-process.bpmn |
Deletes the backpressure test workflow. |
demo/v2/backpressure/recompute_jain.py |
Deletes fairness recalculation tooling. |
demo/v2/backpressure/README.md |
Deletes backpressure benchmark guidance. |
demo/v2/backpressure/evaluate.py |
Deletes matrix result evaluation. |
demo/v2/backpressure/compare_throughput.py |
Deletes throughput comparison tooling. |
demo/v2/backpressure/compare_results.py |
Deletes baseline result comparisons. |
demo/v2/backpressure/compare_errors.py |
Deletes error comparison tooling. |
demo/v2/backpressure/compare_50c.py |
Deletes 50-client result comparisons. |
demo/v2/backpressure/analyze_results.py |
Deletes client distribution analysis. |
demo/v2/backpressure/analyze_full_matrix.py |
Deletes full-matrix throughput analysis. |
demo/v2/backpressure/analyze_floor.py |
Deletes minimum-permit behavior analysis. |
demo/v2/backpressure/analyze_completions.py |
Deletes completion-based matrix analysis. |
Review effort: Balanced
The demo/ directory holds scratch material (week_1/week_2 benchmark scripts, v2 backpressure analysis) that is not part of the published SDK. main removed it as part of #147; stable/9 still carried it, and once code scanning started covering stable/9, its demo workers raised high-severity py/clear-text-logging-sensitive-data alerts (#26-#29) for printing simulated credit scores. Also drops the now-redundant 'demo' entries from the pyright and ruff excludes. This backports only the demo removal from #147, not its pyright-to-ty migration. (cherry picked from commit 0606bc1) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
demo/week_2/frontend/app.js was the only JavaScript file on stable/9. CodeQL default setup analyses javascript-typescript repo-wide (main and stable/10 have this config file), so without any JS on this branch its JS analysis fails on every push, and the release security gate would keep waiting for an analysis that never arrives. Carry the same one-line config main and stable/10 have so the analysis has code. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
20cbf2a to
2c9cf67
Compare

Backports only the
demo/removal from #147 tostable/9(#147's commit 0606bc1), not #147's pyright-to-ty migration.stable/9keeps pyright.Why: code scanning started covering
stable/9(camunda/sdk-infra#128), and its scratch demo workers raised highpy/clear-text-logging-sensitive-dataalerts #26–#29 for printing simulated credit scores.demo/isn't part of the published package, andmainalready deleted it.Commits:
git rm -r demo, plus dropping the two"demo"entries from the pyright and ruff excludes. Same file set as onmain.commitlint.config.cjs, identical tomainandstable/10.demo/week_2/frontend/app.jswas the only JavaScript onstable/9, and CodeQL default setup analysesjavascript-typescriptrepo-wide, so without it the JS analysis fails (as on this PR's first run). The security gate would also keep waiting for that category. The file only gives the analysis code to scan; nothing onstable/9runs commitlint.chore:titles, so no release.