Skip to content

repro: update status message for dvc-added files#4269

Closed
sarthakforwet wants to merge 1 commit into
treeverse:masterfrom
sarthakforwet:repro_output
Closed

repro: update status message for dvc-added files#4269
sarthakforwet wants to merge 1 commit into
treeverse:masterfrom
sarthakforwet:repro_output

Conversation

@sarthakforwet
Copy link
Copy Markdown
Contributor

The reason for updating the status message is that .dvc files are not stages and hence we can just remove the prefix "Stage" from the output whenever a .dvc file would be detected.

References #4233

Copy link
Copy Markdown
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Please check our contributing guide https://dvc.org/doc/user-guide/contributing/core (it was in the PR header that you've removed). You need to install pre-commit hooks and run those.

Comment thread dvc/stage/__init__.py
def reproduce(self, interactive=False, **kwargs):
if not (kwargs.get("force", False) or self.changed()):
logger.info("Stage '%s' didn't change, skipping", self.addressing)
if '.dvc' in self.adressing:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As I've mentioned in #4233 (comment) , using .dvc suffix is not the best approach:

Suggested change
if '.dvc' in self.adressing:
if not isinstance(stage, PipelineStage) and stage.is_data_source:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants