Fix CotabbyTests build broken by #499 (summarizer test scaffolding)#500
Merged
Conversation
…#499) #499 deleted the VisualContextSummarizing protocol but left ScreenshotContextGeneratorTests' StubSummarizer + summary-path tests referencing it, breaking the test-target build. (A local incremental build-for-testing skipped recompiling the unchanged test file and falsely passed; CI's clean build caught it.) Removes the summarizer stubs and the three summary-specific tests; keeps the OCR cap/sanitize and all-noise-unavailable tests, which the post-OCRTextHygiene normalizeRecognizedText path still satisfies.
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.
#499 deleted
VisualContextSummarizingbutScreenshotContextGeneratorTestsstill referenced it viaStubSummarizer, breaking the test-target compile (Cannot find type 'VisualContextSummarizing'). A local incremental build-for-testing falsely passed by not recompiling the unchanged test file; CI's clean build caught it. This removes the summarizer stubs + the three summary-path tests and keeps the OCR cap/sanitize + all-noise-unavailable tests (still satisfied by thenormalizeRecognizedTextpass afterOCRTextHygiene). Un-breaksmain.Greptile Summary
Removes dead test scaffolding left over after PR #499 deleted
VisualContextSummarizing— specifically theStubSummarizerclass,StubSummarizerError, and three tests that exercised the summarizer code path, all of which would cause a compile error on a clean build.StubSummarizer: VisualContextSummarizingand itsResultenum are deleted;makeGeneratorloses itssummaryResultparameter to match the updatedScreenshotContextGenerator.init.Confidence Score: 5/5
Test-only deletion that removes code referencing a type that no longer exists; no production logic is touched.
The change is purely subtractive in the test target: dead stubs and the tests that relied on them are gone, and the two surviving tests still build against and exercise the current production initializer. Nothing is added that could introduce a regression.
No files require special attention.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[generateContext] --> B[captureScreenshot] B --> C[textExtractor.extractText] C -->|noRecognizedText| D{windowTitle?} D -->|nil| E[throw .unavailable] D -->|exists| F[normalizeRecognizedText] F --> G{hasMeaningfulSignal?} G -->|no| E G -->|yes| H[boundedSummaryText → VisualContextExcerpt] C -->|success| I[OCRTextHygiene.clean] I --> J[normalizeRecognizedText] J --> K[boundedSummaryText] K --> L{hasMeaningfulSignal?} L -->|no| E L -->|yes| M[return VisualContextExcerpt] subgraph Tests["Remaining Tests (PR #500)"] T1[test_ocrTextIsCappedAndSanitized] T2[test_allNoiseOCRReturnsUnavailable] end subgraph Removed["Removed Tests (PR #500)"] R1[test_usesGoodSummaryWhenAvailable] R2[test_emptySummaryFallsBack] R3[test_thrownSummarizerErrorFallsBack] endReviews (1): Last reviewed commit: "Fix CotabbyTests build: drop summarizer ..." | Re-trigger Greptile