-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SQLite log handling issue causing ValueError: Logs cannot be None in tests #1899
Conversation
… in tests - Add proper error handling in SQLite storage operations - Set up isolated test environment with temporary storage directory - Ensure consistent error messages across all database operations Co-Authored-By: Joe Moura <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment for PR #1899OverviewThis PR addresses SQLite log handling issues and improves error handling across database operations. The changes have been made in Detailed Feedback
|
Co-Authored-By: Joe Moura <[email protected]>
…ack tracking Co-Authored-By: Joe Moura <[email protected]>
…dling - Add proper logging setup in kickoff_task_outputs_storage.py - Replace self._printer.print() with logger calls - Use appropriate log levels (error/warning) - Add directory validation in test environment setup - Maintain consistent error messages with DatabaseError format Co-Authored-By: Joe Moura <[email protected]>
- Fix SQLite database path handling in storage classes - Add proper directory creation and error handling - Improve token tracking with robust type checking - Convert TokenProcess counters to instance variables - Add standardized database error handling - Set up isolated test environment with temporary storage Resolves test failures in PR #1899 Co-Authored-By: Joe Moura <[email protected]>
Description
Fixed the SQLite log handling issue that was causing 'ValueError: Logs cannot be None' in tests by:
Testing
Link to Devin run: https://app.devin.ai/sessions/6a3c30ed82cf402bbb26ce7e7687e6b5