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

updating datumaro #8370

Merged
merged 3 commits into from
Aug 29, 2024
Merged

updating datumaro #8370

merged 3 commits into from
Aug 29, 2024

Conversation

Eldies
Copy link
Contributor

@Eldies Eldies commented Aug 28, 2024

Motivation and context

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit

  • New Features

    • Enhanced dataset comparison logic, now focusing strictly on the "rotation" attribute while ignoring the "elements" field.
  • Bug Fixes

    • Updated dependencies to newer versions, which may include various bug fixes and performance improvements across the application.
  • Chores

    • Routine maintenance updates to dependency versions in the requirements files, ensuring compatibility and stability.

Copy link
Contributor

coderabbitai bot commented Aug 28, 2024

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The changes involve updates to various dependency specifications and modifications to the compare_datasets function in the dataset manager tests. The ExactComparator class is now stricter in its comparison logic, particularly regarding the "elements" field and skeleton annotations. Additionally, several packages, including datumaro, have been updated to new versions across multiple requirements files, reflecting routine maintenance and improvements.

Changes

Files Change Summary
cvat/apps/dataset_manager/tests/test_rest_api_formats.py Modified the compare_datasets function by removing the ignored_fields parameter from the ExactComparator instantiation and eliminating skeleton element comparison logic.
cvat/requirements/base.in Updated datumaro version from a specific commit hash to a new commit hash, indicating a shift to a different state of the repository.
cvat/requirements/base.txt Bumped versions for multiple dependencies, including datumaro, google-api-core, and others, reflecting a routine maintenance update.
cvat/requirements/development.txt Changed the version of setuptools from 72.2.0 to 74.0.0.
cvat/requirements/production.txt Updated versions for watchfiles from 0.23.0 to 0.24.0 and websockets from 12.0 to 13.0.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant API
    participant Comparator

    User->>API: Request dataset comparison
    API->>Comparator: Compare datasets
    Comparator->>Comparator: Check rotation attribute
    Comparator->>Comparator: Validate elements field
    Comparator-->>API: Return comparison result
    API-->>User: Send comparison result
Loading

🐇 In the garden, changes bloom,
New versions sprout, dispelling gloom.
Comparators now stricter, oh what a sight,
Elements dance in the soft moonlight.
Dependencies fresh, like morning dew,
Hopping forward, we leap anew! 🌼


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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 anywhere in the PR title to generate the title automatically.
  • 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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between fe3f79f and 01082de.

Files selected for processing (5)
  • cvat/apps/dataset_manager/tests/test_rest_api_formats.py (2 hunks)
  • cvat/requirements/base.in (1 hunks)
  • cvat/requirements/base.txt (7 hunks)
  • cvat/requirements/development.txt (1 hunks)
  • cvat/requirements/production.txt (1 hunks)
Files skipped from review due to trivial changes (3)
  • cvat/requirements/base.txt
  • cvat/requirements/development.txt
  • cvat/requirements/production.txt
Additional comments not posted (3)
cvat/requirements/base.in (1)

9-9: Verify the impact of the updated dependency.

The datumaro package has been updated to a new commit hash. Ensure that the changes introduced in the new commit do not break any existing functionality and are compatible with the current codebase.

Run the following script to check for any breaking changes or compatibility issues:

cvat/apps/dataset_manager/tests/test_rest_api_formats.py (2)

104-104: Stricter comparison logic: Removed ignored_fields parameter.

The ignored_fields parameter has been removed from the ExactComparator instantiation, making the comparison logic stricter by not ignoring the "elements" field. Ensure that this change does not cause unintended issues in dataset comparisons.

Verify that all tests pass and no issues arise from this change.


Line range hint 104-110: Removed skeleton elements comparison block.

The code block that handled the comparison of skeleton elements has been removed. This change might affect the validation of datasets with skeleton annotations. Ensure that this change does not cause unintended issues in dataset comparisons.

Verify that all tests pass and no issues arise from this change.

@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.45%. Comparing base (fe3f79f) to head (c51a39a).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8370      +/-   ##
===========================================
- Coverage    83.62%   83.45%   -0.17%     
===========================================
  Files          393      395       +2     
  Lines        41640    41826     +186     
  Branches      3841     3881      +40     
===========================================
+ Hits         34820    34907      +87     
- Misses        6820     6919      +99     
Components Coverage Δ
cvat-ui 79.38% <ø> (-0.32%) ⬇️
cvat-server 87.09% <ø> (ø)

Co-authored-by: Maxim Zhiltsov <zhiltsov.max35@gmail.com>
Copy link

sonarcloud bot commented Aug 29, 2024

@SpecLad SpecLad merged commit 9fc70ef into develop Aug 29, 2024
33 checks passed
@SpecLad SpecLad deleted the dl/yolo8-update branch August 29, 2024 09:33
bschultz96 pushed a commit to bschultz96/cvat that referenced this pull request Sep 12, 2024
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.

4 participants