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
For Remote Execution Where The Queue Has

For remote execution where the queue has poetry as the default package manager, can the user decide to e.g. ignore the lock file?

  
  
Posted one year ago
Votes Newest

Answers 19


With clearml-agent 1.5.1

  
  
Posted one year ago

I understand, but then the toml file needs to be parsed to ensure poetry is used. It's just a tool entry in the pyproject.toml.

  
  
Posted one year ago

I think poetry should somehow return error if toml is "empty" then we can detect it...

  
  
Posted one year ago

remote repository

's lock file.

Which file is that? the poetry lock of the internal VCS lock (the agent itself)

  
  
Posted one year ago

Here's an example where poetry.lock is removed, and still the console reads:
url: .... branch: HEAD commit: 22fffaf8d5f377b7f10140e642a7f6f26b72ffaa root: /.../.clearml/venvs-builds/3.10/task_repository/... Applying uncommitted changes Poetry Enabled: Ignoring requested python packages, using repository poetry lock file! Creating virtualenv ds-platform in /.../.clearml/venvs-builds/3.10/task_repository/.../.venv Updating dependencies Resolving dependencies...

  
  
Posted one year ago

Can you send the full task log?

  
  
Posted one year ago

It's pulled from the remote repository, my best guess is that the uncommitted changes apply only after the environment is set up?

  
  
Posted one year ago

No after, do you see the poetry lock removed in the uncommitted changes?

  
  
Posted one year ago

Yeps

  
  
Posted one year ago

@<1523701083040387072:profile|UnevenDolphin73> it's looking for any of the files:
None

  
  
Posted one year ago

Hmm @<1523701083040387072:profile|UnevenDolphin73> I think this is the reason, None
and this means that even without a full lock file poetry can still build an environment

  
  
Posted one year ago

Hi UnevenDolphin73
If you "remove" the lock file the agent will default to pip.
You can hack it with uncommitted changes section?

  
  
Posted one year ago

It seems that the agent uses the remote repository 's lock file. We've removed and renamed the file locally (caught under local changes), but it still installs from the remote lock file 🤔

  
  
Posted one year ago

Sorry AgitatedDove14 , forgot to get back to this.
I've been trying to convince my team to drop poetry 😄

  
  
Posted one year ago

I understand, but then the toml file needs to be parsed to ensure poetry is used. It's just a tool entry in the pyproject.toml.

Probably too much for the agent... and specifically it seems poetry actually managed to parse it?! what are you getting in the log?

  
  
Posted one year ago

The poetry.lock in github, it seems 🤔

  
  
Posted one year ago

Uhhh, but pyproject.toml does not necessarily entail poetry... It's a new Python standard

  
  
Posted one year ago

Wait who is creating this file? I thought you remove it in the uncommitted changes

  
  
Posted one year ago

Couldn't the agent just come with the toml library? Kinda easy to load up and check if poetry is present then... 🤔

But yes it indeed used poetry correctly, though it would fail in other circumstances

  
  
Posted one year ago