Skip to content

pre-commit: fails for multi-file patches #3751

@casperdcl

Description

@casperdcl
  • pre-commit fails when there are more files to check than hyperthreads on the machine
  • error message about .dvc/tmp/lock is misleading and uphelpful

Steps to reproduce:

dvc (master)$ pre-commit run --all-files
black....................................................................Passed
flake8...................................................................Passed
beautysh.................................................................Passed
DVC pre-commit...........................................................Failed
- hook id: dvc-pre-commit
- duration: 6.17s
- exit code: 1

ERROR: failed to obtain data status - cannot perform the command because another DVC process seems to be running on this project. If that is not the case, manually remove `.dvc/tmp/lock` and try again.

Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

require_serial: true in the pre-commit config doesn't seem to help

Metadata

Metadata

Assignees

Labels

bugDid we break something?p1-importantImportant, aka current backlog of things to doresearch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions