Skip to content

sqlite_dataset_logger_adapter.py#38

Merged
dphuang2 merged 17 commits intomainfrom
sqlite-dataset-logger-adapter
Aug 8, 2025
Merged

sqlite_dataset_logger_adapter.py#38
dphuang2 merged 17 commits intomainfrom
sqlite-dataset-logger-adapter

Conversation

@dphuang2
Copy link
Copy Markdown
Collaborator

@dphuang2 dphuang2 commented Aug 7, 2025

No description provided.

Dylan Huang added 4 commits August 7, 2025 16:55
- Enhanced the `evaluation_test` function to log the process ID using `default_logger`, improving traceability of evaluation processes during testing.
Base automatically changed from log-rows-before-rollouts to main August 8, 2025 00:20
Dylan Huang added 13 commits August 7, 2025 17:20
…wStore

- Introduced a new EventBus class to facilitate decoupling of components in the evaluation system.
- Integrated event emission for "row_upserted" in SqliteEvaluationRowStore to notify subscribers of new data.
- Updated SqliteDatasetLoggerAdapter to allow initialization with either a database path or a store instance, ensuring flexibility in logging setup.
- Enhanced test cases to validate logging functionality and event handling with multiple evaluation rows.
… event handling

- Updated the serialization of event data to exclude None values when using Pydantic models.
- Modified tests to ensure event data is deserialized correctly into EvaluationRow and to clarify the behavior of event reception in local processes.
…DatasetLoggerAdapter

- Added a constant LOG_EVENT_TYPE for event type consistency.
- Updated event emission in SqliteDatasetLoggerAdapter to use LOG_EVENT_TYPE instead of hardcoded string.
- Enhanced error handling during event emission with logging for failures.
- Added support for "log" message type in WebSocket handling, allowing individual log entries to be processed.
- Updated logging statements to provide clearer context for received logs.
- Introduced LogMessageSchema for runtime validation of log messages.
@dphuang2 dphuang2 merged commit 69ba4ac into main Aug 8, 2025
7 checks passed
@dphuang2 dphuang2 deleted the sqlite-dataset-logger-adapter branch August 8, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant