Repository navigation
fix(upload): propagate pending field and wait for verification on run - #1017
Merged
Merged
Conversation
When uploading log files in oss-kubernetes-from-files inspection: - Propagate FormField.pending in inspection proto, Go API converter, and frontend inspection converter so the Run button remains disabled while file upload or background verification is in progress. - Keep KHIServerFileUploader status as done: false during progress updates, emitting done: true only after CompleteFileUpload resolves, and refresh the parameter store only at upload start and completion. - Add GetCompletedResult to upload.Store and AsyncTaskManager.DoSyncOrGet so FileFormTaskBuilder synchronously waits for background verification when executed in TaskModeRun.
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
September 17, 2026 01:52
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces asynchronous file verification for inspection tasks. It adds a DoSyncOrGet method to the AsyncTaskManager to synchronously wait for background tasks, implements GetCompletedResult in the upload stores, and introduces a pending status field to form fields in both backend and frontend. On the frontend, the file uploader and parameter components are updated to handle this asynchronous flow. However, a critical UI deadlock bug was identified in FileParameterComponent where removing the polling mechanism for verification status will cause the 'Run' button to remain disabled indefinitely once an upload completes.
Merged
via the queue into
GoogleCloudPlatform:main
with commit Sep 17, 2026
866fb40
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.
When uploading log files in oss-kubernetes-from-files inspection: