Auto-fix CI failures for PR #803#805
Closed
github-actions[bot] wants to merge 1 commit intofeat/security-auth-overhaulfrom
Closed
Auto-fix CI failures for PR #803#805github-actions[bot] wants to merge 1 commit intofeat/security-auth-overhaulfrom
github-actions[bot] wants to merge 1 commit intofeat/security-auth-overhaulfrom
Conversation
Fixed syntax errors in test files that caused CI format check to fail: - tests/unit/settings/providers/adaptive-thinking-editor.test.tsx - tests/unit/settings/providers/thinking-budget-editor.test.tsx Both files had duplicate test cases placed outside the describe block after it was closed, causing parse errors. CI Run: https://github.com/ding113/claude-code-hub/actions/runs/22132399232 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
CI Auto-Fix
Original PR: #803
Failed CI Run: Non-Main Branch CI/CD
Fixes Applied
tests/unit/settings/providers/adaptive-thinking-editor.test.tsxtests/unit/settings/providers/thinking-budget-editor.test.tsxIssue Description
Both test files had duplicate test cases that were accidentally placed outside the
describeblock after it was closed. This caused parse errors:Expected a statement but instead found '})'The fix removes the duplicate test code that was outside the proper scope.
Not Auto-Fixable
N/A - all issues were safe to fix mechanically.
Verification
bun run formatpassesbunx biome checkpasses on affected filesAuto-generated by Claude AI
Greptile Summary
This PR fixes CI failures by removing duplicate test cases that were accidentally placed outside the
describeblock in two test files, and applying code formatting fixes.});of thedescribeblock in bothadaptive-thinking-editor.test.tsxandthinking-budget-editor.test.tsx, which were causing parse errors (Expected a statement but instead found '})')describeblocks are preservedConfidence Score: 5/5
Important Files Changed
describeblock (causing parse errors), plus formatting cleanup (trailing whitespace, line wrapping, arrow function style).describeblock (causing parse errors), reformatted long lines, and adjusted code style for consistency. No logic changes.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["Original test files<br/>(PR #803)"] --> B["Duplicate test cases placed<br/>outside describe block"] B --> C["CI fails: parse error<br/>'Expected statement, found })'"] C --> D["Auto-fix commit 902b4e37<br/>Remove orphaned test code"] D --> E["Auto-fix commit 208193c6<br/>Format cleanup (whitespace, line wrapping)"] E --> F["CI passes:<br/>bun run format ✓<br/>bunx biome check ✓"]Last reviewed commit: 208193c