e-mission / e-mission-docs

Repository for docs and issues. If you need help, please file an issue here. Public conversations are better for open source projects than private email.
https://e-mission.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
15 stars 34 forks source link

Test Failing Due to Conda Environment Error #1097

Open TeachMeTW opened 2 weeks ago

TeachMeTW commented 2 weeks ago

Summary

The GitHub CI test is failing due to a conda environment setup issue, unrelated to recent code changes. The error appears to be related to the environment teardown process and is not influenced by modifications in the core codebase. Investigating this may help improve CI reliability and avoid similar failures in the future.

Error Output

Run source setup/teardown_tests.sh
Removing environment from 

CondaError: Run 'conda init' before 'conda deactivate'

EnvironmentLocationNotFound: Not a conda environment: /usr/share/miniconda/envs/emissiontest

Additional Context

Recent changes were made in various Python files, but none were related to the teardown test script or the environment configuration. This issue may need a review of the setup/teardown procedures or conda initialization steps in the CI pipeline.

See: https://github.com/e-mission/e-mission-server/actions/runs/11698174822/job/32578051147?pr=990