Skip to content

refactor(profiler): remove commented-out single-thread AdvancedProfiler#58

Merged
lbedogni merged 1 commit into
mainfrom
fix/sciot-050-remove-profiler-dead-code
Jul 13, 2026
Merged

refactor(profiler): remove commented-out single-thread AdvancedProfiler#58
lbedogni merged 1 commit into
mainfrom
fix/sciot-050-remove-profiler-dead-code

Conversation

@ff225

@ff225 ff225 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes ~160 lines of a fully commented-out single-thread variant of AdvancedProfiler in src/server/core/profiler.py. It's dead code left over from an earlier iteration — the version history is preserved in git, not needed in the source tree.
  • Partial fix for Remove dead code and unused placeholders (profiler.py, get_synthetic_latency) #50: the other item in that issue (get_synthetic_latency() in message_data.py) is intentionally left untouched here — removing it would change the CSV schema and break src/server/evaluations/edit_evaluations.ipynb, which reads the synthetic_latency column. That needs its own scoped follow-up rather than a blind removal.

Test plan

  • Added tests/unit/test_profiler_source.py::test_profiler_has_no_leftover_commented_out_class, verified it fails before the removal and passes after.
  • uv run python -c "from server.core.profiler import AdvancedProfiler" — module still imports cleanly.
  • Fast test suite (/fast-tests) — 177 passed, 1 skipped

~160 lines of a fully commented-out single-thread variant of
AdvancedProfiler were left dead in the file; git history is the right
place for it, not the source tree.

Note: get_synthetic_latency() in message_data.py (the other item in
issue #50) is left untouched here — removing it would change the CSV
schema and break scripts/server/evaluations/edit_evaluations.ipynb,
which reads the synthetic_latency column, so that needs its own
follow-up.

Partially addresses #50
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
fast-tests 37.43% <ø> (+10.61%) ⬆️
http-integration ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/server/core/profiler.py 32.98% <ø> (ø)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lbedogni lbedogni merged commit 7ede3cf into main Jul 13, 2026
4 checks passed
@lbedogni lbedogni deleted the fix/sciot-050-remove-profiler-dead-code branch July 13, 2026 14:28
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.

2 participants