establish testing (at least smoke) for the notebooks on the hub instance
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- jupyter-notebook
- Ambito
- testing
Direzione di ricerca
Inizia con l’esecuzione registrata di pytest --nbmake dandi-notebooks/ e con l’approccio nbmake indicato. Ispeziona i notebook e i relativi file requirements.txt, quindi chiarisci come selezionare gli ambienti separati e i tipi di istanza dell’hub. Il lavoro sarà completo quando i test smoke dei notebook potranno essere eseguiti ripetutamente sugli ambienti hub previsti, con risultati chiaramente positivi o negativi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
with https://github.com/dandi/example-notebooks/issues/9 as the motivator, I think it would be important for us to ensure that notebooks we provide "work" on the hub.
- we need a way to test notebooks on an existing instance of the hub, so we could test new/updated/beta version of the hub
- testing could be just smoke run of the notebook to start with
- I found this article which introduces
nbmake- running
pytest --nbmake dandi-notebooks/now, will report below the "results"
- running
- to complete in reasonable time we might want to allow to run them in parallel (might not do parallel on small instance)
- we should be able to trigger "testing" all notebooks for a specific type of the hub instance (is that "scriptable" @satra to start a specific instance and interact with that environment)?
- similarly to https://github.com/dandi/dandi-api-webshots/ and https://github.com/datalad/datalad-extensions/ we could have a repository (e.g. example-notebooks-dashboard) which would contain the README.md which in a table would list which notebooks are ok or failing on which type of hub instance.
current as of 20211027 state of things
jovyan@jupyter-yarikoptic:~$ pytest --nbmake dandi-notebooks/
===================================== test session starts =====================================
platform linux -- Python 3.9.6, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/jovyan
plugins: nbmake-0.10, anyio-3.3.0
collected 9 items
dandi-notebooks/000004_demo_analysis.ipynb F [ 11%]
dandi-notebooks/NWBWidget-demo.ipynb F [ 22%]
dandi-notebooks/Untitled.ipynb . [ 33%]
dandi-notebooks/000055/BruntonLab/peterson21/Fig_coarse_labels.ipynb F [ 44%]
dandi-notebooks/000055/BruntonLab/peterson21/Fig_pow_spectra.ipynb F [ 55%]
dandi-notebooks/000055/BruntonLab/peterson21/Table_coarse_labels.ipynb F [ 66%]
dandi-notebooks/000055/BruntonLab/peterson21/Table_part_characteristics.ipynb F [ 77%]
dandi-notebooks/000055/BruntonLab/peterson21/dashboard.ipynb . [ 88%]
dandi-notebooks/cosyne_2020_tutorial/NWB_tutorial_2019.ipynb . [100%]
edit 1:
- as @bendichter pointed out - some notebooks need environment with nwb extension(s) installed. So we can't just run them all in the same environment. We might need to annotate and then group and run in specific environments
- some notebooks have their own
pip install -r requirements.txtwhich alters the environment thus making order of execution matter etc. Not yet sure what to do about that, besides running each test in a new "clone" of the test environment
- Lingua principale
- Jupyter Notebook
- Stelle
- 9
- Fork
- 20
- Merge medio
- 1h 56m
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 dandi/example-notebooks
-
Mint DOIs for notebook groups from the image workflowForse di nuovo libera @asmacdo l’ha presa 56 giorni fa e non c’è nessuna pull request aperta. Aperta
dandi/example-notebooks#202 · 7 commenti · 3 assegnatari ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
dandi/example-notebooks#179 ·
-
bwm_usage_notebook.ipynb fails on colabForse già presa @bendichter l’ha presa 109 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
dandi/example-notebooks#176 · 2 commenti ·
-
weekly-notebook-sweep
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
dandi/example-notebooks#167 · 21 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
dandi/example-notebooks#134 ·
Tutte le issue di dandi/example-notebooks
Issue simili
-
needs-operator
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
keyxmakerx/Chronicle#1456 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
aosama/astronomical#1318 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
review-bot
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno