Skip to content

Reuse the compiler server for runtime edit feedback - #1321

Merged
Eli Pinkerton (wallstop) merged 1 commit into
mainfrom
task/warm-runtime-iterate
Nov 23, 2026
Merged

Eli Pinkerton (wallstop) merged 1 commit into
mainfrom
task/warm-runtime-iterate

Conversation

@wallstop

Copy link
Copy Markdown
Collaborator

DISCLOSURE: LLM-GENERATED TEXT

Why

The complete runtime edit check repeatedly starts Roslyn to compile the same project. Reusing the repository’s existing compiler server reduced the median from 22.60 s to 12.46 s across seven alternating warm pairs on the same Windows-backed source checkout. All seven pairs improved.

What

  • The iterate planner selects typecheck:iterate -- runtime --server for a runtime build. The existing server identity includes all shipped analyzer payloads, project and variant. The full and PR tiers keep their established gates.
  • Verified the real default command on this head. A malformed runtime edit produced a C# diagnostic and exit 1. A valid edit compiled and returned 0. The direct CLI still supports a fresh compiler for comparison.
  • Two planner checks turned red before the change. All 161 planner and compiler tool checks passed afterward. The frozen plans still verify every other command and selected file.

Refs #1206

The complete iterate tier on a Windows-backed checkout took 22.60 s with a fresh compiler and 12.46 s with the existing analyzer-keyed Roslyn server across seven alternating warm pairs. A malformed source returned a C# error in both arms. Preserve fixture selection, generators, full compiler gates and the standalone cold path.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The runtime typecheck:iterate command now receives --server. The test verifies this option while retaining the frozen-plan comparison, and the contributing guide documents server reuse and a fresh-process comparison command.

Changes: Runtime iterate compiler server

Layer / File(s) Summary
Runtime command and validation
scripts/agent_check.py, scripts/tests/test_agent_check.py, docs/project/contributing.md
The runtime scope command now includes --server. The test checks for the option before comparing the plan with its frozen expected value. The contributing guide describes compiler-server reuse, per-edit compiler and source-generator runs, and the fresh-process comparison command.

Estimated code review effort: 2 (Simple) | ~8 minutes

Merge Risk: Minimal · up to 52755

Runtime edit feedback now reuses the compiler server, which the author reports roughly halves iterate time. The server identity changes when analyzer payloads change, so no known merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title 'Reuse the compiler server for runtime edit feedback' matches the main change: the iterate planner now selects typecheck:iterate -- runtime --server, reusing the existing Roslyn compiler s…
Description check Passed The description follows the repository template. It has a Why section with a one-sentence problem statement (repeated Roslyn startup slows the runtime edit check), a What section with bullets describi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title 'Reuse the compiler server for runtime edit feedback' matches the main change: the iterate planner now selects typecheck:iterate -- runtime --server, reusing the existing Roslyn compiler server for runtime edits. It is specific, concise, and free of noise.

Full details: Description check

Explanation

The description follows the repository template. It has a Why section with a one-sentence problem statement (repeated Roslyn startup slows the runtime edit check), a What section with bullets describing the planner change and verification, and a Refs #1206 line. It includes a disclosure line and benchmark figures not in the template, but these add context rather than omit required content. The template asks for a short description with detail in the linked issue, and this description is longer than that. The 'Why' is a single sentence and the 'What' has three bullets, so the structure is sound.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review details

Context from checks skipped due to timeout: 9

  • GitHub Check: Unity package export smoke
  • GitHub Check: Unity 6000.6.0f1 (selected modes)
  • GitHub Check: CodeRabbit
  • GitHub Check: Windows tools (orchestration)
  • GitHub Check: Type-check (controls)
  • GitHub Check: Type-check (sources)
  • GitHub Check: Contract Suites
  • GitHub Check: Repo Lint
  • GitHub Check: Windows tools (metadata)
Additional context used

Code guidelines: 4

.llm/context.md — auto-discovered
.agents/skills/add-inspector-attribute/SKILL.md — Agent Skill
.agents/skills/honest-gates/SKILL.md — Agent Skill
.claude/skills/test-odin-drawers/SKILL.md — Agent Skill
Path-based instructions: 2

Applicability reference: AGENTS.md: # Repository Guidelines See the [AI Agent Guidelines](./.llm/context.md) for all AI agent guidelines.

CodeRabbit inference engine (.llm/context.md)

Files:

  • docs/project/contributing.md
Source excerpt:

@github-actions github-actions Bot 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.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No defects found.

5999 in, 874 out tokens. Comments only; this review never blocks a merge.

@wallstop
Eli Pinkerton (wallstop) merged commit 9bc77b9 into main Nov 23, 2026
30 checks passed
@wallstop
Eli Pinkerton (wallstop) deleted the task/warm-runtime-iterate branch November 23, 2026 07:11
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