Conversation
Summary of ChangesHello @JinqingKuang, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on resolving several CI-related issues within the stream processing module. It introduces critical fixes for how stream version timestamps are managed and communicated, especially in scenarios where WAL logs are unavailable or when no data is returned. The changes also refine the complex logic governing sliding window stream triggers and the processing of historical data. Complementing these core fixes, the PR includes substantial updates to the test suite, adding new verification scenarios and improving existing test utilities to ensure the robustness and correctness of stream functionalities. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces several fixes for stream processing, primarily to resolve CI test case failures. The main changes include adding a verTime field to track version timestamps in RPC responses, correcting logic for sliding window calculations, and updating boundary checks in history processing. The changes are logical and address specific bugs. I have a couple of suggestions to improve code readability and maintainability by replacing pointer arithmetic with array-style indexing and addressing code duplication.
There was a problem hiding this comment.
Pull request overview
This pull request fixes multiple CI test case issues related to stream processing functionality. The changes address timing synchronization bugs, add comprehensive test coverage for stream6 scenarios, and fix critical logic errors in stream trigger task handling.
Changes:
- Fixed timestamp unit handling from nanoseconds to microseconds for stream delay calculation
- Added verTime (microsecond timestamp) tracking in stream WAL responses for better synchronization
- Enhanced test coverage with new stream6 verification methods and improved test organization
- Fixed window parameter comparison logic to correctly skip windows outside the calculation range
- Refactored stream status checking to use centralized utility function
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| test/new_test_framework/utils/sql.py | Added checkHaveSameResult helper method to verify two SQL queries match expected data |
| test/ci/cases.task | Removed priority override for test_tsma.py test case |
| test/cases/18-StreamProcessing/20-UseCase/test_idmp_vehicle.py | Added comprehensive stream6 trigger/verify methods for both phase A and B, cleaned up comments |
| test/cases/18-StreamProcessing/02-Stream/test_stream_check_name.py | Refactored to use centralized tdStream.checkStreamStatus() utility |
| source/libs/new-stream/src/streamTriggerTask.c | Fixed timestamp conversion from ns to us, added sliding window end handling, fixed window parameter comparison logic, added partial data filtering |
| source/dnode/vnode/src/vnd/vnodeStream.c | Added verTime initialization and tracking, updated response size to include both ver and verTime |
| include/common/streamMsg.h | Added clarifying comment that verTime is in microseconds |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ee99985 to
e879aa7
Compare
136eb91 to
6718778
Compare
Description
Fix(stream): fix ci case issues
Issue(s)
Checklist
Please check the items in the checklist if applicable.