Codecov workflow fails on every develop push: frictionless not installed
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description of the issue
The "🐍 Coverage tests with codecov" workflow (.github/workflows/codecov.yml) fails on every push to develop (seen on at least 2026-07-02, 2026-09-15 and 2026-09-25 — fb7f756, 4b6390a, d0da1c0).
It installs only pytest pytest-cov pyld. Every test that imports frictionless then fails: oemetadata/v2/v21/example.py and example_modules.py import it at module level, and so do the datapackage tests.
E ModuleNotFoundError: No module named 'frictionless'
FAILED test/oemetadata/v2/v21/test_example.py::test_oemetadata_schema_should_validate_oemetadata_example
FAILED test/oemetadata/v2/v21/test_example.py::test_oemetadata_schema_should_validate_oemetadata_example_modules
FAILED test/oemetadata/v2/v21/test_example.py::test_oemetadata_example_is_datapackage
FAILED test/oemetadata/v2/v21/test_example.py::test_oemetadata_example_modules_is_datapackage
4 failed, 78 passed
Expected: the coverage run installs the same dependencies as the test run and passes. The "🐍 Automated test" (tox) workflow is green on the same commits because it installs requirements.txt.
Steps to Reproduce
- Push to
develop(or open the latest "🐍 Coverage tests with codecov" run ondevelop). - Look at the "Run coverage test and create codecov" step.
- Four tests in
test/oemetadata/v2/v21/test_example.pyfail withModuleNotFoundError: No module named 'frictionless'.
Locally: pip install pytest pytest-cov pyld && pytest --cov in a fresh env gives the same result.
Ideas of solution
- Install
requirements.txtin the codecov workflow, astox.ymldoes, and pin Python 3.10 to match the test matrix. This is simple and keeps the two workflows in sync. - Alternative: add only
frictionless jsonschemato the pip line. That's smaller, but it will break again whenever a test needs a new dependency (e.g.rdflibforgraph.py).
The first option is implemented in #324.
Context and Environment
- Version used:
develop@d0da1c0 - Operating system: GitHub Actions
ubuntu-latest - Environment setup and (python) version:
actions/setup-python@v5without a version (runner default); reproduced locally with Python 3.10.12
Workflow checklist
- I am aware of the workflow in CONTRIBUTING.md
- Lingua principale
- Python
- Stelle
- 26
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenEnergyPlatform/oemetadata
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OpenEnergyPlatform/oemetadata#328 ·
-
Develop AI tooling for usersAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
OpenEnergyPlatform/oemetadata#327 · 1 commento ·
-
status: active 🚧 type: bug 🐛
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OpenEnergyPlatform/oemetadata#323 · 1 reazione ·
-
The "@id" fields cause problems, rename to "id"Forse già presa @jh-RLI l’ha presa 52 giorni fa. Apertapart: backend 🧱 part: documentation 📖 priority: critical 🔥 status: active 🚧 type: enhancement ⚙️
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
OpenEnergyPlatform/oemetadata#320 · 10 commenti · 2 assegnatari ·
-
Revise and update testsForse già presa @jh-RLI l’ha presa 52 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
OpenEnergyPlatform/oemetadata#316 · 1 commento · 3 assegnatari ·
Tutte le issue di OpenEnergyPlatform/oemetadata
Issue simili
-
needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
flashinfer-ai/flashinfer#9803 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
oscarbol09/thesisforge#61 ·
-
api bug performance
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
oscarbol09/audiobard#159 ·
-
area:web p2 product:business triage:active type:bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 89/100
cuadrao-ai/argus#2328 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
nikhilb2/simple_invoicing#907 ·