Skip to content

Run test items through TestItemRuns.jl - #5

Merged
davidanthoff merged 1 commit into
mainfrom
testitemruns
Aug 22, 2026
Merged

davidanthoff merged 1 commit into
mainfrom
testitemruns

Conversation

@davidanthoff

@davidanthoff davidanthoff commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Part of the TestItemRuns migration. Needs TestItemRuns 1.1.0, which is registered.

DevREPL carried its own copies of nearly everything TestItemRuns now provides. This deletes them: ProcessInfo, the TestrunResult* structs, TestItemEvent/OutputEvent/ProcessLaunchingEvent, RunContext, TestrunRecord, TestItemRunner, _g_runner, _apply_event!, _drain_events!, _build_result_from_context, _finish_record!, _prune_history!, get_active_processes, get_run_history, get_active_runs, cancel_run, terminate_process, get_runner — replaced by TestSession and its event stream.

src/DevREPL.jl alone is −928 lines. What stays is the REPL mode itself: cmd_run/cmd_run_bg/cmd_attach/cmd_status/cmd_results/cmd_pick, the background-run registry and worker budget, progress bar rendering, juliaup channel resolution, lint/format and tab completion. DevREPL keeps owning its own TestSession — it is an app, so it does not use the process-wide default one.

Net −964/+314 lines.

Rebase notes

  • The [sources] block is gone, as its own # TEMP: comment asked — TestItemRuns now resolves from the registry.
  • julia = "1.12" restored (added on main after this branch diverged).
  • TestItemControllers is re-added as a direct dep rather than reached through TestItemRuns.TestItemControllers. DevREPL uses TIC types and its module tree directly (the log filter), and should not depend on another package's internals for that.
  • The --timeout=none|off work from main is replayed against the new API: _parse_timeout in _build_run_kwargs, timeout=nothing by default, updated help text.
  • AutoHashEquals is genuinely unused after this and is dropped.

The diff looks larger than it is: the branch predates several packages/ subtree squashes. The only files that matter are src/DevREPL.jl and test/.

Verification

Pkg.test() green against the registered TestItemRuns 1.1.0: 178/178, including main's --timeout parsing cases in test/test_parser.jl.

Still open, not blocking

DevREPL vendors TIC/JW/Salsa/TestItemDetection as git subtrees under packages/ while TestItemRuns comes from the registry. Resolution is from the registry either way, so the asymmetry is harmless — but whether TestItemRuns should join packages/ is worth deciding separately.

🤖 Generated with Claude Code

Discovery, execution, run history, process management and result types now
come from TestItemRuns; DevREPL keeps the REPL presentation (RunPresentation,
RunRenderer, attach/detach, all `test …` commands). `test kill` empties the
process pool without dropping the session.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@davidanthoff
davidanthoff marked this pull request as ready for review August 22, 2026 18:15
@davidanthoff
davidanthoff merged commit 4d3bfa5 into main Aug 22, 2026
21 of 35 checks passed
@davidanthoff
davidanthoff deleted the testitemruns branch August 22, 2026 19:05
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