-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support redis migrations #8898
base: develop
Are you sure you want to change the base?
Support redis migrations #8898
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
2e68c0f
to
dc1f3bb
Compare
Quality Gate passedIssues Measures |
152a52f
to
0b49bbe
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8898 +/- ##
===========================================
- Coverage 73.41% 73.41% -0.01%
===========================================
Files 418 427 +9
Lines 44299 44439 +140
Branches 3870 3870
===========================================
+ Hits 32524 32625 +101
- Misses 11775 11814 +39
|
I have no time to investigate what is going on with Helm tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like these changes were made by pre-commit hook
@bsekachev
180b858
to
66b3b25
Compare
66b3b25
to
32243a7
Compare
applied_date: datetime = field( | ||
validator=[validators.instance_of(datetime)], converter=to_datetime | ||
) | ||
identifier: UUID = field(factory=uuid4, converter=to_uuid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need an extra identifier? Shouldn't <app_label>.<name>
already be a unique key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should, probably I did so initially because I would not keep only the applied date in a hash item
Quality Gate passedIssues Measures |
It seems that these tests are unstable. I've compared the latest logs with logs where there was a problem with helm tests related to resetting applied migrations from the Redis and waiting in workers for them. Workers are initialized correctly and start running. |
Motivation and context
Sometimes we need to modify the data stored in Redis (for instance, in the near future we will change the identifiers of RQ jobs). This PR introduces a common mechanism for handling Redis migrations.
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.