Skip to content

chore: remove demo/ directory (backport from #147 to stable/9) - #546

Merged
emilyoram merged 2 commits into
stable/9from
backport-147-to-stable/9
Dec 1, 2026
Merged

emilyoram merged 2 commits into
stable/9from
backport-147-to-stable/9

Conversation

@camunda-sdk-automation

@camunda-sdk-automation camunda-sdk-automation Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Backports only the demo/ removal from #147 to stable/9 (#147's commit 0606bc1), not #147's pyright-to-ty migration. stable/9 keeps pyright.

Why: code scanning started covering stable/9 (camunda/sdk-infra#128), and its scratch demo workers raised high py/clear-text-logging-sensitive-data alerts #26–#29 for printing simulated credit scores. demo/ isn't part of the published package, and main already deleted it.

Commits:

  1. git rm -r demo, plus dropping the two "demo" entries from the pyright and ruff excludes. Same file set as on main.
  2. Adds commitlint.config.cjs, identical to main and stable/10. demo/week_2/frontend/app.js was the only JavaScript on stable/9, and CodeQL default setup analyses javascript-typescript repo-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 on stable/9 runs commitlint.

chore: titles, so no release.

@camunda-sdk-automation

Copy link
Copy Markdown
Contributor Author

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

@camunda-sdk-automation

Copy link
Copy Markdown
Contributor Author

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.

@emilyoram
emilyoram force-pushed the backport-147-to-stable/9 branch from 9644da2 to 20cbf2a Compare December 1, 2026 22:28
@emilyoram
emilyoram marked this pull request as ready for review December 1, 2026 22:28
@emilyoram
emilyoram requested a review from a team as a code owner December 1, 2026 22:28
@emilyoram

Copy link
Copy Markdown
Collaborator

Rebuilt from stable/9 as a single commit: git rm -r demo, plus dropping the two "demo" entries from the ty and ruff excludes. The result matches #147 on main exactly (68 files, 17,160 deletions). The bot's version carried unrelated changes from the conflict. The pre-push lint and type-check pass.

Why now: code scanning started covering stable/9, and its demo workers raised high py/clear-text-logging-sensitive-data alerts #26–#29 (printing simulated credit scores). Those should close on the next scan after merge. Tracked in camunda/sdk-infra#128.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 22:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 demo from 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

Comment thread pyproject.toml Resolved
emilyoram and others added 2 commits December 2, 2026 11:36
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>
@emilyoram
emilyoram force-pushed the backport-147-to-stable/9 branch from 20cbf2a to 2c9cf67 Compare December 1, 2026 22:37
@emilyoram emilyoram changed the title feat(typecheck): migrate from pyright to ty (backport #147 to stable/9) chore: remove demo/ directory (backport from #147 to stable/9) Dec 1, 2026
@emilyoram
emilyoram requested a balanced review from Copilot December 1, 2026 22:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the demo-cleanup backport.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@emilyoram
emilyoram merged commit 3b0f790 into stable/9 Dec 1, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants