Repository navigation
refactor(inspection): remove task graph plan metadata and link new inspection dialog to task graph debugger - #1054
Merged
Conversation
kyasbal
requested review from
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
September 28, 2026 09:02
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes the legacy task graph execution plan visualization (InspectionPlan) from the inspection metadata dialogs, dry-run responses, and protobuf definitions. Instead, it introduces a link in the new inspection dialog to open the dedicated Task Graph Diagnostics page, pre-configured with the current inspection type and enabled features via URL query parameters. The review feedback correctly points out that using ApiPathUtil.getServerBasePath() to construct a frontend route URL is incorrect and will result in a 404 error, recommending a root-relative path instead, along with cleaning up the now-unused import.
kyasbal
commented
Sep 28, 2026
…spection dialog to task graph debugger TAG=agy
…responses TAG=agy
kyasbal
force-pushed
the
push-qqurzzxpnnzu
branch
from
September 29, 2026 00:37
9040a72 to
7efa467
Compare
Merged
via the queue into
GoogleCloudPlatform:main
with commit Sep 29, 2026
c707ef3
17 checks passed
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.
Background & Problem
KHI previously generated a raw Graphviz DOT string (
TaskSet.DumpGraphviz()) during inspection dry-run and execution, storing it inInspectionPlanMetadata(plan) and transmitting it throughDryRunInspectionResponseandGetInspectionMetadataResponse. In the New Inspection dialog (Step 3) and the Inspection Metadata dialog, this DOT string was rendered as plain text inside a<pre>block.Since the interactive Task Graph Diagnostics page (
/debug/task-graph) was introduced, inspecting raw Graphviz DOT source text in the dialog has become redundant and hard to read for large task graphs. Maintaining two separate task graph representations also added unnecessary serialization and metadata overhead across the backend, protobuf API, and frontend.Solution Approach
Remove Obsolete Task Graph Plan Metadata:
TaskSet.DumpGraphviz(),InspectionPlanMetadata,InspectionPlanMetadataKey, and theMetadataPlanComponentUI panel across backend and frontend.InspectionPlanand theplanfields fromDryRunInspectionResponseandGetInspectionMetadataResponseinproto/api/v1/inspection.proto, renumbering subsequent fields sequentially.Deep-Link New Inspection Dialog to Task Graph Diagnostics:
TaskGraphDebugSmartComponent(/debug/task-graph) to readtab,inspectionType, andfeaturesquery parameters on initialization, automatically selecting the target tab, inspection type, and feature override states before resolving the task graph.taskGraphDebugUrlcomputed signal) that opens/debug/task-graph?tab=DAG_VIEWER&inspectionType=<id>&features=<id1,id2,...>in a new browser tab.Impact & Compatibility
api.v1.InspectionService):DryRunInspectionResponse.planandGetInspectionMetadataResponse.planare removed inproto/api/v1/inspection.protoand generated backend/frontend clients are updated in lockstep..khiFile Format: Unaffected..khifiles do not persistInspectionPlanMetadata.Remaining Issues & Future Work
None.