Skip to content
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

chore: bump COMPATIBLE_VERSIONS for db compatibility #5084

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

findtopher
Copy link
Member

@findtopher findtopher commented Nov 11, 2024

What changes are proposed in this pull request?

Turns out we're supposed to bump COMPATIBLE_VERSIONS in fiftyone

How is this patch tested? If it is not, please explain why.

Release Notes

Is this a user-facing change that should be mentioned in the release notes?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release
    notes for FiftyOne users.

(Details in 1-2 sentences. You can just refer to another PR with a description
if this PR is part of a larger change.)

What areas of FiftyOne does this PR affect?

  • App: FiftyOne application changes
  • Build: Build and test infrastructure changes
  • Core: Core fiftyone Python library changes
  • Documentation: FiftyOne documentation changes
  • Other

Summary by CodeRabbit

  • New Features

    • Extended compatibility range to support versions up to, but not including, 1.2.
  • Bug Fixes

    • No bug fixes included in this release.
  • Documentation

    • Updated compatibility documentation to reflect the new version range.

Copy link
Contributor

coderabbitai bot commented Nov 11, 2024

Walkthrough

The changes in this pull request involve updating the COMPATIBLE_VERSIONS constant in the fiftyone/constants.py file. The value has been modified from ">=0.19,<1.1" to ">=0.19,<1.2", extending the compatibility range for the client to support versions up to, but not including, 1.2. No additional changes to logic or control flow are present.

Changes

File Change Summary
fiftyone/constants.py Updated COMPATIBLE_VERSIONS from ">=0.19,<1.1" to ">=0.19,<1.2"

Possibly related PRs

  • Bumping compatibility version #4883: This PR also updates the COMPATIBLE_VERSIONS constant in the same fiftyone/constants.py file, indicating a related change in version compatibility.

Suggested reviewers

  • minhtuev
  • benjaminpkane

🐇 In the code where constants play,
A version change has come today.
From one point one to one point two,
Compatibility now shines anew!
Hop along, let's celebrate,
For updates make our code first-rate! 🌟


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@findtopher findtopher requested review from a team November 11, 2024 14:29
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
fiftyone/constants.py (1)

45-45: Update documentation and release notes

Since this change affects version compatibility, it should be:

  1. Documented in the release notes
  2. Added to any upgrade guides if applicable

Would you like me to help draft the release notes entry for this change?

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 172e700 and 6fc1a50.

📒 Files selected for processing (1)
  • fiftyone/constants.py (1 hunks)
🔇 Additional comments (1)
fiftyone/constants.py (1)

45-45: Verify compatibility testing across versions

While the change to extend compatibility to <1.2 seems straightforward, we should ensure it has been thoroughly tested with datasets from all supported versions (>=0.19 through 1.1.x) to maintain the compatibility guarantees documented in the rules above.

Consider adding automated compatibility tests that verify:

  1. Dataset loading across all supported versions
  2. Database operations maintain backward compatibility
✅ Verification successful

Version compatibility change appears safe to proceed

Based on the codebase analysis, the change to extend compatibility to <1.2 is supported by the existing migration infrastructure:

  1. The system has a robust version compatibility checking mechanism (_is_compatible_version in migrations/runner.py)
  2. Datasets are lazily migrated on a per-dataset basis when loaded with newer versions
  3. There are safeguards preventing incompatible clients from connecting to databases
  4. The release notes indicate support for handling future-but-compatible versions gracefully

The change aligns with the documented rules since:

  • Downward migrations for future-compatible versions are handled
  • Version compatibility is strictly enforced at runtime
  • Database migrations are performed only when necessary
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for any database schema changes or compatibility tests
rg -g '!*.pyc' -g '!*test*' -A 5 'schema.*1\.1\.' 
rg -g '*test*' -A 5 'COMPATIBLE_VERSIONS'

Length of output: 93


Script:

#!/bin/bash
# Let's try a broader search for schema-related changes and version compatibility
# Search for schema changes
rg -g '!*.pyc' "schema.*version" -A 5

# Search for version compatibility checks
rg -g '!*.pyc' "compatible.*version" -A 5

# Search for database migrations or version upgrades
rg -g '!*.pyc' "(migrate|upgrade).*version" -A 5

# Look for test files that might verify version compatibility
fd "test.*\.py$" --exec grep -l "version" {}

Length of output: 14421

Copy link
Contributor

@brimoor brimoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@findtopher findtopher merged commit d9e8455 into release/v1.1.0 Nov 11, 2024
13 checks passed
@findtopher findtopher deleted the topher/bump-compatible-versions branch November 11, 2024 15:58
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.

2 participants