Open dfguerrerom opened 1 year ago
At this point don't you think it would make more sense to sit 2-3 days and set up some tests in the Jenkins pipeline ?
At this point don't you think it would make more sense to sit 2-3 days and set up some tests in the Jenkins pipeline ?
We definitely have to create some type of test to avoid doing this in the future, but I think the situation is a bit complex now because:
sepal_ui==2.6.4
will require install geemap
, geemap
has a earhengine-api
pinned version >=
to the one of the openforis fork and so, it will shadow it... meaning that we have to upgrade to a newer sepal_ui
version that doesn't require geemap
... doing this process require to test the whole tool and it's a bit slow.Another issue, some modules required rasterio==1.1.5
, that version is incompatible with GDAL==3.6.4
, meaning that we have to manually change to a one that works and check that everything works.
@cdanielw, @lpaolini (and just for curiosity @12rambau ) We should find a way to make the apps fully isolated in their own environment, using their own C Libraries, so we won't end in situations like this.
conda
can manage a separate copy of the GDAL library for example, but we would need to investigate the pros/cons
With the latest sepal Ubuntu release, we'll have to make sure all our apps are working properly in the test server. I'm creating this issue to track the progress of this process, and it's open to anyone who wants to help on the testing.
The steps /objectives are:
SEPAL_UI
** I'm still not knowing why it doesn't work with only
pip install -e .
as on my local installation... there must be something that doesn't allow this behavior... after losing too many time I could make it work with the extra args, but not the "compat" previous one... It happens that even though the editable.pth
is located in.local/lib/python3.10/site-packages
it will still preferring the not editable... I think this deserves to open an issue insetuptools
because I couldn't go to the root of the problem.Repository to test
git clone $repository_to_test
cd $folder_to_respository_to_test
edit requirements.txt file
gdal
andpyproj
, these packages are installed by themodule_venv
script and cannot be downgraded to an older version.Create local module virtual environment and test the app
module_venv
# This bin file will create the virtual environment with the currentTest that the environment was successfully created and fix any issues, I know for some of them we'll have issues... specially for the packages that requires gdal, or scikit-learn, numpy or so pinned versions.
[ ] git@github.com:sepal-contrib/alert_module.git
[ ] git@github.com:sepal-contrib/alos_mosaics.git
[ ] git@github.com:sepal-contrib/basin-rivers.git
[ ] git@github.com:sepal-contrib/bfast-explorer.git
[ ] git@github.com:sepal-contrib/bfastspatial.git
[ ] git@github.com:sepal-contrib/bfast_gpu.git
[ ] git@github.com:sepal-contrib/clip-time-series.git
[ ] git@github.com:sepal-contrib/coverage_analysis.git
[ ] git@github.com:sepal-contrib/cumsum_change.git
[ ] git@github.com:sepal-contrib/damage_proxy_maps.git
[ ] git@github.com:sepal-contrib/eSBAE_notebooks.git
[ ] git@github.com:sepal-contrib/fcdm.git
[ ] git@github.com:sepal-contrib/forest_at_risk.git
[ ] git@github.com:sepal-contrib/geemap.git
[ ] git@github.com:sepal-contrib/gee_source.git
[ ] git@github.com:sepal-contrib/gfc_wrapper_python.git
[ ] git@github.com:sepal-contrib/glad_alerts.git
[ ] git@github.com:sepal-contrib/goe4lup.git
[ ] git@github.com:sepal-contrib/gwb.git
[ ] git@github.com:sepal-contrib/mspa-analysis.git
[ ] git@github.com:sepal-contrib/planet-order.git
[ ] git@github.com:sepal-contrib/planet_active_fires_explorer.git
[ ] git@github.com:sepal-contrib/reclassify.git
[ ] git@github.com:sepal-contrib/sdg_15.3.1.git
[ ] git@github.com:sepal-contrib/se.plan.git
[ ] git@github.com:sepal-contrib/sepal-geemap.git
[ ] git@github.com:sepal-contrib/sepal-leafmap.git
[ ] git@github.com:sepal-contrib/sepal-sbae.git
[ ] git@github.com:sepal-contrib/sepal_mgci.git