ni / ni/measurement-plugin-python
PR build's virtualenv caching does not handle file dependencies like `../../packages/service` correctly
Nobody has claimed this yet.
- 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 = trueto avoid copying local packages to the venv - Modify
poetry.lockwhen making changes to code - Use the GitHub Actions tab to delete the cache.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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