-
Notifications
You must be signed in to change notification settings - Fork 38
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
track dvcyaml file #710
track dvcyaml file #710
Conversation
* add dvcyaml to root * clean up dvcyaml implementation * fix existing tests * add new tests * add unit tests for updating dvcyaml * use posix paths * don't resolve symlinks * drop entire dvclive dir on cleanup * fix studio tests * revert cleanup changes * unify rel_path util func * cleanup test * refactor tests * add test for multiple dvclive instances * put dvc_file logic into _init_dvc_file --------- Co-authored-by: daavoo <[email protected]>
Fallback to `None` when conditions are not met for other types.
Rename test_frameworks to frameworks.
* drop dvc.yaml prefix from studio plots * refactor * drop .dvc files * dvc version bump
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
@@ -548,6 +548,10 @@ def end(self): | |||
catch_and_warn(DvcException, logger)(ensure_dir_is_tracked)( | |||
self.dir, self._dvc_repo | |||
) | |||
if self._dvcyaml: | |||
catch_and_warn(DvcException, logger)(self._dvc_repo.scm.add)( |
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.
This is missing some test
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.
Do you mean the warnings? Not sure what scenario would actually trigger an exception here 🤔 .
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.
I meant the scm.add
, it seems that we only test the include_untracked
change
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.
Good catch. Added it to test_untracked_dvclive_files_inside_dvc_exp_run_are_added
.
Not sure why the tests are failing. Some error relating to the version. |
@skshetry WDYT? Should the failure block merging? |
@dberenbaum, let me try to rerun, it is probably fixed in setuptools_scm. If not, we can merge it and pin it separately. :) |
Now that
dvc.yaml
will be written to the root, this PR ensures it is git-tracked.