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

Raise VcsAlreadyExists error if vcs directory exists #1138

Conversation

vinnamkim
Copy link
Contributor

@vinnamkim vinnamkim commented Aug 30, 2023

Summary

How to test

Updated unit tests for it.

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added the description of my changes into CHANGELOG.​
  • I have updated the documentation accordingly

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.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

 - Currently, the `datum project create` command removes the vcs directory such as Git which is already
   existed. This patch will prevent it from removing it.

Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
@vinnamkim vinnamkim added this to the 1.5.0 milestone Aug 30, 2023
@vinnamkim vinnamkim added the BUG Something isn't working label Aug 30, 2023
@vinnamkim vinnamkim marked this pull request as ready for review August 30, 2023 03:05
@vinnamkim vinnamkim requested review from a team as code owners August 30, 2023 03:05
@vinnamkim vinnamkim requested review from sooahleex and removed request for a team August 30, 2023 03:05
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 91.66% and no project coverage change.

Comparison is base (01b4f35) 80.16% compared to head (372636f) 80.17%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1138   +/-   ##
========================================
  Coverage    80.16%   80.17%           
========================================
  Files          260      260           
  Lines        29370    29380   +10     
  Branches      5757     5760    +3     
========================================
+ Hits         23545    23555   +10     
+ Misses        4484     4483    -1     
- Partials      1341     1342    +1     
Flag Coverage Δ
macos-11_Python-3.8 79.27% <91.66%> (+<0.01%) ⬆️
ubuntu-20.04_Python-3.8 80.15% <91.66%> (+<0.01%) ⬆️
windows-2019_Python-3.8 80.08% <91.66%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/datumaro/components/errors.py 90.22% <80.00%> (-0.13%) ⬇️
src/datumaro/components/project.py 79.25% <100.00%> (+0.06%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@wonjuleee wonjuleee left a comment

Choose a reason for hiding this comment

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

LGTM!

@vinnamkim vinnamkim merged commit 7cc0949 into openvinotoolkit:develop Sep 6, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datum create might delete your git workspace
2 participants