ni / ni/measurement-plugin-python

PR build's virtualenv caching does not handle file dependencies like `../../packages/service` correctly

Open
#941 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tech debt
Dominant language
Python
Stars
21
Forks
20
Avg merge
1d 16h
Merged PRs (30d)
3

Description

Tech Debt

The PR build uses actions/cache to cache virtualenvs based on the hash of poetry.lock. For external dependencies, this works great, but when using file dependencies to reference other packages in the same repo such as ../../packages/service, this doesn't work right because the contents of ../../packages/service are not reflected in the hash of poetry.lock.

Workarounds:

  • Use develop = true to avoid copying local packages to the venv
  • Modify poetry.lock when making changes to code
  • Use the GitHub Actions tab to delete the cache.

AB#2867348

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PR build workflow that uses actions/cache to cache virtualenvs from poetry.lock, then inspect how file dependencies such as ../../packages/service are represented. Done means changes to the local package invalidate or refresh the virtualenv cache without manually editing poetry.lock or deleting the GitHub Actions cache.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, python
Domain
build-system, ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.