Add ASP.NET Core one-shot compilation status mode for AI/automation workflows#2065
Draft
tomasherceg with Copilot wants to merge 5 commits into
Draft
Add ASP.NET Core one-shot compilation status mode for AI/automation workflows#2065tomasherceg with Copilot wants to merge 5 commits into
tomasherceg with Copilot wants to merge 5 commits into
Conversation
Copilot
AI
changed the title
[WIP] Enhance diagnostics compilation page for AI agents
Add ASP.NET Core one-shot compilation status mode for AI/automation workflows
Jul 3, 2026
Member
|
@copilot Add an end-to-end test that when we run the samples.aspnetcore app with the env variable, the desired output is actually written on the stdout. |
Contributor
Author
Implemented in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The diagnostics compilation page is human-centric and awkward for agent workflows that need a single machine-readable result and process termination. This change introduces an ASP.NET Core one-shot mode triggered by
DOTVVM_COMPILATION_STATUS=1that initializes DotVVM, compiles all views, emits compilation status payload, and stops the app.Shared compilation-status response contract
DotvvmCompilationStatusApito centralize status generation used by both HTTP API and one-shot mode.200with no body when all files compile500with JSON array of failed files when compilation failsReuse in existing diagnostics API presenter
CompilationPageApiPresenternow delegates to the shared helper to keep API and one-shot output semantics aligned.ASP.NET Core one-shot execution path
UseDotVVM, whenDOTVVM_COMPILATION_STATUS=1:0for success,1for failure)IHostApplicationLifetimeFocused unit coverage for status mapping
CompileAllresult →(status code, body)mapping.