skshetry
8517cccff4
artifacts: add support for monorepo ( #10386 )
3.50.0
2024-04-16 21:13:02 +05:45
dberenbaum
c52a25e011
fix tests
2024-04-16 11:15:52 -04:00
dberenbaum
c4678736b0
add option to not relink
2024-04-16 11:15:52 -04:00
pre-commit-ci[bot]
ec92cc14d1
[pre-commit.ci] pre-commit autoupdate ( #10390 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.3.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.5...v0.3.7 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-16 10:37:51 +05:45
Dave Berenbaum
e6048287cb
fix test for dvc-render updates to plots title anchor ( #10387 )
2024-04-11 19:23:03 +05:45
pre-commit-ci[bot]
72a353d8b9
[pre-commit.ci] pre-commit autoupdate ( #10384 )
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-09 06:45:19 +05:45
pre-commit-ci[bot]
dd2b515c97
[pre-commit.ci] pre-commit autoupdate ( #10376 )
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.4 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.4...v0.3.5 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-02 06:52:09 +05:45
skshetry
c223cdaecd
params/metrics: do not fail during dir expansion ( #10375 )
...
params/metrics: assume file when dir expansion raises error
Closes https://github.com/iterative/dvc/issues/10018 .
We have to be careful when expanding paths. This PR fall backs to assume it
as a file when either of `isdir` and `find` raises error due to some mishaps.
The consequence of this assumption happens when we try to read the file.
In that case, if the directory exists, and we happen to try to open it
as a file, dvc will raise `IsADirectoryError`, but that is handled correctly
and won't fail catastrophically like this did.
2024-03-28 07:30:12 +05:45
skshetry
5379aa2348
add: raise DoesNotExistError only if the output path does not exist ( #10373 )
...
`dvc add` command incorrectly raises a `DoesNotExistError` when a
broken symlink exists in an output directory, and the target name
is same as the directory's name.
eg: If `data` is an output, and is the command is invoked as `dvc add data`
(i.e. no virtual directory operations to perform).
The expected behavior to raise a `FileNotFoundError`.
`DoesNotExistError` should only be raised if the output itself does not
exist.
Related: https://github.com/iterative/dvc/issues/3717
2024-03-26 11:16:35 +00:00
pre-commit-ci[bot] and Saugat Pachhai
3375a7c39f
[pre-commit.ci] pre-commit autoupdate ( #10372 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.3 → v0.3.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.3...v0.3.4 )
* fixes
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
3.49.0
2024-03-26 06:37:53 +00:00
dberenbaum
519c47f5fc
sync: skip if remote doesn't match output remote
2024-03-25 15:12:33 -04:00
skshetry
6f6038888f
sort imports for all libraries starting with dvc_ as a first party ( #10371 )
...
dvc_studio_client, dvc_ssh, etc. were not properly sorted.
2024-03-23 20:13:13 +05:45
skshetry
e223f51e7e
explicitly specify dependencies that are imported inside dvc ( #10370 )
...
Most of these are also transitive dependencies, but we should explicitly
specify them if they are imported within dvc.
2024-03-23 18:51:25 +05:45
skshetry
fb628bf9ea
add a regression test for #10309 ( #10369 )
...
https://github.com/iterative/dvc/issues/10309
2024-03-23 11:37:36 +05:45
dependabot[bot] and skshetry
4f4e977e53
build(deps-dev): update dvc-data requirement from <3.15,>=3.13 to >=3.15,<3.16 ( #10368 )
...
* build(deps-dev): update dvc-data requirement
Updates the requirements on [dvc-data](https://github.com/iterative/dvc-data ) to permit the latest version.
- [Release notes](https://github.com/iterative/dvc-data/releases )
- [Commits](https://github.com/iterative/dvc-data/compare/3.13.0...3.15.0 )
---
updated-dependencies:
- dependency-name: dvc-data
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected] >
* Update pyproject.toml
---------
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: skshetry <[email protected] >
2024-03-23 05:48:17 +00:00
skshetry
8b1f8847fe
add CITATION file so that users can cite dvc ( #10366 )
2024-03-23 07:05:07 +05:45
skshetry
c62a0380e9
templating: support on top-level params/metrics/plots/artifacts/datasets ( #10359 )
...
* templating: support on top-level params/metrics/plots/artifacts/datasets
* make resolving top-level ordered
* prevent updating parametrized dataset
* fix dataset tests
* add tests
* fix comment
* support parametrizing artifacts name
2024-03-22 12:22:16 +00:00
Rishabh Sharma and Rishabh Sharma
8d8939fb67
DVC_STAGE: Added environment variable to track DVC stage name ( #10357 )
...
DVC_STAGE_NAME: Added environment variable to track DVC stage name
Fixes #10355
Co-authored-by: Rishabh Sharma <[email protected] >
2024-03-20 13:28:02 -07:00
dependabot[bot]
f7a54bf2d0
build(deps): bump rtCamp/action-slack-notify from 2.2.1 to 2.3.0 ( #10364 )
...
Bumps [rtCamp/action-slack-notify](https://github.com/rtcamp/action-slack-notify ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/rtcamp/action-slack-notify/releases )
- [Commits](https://github.com/rtcamp/action-slack-notify/compare/v2.2.1...v2.3.0 )
---
updated-dependencies:
- dependency-name: rtCamp/action-slack-notify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-20 08:15:27 +05:45
pre-commit-ci[bot] and Saugat Pachhai
1a9f5d3aa8
[pre-commit.ci] pre-commit autoupdate ( #10362 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.3.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.2...v0.3.3 )
* fix lint issue
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-19 13:25:39 +05:45
Ivan Shcheklein
017a510b83
add attrs explicit dependency ( #10354 )
...
fixes AttrsInstance import failing, fixed by https://github.com/python-attrs/attrs/issues/987
2024-03-16 08:58:37 +05:45
skshetry
a80d224c58
fix dvcx import ( #10351 )
2024-03-14 15:20:17 +05:45
pre-commit-ci[bot] and Saugat Pachhai
49709a4810
[pre-commit.ci] pre-commit autoupdate ( #10350 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.2 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix ruff errors
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-13 16:43:10 +05:45
dberenbaum
7df58ce404
Revert "refactor notify_refs_to_studio"
...
This reverts commit c16d615b55f2bb359b731939ad22712a502d8a8d.
3.48.4
2024-03-11 10:47:01 -04:00
dberenbaum
827e58f305
Revert "fix mypy"
...
This reverts commit 029b68ef77b7f82d5e72c8bb48f3eb980fe8204e.
2024-03-11 10:47:01 -04:00
dberenbaum
8bc6ba7cd5
fix mypy
2024-03-11 10:47:01 -04:00
dberenbaum
a96a446742
refactor notify_refs_to_studio
2024-03-11 10:47:01 -04:00
dberenbaum
837c8e8de4
exp: use exp git remote for studio repo url
2024-03-11 10:47:01 -04:00
dberenbaum
603da1ca1e
api: update remote config tests
2024-03-11 09:47:05 -04:00
dberenbaum
377d0c9d58
get: update show-url to take remote args
2024-03-11 09:47:05 -04:00
dependabot[bot]
6bdf41a217
build(deps-dev): bump mypy from 1.8.0 to 1.9.0 ( #10348 )
...
Bumps [mypy](https://github.com/python/mypy ) from 1.8.0 to 1.9.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md )
- [Commits](https://github.com/python/mypy/compare/v1.8.0...1.9.0 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 08:44:35 +05:45
dberenbaum
1aeb8750b6
drop debugging comment
3.48.3
2024-03-07 07:39:53 -05:00
dberenbaum
5aae934379
test auto push with tmp dir
2024-03-07 07:39:53 -05:00
dberenbaum
de1338caaf
write git config to exp tmp repos
2024-03-07 07:39:53 -05:00
Ivan Shcheklein and skshetry
9957410998
fix(plots): handle empty directories ( #10344 )
...
* fix(plots): handle empty directories
* Update tests/integration/plots/test_plots.py
Co-authored-by: skshetry <[email protected] >
* cleanup after review
---------
Co-authored-by: skshetry <[email protected] >
2024-03-07 12:50:49 +05:45
dberenbaum
cf9855af45
handle auto push errors
2024-03-05 09:44:48 -05:00
skshetry
0001cc3a4b
drop 2.x branch ( #10339 )
...
* drop 2.x branch
* Update tests.yaml
2024-03-05 14:39:51 +05:45
skshetry
440e1491f0
Delete .github/mergify.yml ( #10338 )
2024-03-05 14:37:44 +05:45
AlexandreKempf and Saugat Pachhai
b0384f8f51
dvc studio login automatically push experiments by default (#10331 )
...
* studio login set auto_push + add logs for the user
* set a separate global config dir for studio login tests
The `isolate` fixture sets a separate, _isolated_ global config directory.
But it is shared among other tests. So any mutations to it affects other
tests too.
We should force `studio login` tests to use a separate tmp_dir for global config.
* cleanup message
---------
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
2024-03-05 11:48:16 +05:45
cd1e228e55
experiments: auto push experiments ( #10323 )
...
* add auto_push for experiment on run and on save.
add config.exp.auto_push and config.exp.git_remote
* add func tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* separate auto_push behaviour out of commit
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saugat Pachhai (सौगात) <[email protected] >
3.48.2
2024-03-04 14:20:56 +05:45
skshetry
3b2e031e60
replace flaky with pytest-rerunfailures ( #10335 )
...
* Revert "limit pytest version to <8.1 (#10334 )"
This reverts commit bc95b650a4 .
* replace flaky with pytest-rerunfailures
`flaky` project seems to be unmaintained (see box/flaky#192 ).
`pytest-rerunfailures` seems to be maintained under `pytest-dev`
and tests 5 minor releases of pytest.
Note that this plugin is not compatible with `flaky` plugin.
You will have to uninstall it if it exists.
2024-03-04 11:12:45 +05:45
skshetry
e5ee82bc99
support newer pytest-docker ( #10336 )
2024-03-04 11:09:56 +05:45
skshetry
bc95b650a4
limit pytest version to <8.1 ( #10334 )
...
Change in pytest==8.1.0 breaks `flaky` plugin.
See https://github.com/box/flaky/issues/198 .
2024-03-04 10:31:58 +05:45
skshetry
257ea5f4cb
tests: use default branch for rev ( #10332 )
...
`isolate` fixture don't run in plugin's tests.
So the tests will fail to run if you have `init.defaultBranch`
something other than `master`.
2024-03-01 11:16:59 +05:45
AlexandreKempf
5f7acd4cbe
add subdir test to integration tests
3.48.1
2024-02-29 13:50:30 -05:00
AlexandreKempf
13325ea89b
use explicit code to fix copy bug
2024-02-29 13:50:30 -05:00
AlexandreKempf
fd71434df5
fix test
2024-02-29 13:50:30 -05:00
AlexandreKempf
2ff4ff2daa
implement logic for closest parent detection
2024-02-29 13:50:30 -05:00
AlexandreKempf
0ee6d6eba8
add more extensive tests
2024-02-29 13:50:30 -05:00
pre-commit-ci[bot]
7c34370464
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-02-29 13:50:30 -05:00