Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Am Wondering Why Do I Need To Create Files Before Applying Diff ?

hi, I am wondering why do I need to create files before applying diff ? https://github.com/allegroai/clearml-agent/blob/master/clearml_agent/helper/repo.py#L164 ,as far as I know, git diff will create file automaticlly. In addition, I am using store_code_diff_from_remote=true.

  
  
Posted 3 years ago
Votes Newest

Answers 8


0.17.1

  
  
Posted 3 years ago

DefeatedOstrich93 many thanks I was able to reproduce it (basically newly added files caused git apply to fail)
Fix will be part of the next clearml-agent RC

  
  
Posted 3 years ago

let me try to describe, i am not sure it will work:

  1. add store_code_diff_from_remote: true in clearml.conf
  2. find a repo, run an experiment
  3. touch a new file xxx
  4. git add xxx
  5. clone the task in web UI
  6. start an agent and enqueue the cloned task
  
  
Posted 3 years ago

Thanks DefeatedOstrich93
Let me check if I can reproduce it.

  
  
Posted 3 years ago

Okay how do I reproduce it ?

  
  
Posted 3 years ago

But the git apply failed, the error message is the "xxx already exists in working directory" (xxx is the name of the untracked file)

DefeatedOstrich93 what's the clearml-agent version?

  
  
Posted 3 years ago

DefeatedOstrich93 what do you mean by "I am wondering why do I need to create files before applying diff ?"
git diff will not list files unless their are added (they are marked as "untracked") think temp files logs etc. until you add a file to git it will basically ignore that file. Make sense ?

  
  
Posted 3 years ago

I added an untracked file in client, so 'git diff origin' recorded it. After clone the experiment, clearml-agent creates the untrack file first and tries to apply the diff. But the git apply failed, the error message is the "xxx already exists in working directory" (xxx is the name of the untracked file)

  
  
Posted 3 years ago
875 Views
8 Answers
3 years ago
one year ago
Tags