allegroai / clearml

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Apache License 2.0
5.69k stars 655 forks source link

Can't run a git tag using clearml-task cli #1056

Open tessagoldchmit opened 1 year ago

tessagoldchmit commented 1 year ago

Describe the bug

Can't run a git tag using clearml-task cli

To reproduce

try running a git project tag

Expected behaviour

the task should run successfully

Environment

Logs from the clearml

error: pathspec 'origin/my_tag' did not match any file(s) known to git Repository cloning failed: Command '['git', 'checkout', 'origin/my_tag', '--force']' returned non-zero exit status 1. clearml_agent: ERROR: Failed cloning repository. 1) Make sure you pushed the requested commit: (repository='', branch='my_tag', commit_id='', tag='', docker_cmd='', entry_point='***', working_dir='.') 2) Check if remote-worker has valid credentials [see worker configuration file] 2023-06-25 17:21:18 User aborted: stopping task (3)

Related Discussion

https://clearml.slack.com/archives/CTK20V944/p1687784122805969?thread_ts=1681735660.640359&cid=CTK20V944

ainoam commented 1 year ago

@tessagoldchmit What was the clearml-task command you used to create the task? Which version of clearml are you using?

tessagoldchmit commented 1 year ago

@ainoam clearml==1.10.4rc1

clearml-task --project --name --queue --script --repo --branch --docker --docker_args

when using --branch everything works as expected. but when using a git tag it does not work.

gustavoeb commented 7 months ago

hitting this same issue

ainoam commented 7 months ago

@gustavoeb Which clearml version are you using? Can you share the command line invocation you are using and what error you are getting?