Skip to content

Commit

Permalink
debug segfaulting error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jul 28, 2023
1 parent 7e9daf8 commit 3dcb9f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
/opt/conda/bin/python -m pip install /opt/conda-libmamba-solver-src --no-deps -vvv &&
/opt/conda/bin/python -m pip install /opt/conda-libmamba-solver-src/dev/collect_upstream_conda_tests/ -vvv &&
source /opt/conda-src/dev/linux/bashrc.sh &&
/opt/conda/bin/python -m pytest /opt/conda-libmamba-solver-src -vv -m 'not slow'"
/opt/conda/bin/python -m pytest /opt/conda-libmamba-solver-src -vvs -m 'not slow'"
- name: Upload test results
if: always()
Expand Down Expand Up @@ -177,7 +177,8 @@ jobs:
working-directory: conda
run: |
eval "$(sudo ${CONDA_PREFIX}/bin/python -m conda init bash --dev)"
python -m pytest ${GITHUB_WORKSPACE}/conda-libmamba-solver -vv -m "not slow"
# python -m pytest ${GITHUB_WORKSPACE}/conda-libmamba-solver -vv -m "not slow"
python -m pytest ${GITHUB_WORKSPACE}/conda-libmamba-solver -vvs -m "not slow"
- name: Upload test results
if: always()
Expand Down Expand Up @@ -269,7 +270,7 @@ jobs:
run: |
CALL dev-init.bat
if errorlevel 1 exit 1
python -m pytest "%GITHUB_WORKSPACE%\conda-libmamba-solver" -vv -m "not slow" --timeout=600
python -m pytest "%GITHUB_WORKSPACE%\conda-libmamba-solver" -vvs -m "not slow" --timeout=600
if errorlevel 1 exit 1
- name: Upload test results
Expand Down
2 changes: 2 additions & 0 deletions conda_libmamba_solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@ def _prepare_problems_message(self):
# Anticipate and return simpler error earlier.
log.info("Failed to explain problems. Has constraint.")
return legacy_errors
if not context.json:
print(legacy_errors, file=sys.stderr)
try:
explained_errors = self.solver.explain_problems()
except Exception as exc:
Expand Down

0 comments on commit 3dcb9f4

Please sign in to comment.