question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`exp run`: `--glob` option doesn't work

See original GitHub issue

Bug Report

Description

dvc repro --glob 't*' runs all the stages starting with t in the current directory.

dvc exp run --glob 't*' looks for a stage having the name t*, and it can’t find.

Reproduce

dvc stage add -n t1 echo t1
dvc stage add -n t2 echo t2
dvc stage add -n t3 echo t3
dvc stage add -n t4 echo t4
dvc exp run --glob 't*'

Expected

I expect --glob to run multiple stages.

Environment information

dvc 2.6.3

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pmrowlacommented, Oct 15, 2021

@skshetry Is it possible to glob the stages before checkout and only checkout the pre-filtered stages?

This is what @skshetry already suggested as a fix (https://github.com/iterative/dvc/pull/6458#discussion_r691044998)

Why does this break --glob but other stage selection options like --downstream work despite not having corresponding options in checkout?

--downstream doesn’t affect what would get checked out in exp run. Whether the command is exp run <target> or exp run --downstream <target>, the resulting checkout will always still be dvc checkout --with-deps <target>

@dberenbaum

1reaction
dberenbaumcommented, Apr 5, 2022

I need to test each of them to be sure but if the team decides not to implement it, we should remove --glob from dvc exp run --help.

This is done, so lowering the priority of this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ls with glob not working in a bash script - Super User
Activating this option made the shell to expand the glob before executing the ls command: ls -1 -d subdir3 subdir4 subdir5 ..... subdirn...
Read more >
In what scenarios does file globbing not work in bash?
The globbing you are performing takes place before the sudo is executed. Only the call of du is done with root permissions. That...
Read more >
Understanding the glob pattern in Node.js - LogRocket Blog
The glob pattern adds all files within a directory with the .java extension ... specified by the programmer using the dotglob common option....
Read more >
The best way to expand glob pattern? - Unix Stack Exchange
Just let it expand inside an array declaration's right side: list=(../smth*/) # grab the list echo "${#list[@]}" # print array length echo "${list[@]}" ......
Read more >
4. Glob Patterns And Other Basics - Exploring Expect [Book]
I will also describe what happens when patterns do not match. ... When Expect runs, it will immediately ask for all the characters...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found