I pushed it up nevertheless and have my GH workflow failing with:
Run if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi
if [ -n "$(nbdev_diff_nbs)" ]; then echo -e "!!! Detected difference between the notebooks and the library"; false; fi
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.8.13/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.13/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.13/x64/lib
!!! Detected difference between the notebooks and the library
Error: Process completed with exit code 1.
My repo is public, if somebody wants to have a look:
and it didn’t make the problem go away. Shouldn’t the command above update nbdev dependencies as well? How would I know which ones (such as fastcore ghapi execnb nbdev) to update in the future?
A regular pip install will grab the latest versions from pypi, and I believe if you have a minimum version that satisfies the dependency spec it wont update those dependencies. The command I showed above forces you to use everything at the bleeding edge, which is recommended as we are rapidly squashing bugs and fixing things at the moment.
When things slow down a bit more, I don’t anticipate you would have to install everything from git – but for right now, I recommend it
Updating the tools as instructed fixed my local nbdev_clean issue. I pushed the changes again, and my workflow still fails with above error message. Not sure what I should check now?
Note that nbdev_test fails with n_workers>1 due to my code using dask.distributed. with n_workers==1 it runs through, but that doesn’t produce any changes that could be missing to explain the error in the workflow. So I’m at a loss what to look at.
I was thinking another issue is that i had an old nbdev v2 workflow on GH? So I’m in the process of updating it, but it’s not so easy as my install is a bit more difficult.
On a side note, I wasted a day on the fact that Github workflow booleans are not behaving as real booleans