Skip to content

Conversation

@mattseddon
Copy link
Contributor

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™


Related to https://github.com/iterative/studio/issues/8848


relpath = as_posix(self.fs.relpath(self.root_dir, scm_root_dir))

return "" if relpath == "." else relpath
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Part of https://github.com/iterative/studio/issues/8848 is that we need to send the relative subrepo path to Studio via dvc-studio-client. Both dvc and dvclive use the client to post live experiments metrics to Studio. To me, it makes sense to have this helper here as we have all of the necessary fixtures to test the behaviour.

@mattseddon mattseddon marked this pull request as ready for review February 6, 2024 01:36
@codecov
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Comparison is base (d25cb79) 90.41% compared to head (f581be2) 90.43%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10283      +/-   ##
==========================================
+ Coverage   90.41%   90.43%   +0.02%     
==========================================
  Files         494      494              
  Lines       37775    37811      +36     
  Branches     5467     5468       +1     
==========================================
+ Hits        34153    34194      +41     
+ Misses       2987     2984       -3     
+ Partials      635      633       -2     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@mattseddon mattseddon enabled auto-merge (squash) February 6, 2024 02:01
@efiop efiop disabled auto-merge February 6, 2024 02:02
@efiop efiop merged commit 44b78b8 into treeverse:main Feb 6, 2024
@efiop efiop added the enhancement Enhances DVC label Feb 6, 2024
@mattseddon mattseddon deleted the add-subrepo-helper branch February 6, 2024 02:15
@mattseddon mattseddon changed the title repo: add get_subrepo_relpath helper for Studio live experiments monorepo support repo: add subrepo_relpath property for Studio live experiments monorepo support Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhances DVC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants