Skip to content

fix(ci): green the 5 stale dev tests (orphaned bridge + post-#257 logger snapshot)#262

Closed
AlexGrayBox wants to merge 1 commit into
devfrom
fix/dev-ci-stale-tests
Closed

fix(ci): green the 5 stale dev tests (orphaned bridge + post-#257 logger snapshot)#262
AlexGrayBox wants to merge 1 commit into
devfrom
fix/dev-ci-stale-tests

Conversation

@AlexGrayBox

Copy link
Copy Markdown
Member

Two independent clusters of tests have been red on dev's Code CI for many commits — both are stale tests left behind by removed features, not real bugs. Diagnosed + verified locally.

Cluster A — orphaned ui_docker_bridge.py (3 tests)

f45510b ("Docker-free UI") renamed ui_docker_bridge.pycli.py and moved cert scripts to ui/utils/. A later merge re-added the orphaned ui_docker_bridge.py — imported by nothing, still pointing at deleted docker/docker/utils/ paths and a build-and-deploy.sh that no longer exists anywhere. The live cli.py + test_cli.py (29 green) fully supersede it.

  • Delete weightslab/ui_docker_bridge.py + tests/backend/test_ui_docker_bridge.py.

Cluster B — save_logger_snapshot removed by #257's DuckDB migration (2 tests + 1 caller)

671270b (#257) replaced the chunked-zstd logger snapshot with DuckDB (loggers.duckdb via flush_logger_to_disk, fully wired in checkpoint_manager). It removed save_logger_snapshot but left its tests + one caller behind.

  • Repoint test_logger_queue_saved_with_weights → assert loggers.duckdb exists + read the live logger (instead of the old loggers.manifest.json/chunks).
  • Delete test_logger_snapshot_rotation.py (tested only the removed chunked-zstd writer).
  • Fix a real latent bug in experiment_service.py: the note-persist path guarded hasattr(cm, "save_logger_snapshot") → always False on dev → note edits were silently not persisted. Swapped to flush_logger_to_disk().

Verification (local)

  • Repointed test passes against DuckDB; test_checkpoint_workflow.py 15/15; test_cli.py 29/29; full suite collects 1075 clean (deletions break no imports).
  • No production logic changed beyond the 3-line experiment_service caller fix; no coverage lost (cli.py/test_cli.py cover the bridge behavior correctly).

Impact

Greens dev's Code CI. Also unblocks #261 (per-cell loss trajectory), which is only red because it inherits these same 5 failures — it'll go green once this lands and #261 rebases.

🤖 Generated with Claude Code

…ger snapshot)

Two independent clusters have been red on dev's Code CI for many commits — both
stale tests left behind by removed features, not real bugs:

A) ui_docker_bridge: f45510b ('Docker-free UI') renamed ui_docker_bridge.py ->
   cli.py and moved cert scripts to ui/utils/, but a later merge re-added the
   orphaned ui_docker_bridge.py (imported by nothing, pointing at deleted
   docker/docker/utils/ paths + a build-and-deploy.sh that no longer exists).
   cli.py + test_cli.py (29 green) supersede it -> delete the dead file + test.

B) logger snapshot: 671270b (#257) replaced the chunked-zstd logger snapshot
   with DuckDB (loggers.duckdb via flush_logger_to_disk), removing
   save_logger_snapshot but leaving its tests + one caller behind:
   - repoint test_logger_queue_saved_with_weights to assert loggers.duckdb
   - delete test_logger_snapshot_rotation (tested only the removed writer)
   - experiment_service: note-persist path guarded hasattr(save_logger_snapshot)
     -> always False -> notes silently not persisted; swap to flush_logger_to_disk

Verified: repointed test passes against DuckDB; test_checkpoint_workflow 15/15;
test_cli 29/29; full suite collects 1075 clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AlexGrayBox

Copy link
Copy Markdown
Member Author

Superseded by #261 — the identical CI-fix commit is cherry-picked there (#261 is self-green). Closing to avoid a duplicate PR; no work lost.

@AlexGrayBox
AlexGrayBox deleted the fix/dev-ci-stale-tests branch July 22, 2026 11:08
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.

1 participant