Skip to content

Use poetry.lock hash to define that packages were changed #249

@amineral

Description

@amineral

Its really hard to run testmon in ci because of comparing system_packages. In my case all dependencies are in poetry.lock and unchanged poetry.lock hash value (inside poetry.lock file) is guarantees that dependencies were not changed.

Is it possible to add flag like --testmon-use-poetry.lock or something like that to strict use poetry lock hash to define package changes?

Something like that:

def get_system_packages_as_poetry_lock_hash() -> str:
   import tomllib

   with open("poetry.lock", "rb") as poetry_lock:
       data = tomllib.load(poetry_lock)

   return data["metadata"]["content-hash"]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions