Skip to content

Fix the flaky end time input form default value issue#360

Merged
kyasbal merged 3 commits into
GoogleCloudPlatform:mainfrom
kyasbal:fix/flaky-time
Nov 13, 2025
Merged

Fix the flaky end time input form default value issue#360
kyasbal merged 3 commits into
GoogleCloudPlatform:mainfrom
kyasbal:fix/flaky-time

Conversation

@kyasbal

@kyasbal kyasbal commented Nov 13, 2025

Copy link
Copy Markdown
Member

The input form field was unintentionally updated for every secounds and it can lose user's selection and affected usability.

@kyasbal kyasbal added the bug Something isn't working label Nov 13, 2025
@kyasbal

kyasbal commented Nov 13, 2025

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request effectively resolves a flakiness issue in the end time input form by introducing a stable inspectionCreationTime. This time is captured once when the InspectionTaskRunner is created and propagated via the context. This is a solid approach to ensure deterministic behavior, especially for tests. The changes are well-implemented across the runner, context keys, task logic, and tests. I have one minor suggestion to improve code documentation in the test utilities.

Comment thread pkg/core/inspection/test/testutil.go Outdated
@kyasbal kyasbal marked this pull request as ready for review November 13, 2025 05:41
@kyasbal kyasbal merged commit a965001 into GoogleCloudPlatform:main Nov 13, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants