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 11 months ago
Votes Newest

Answers 19


With clearml-agent 1.5.1

  
  
Posted 11 months ago

remote repository

's lock file.

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

  
  
Posted 11 months ago

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

  
  
Posted 10 months 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 10 months 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 11 months ago

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

  
  
Posted 11 months ago

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

  
  
Posted 11 months 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 10 months ago

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

  
  
Posted 10 months 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 10 months ago

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

  
  
Posted 10 months 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 11 months ago

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

  
  
Posted 10 months ago

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

  
  
Posted 11 months 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 10 months 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 10 months ago

Yeps

  
  
Posted 11 months ago

Can you send the full task log?

  
  
Posted 11 months ago

The poetry.lock in github, it seems 🤔

  
  
Posted 11 months ago