Skip to content

Fix 19 failing tests, dependency conflicts, and broken package structure#43

Merged
TurboRx merged 3 commits intomainfrom
copilot/fix-bugs-and-improve-repo
Feb 8, 2026
Merged

Fix 19 failing tests, dependency conflicts, and broken package structure#43
TurboRx merged 3 commits intomainfrom
copilot/fix-bugs-and-improve-repo

Conversation

Copy link
Contributor

Copilot AI commented Feb 8, 2026

Systematic audit of the repository surfaced broken tests, dependency version conflicts, incorrect package exports, and stale Docker configuration.

Code/message mismatches causing test failures

  • core.py: Error messages in split_data, validate_data_for_training, and load_data didn't match test regex expectations (e.g. "not in columns""not found in columns", missing "class" in imbalance warning, missing "allowed" in size error)
  • core.py: split_data crashes on small datasets when stratification is impossible — added fallback to non-stratified split
  • core.py: load_data didn't catch pd.errors.EmptyDataError, letting a pandas exception leak instead of a clean ValueError
  • core.py: run_automl result dict missing model_type key expected by tests
  • utils.py: validate_input only checked type, not emptiness — added empty collection check
  • visualization.py: Error log messages used lowercase "failed" but tests asserted capitalized "Failed"; correlation warning said "Need >1" instead of "Not enough"

Broken package structure

  • evo_learn/utils.py: Imported cross_validate_model and save_model_metadata from root utils.py where they don't exist — immediate ImportError on import evo_learn
  • evo_learn/__init__.py: Missing exports for EvoLearnConfig and load_config

Dependency & config conflicts

  • requirements.txt pinned numpy>=1.24.0,<2.0.0 while pyproject.toml required numpy>=2.0.0 — irreconcilable conflict. Aligned to >=2.0.0,<3.0.0
  • pyproject.toml: mypy python_version = "3.14""3.13"
  • Dockerfile: python:3.14-slimpython:3.13-slim; stale mloptimizer/models path → models
  • docker-compose.yml: Same stale mloptimizer/models volume mount
  • cli.py: Version string claimed "3.14+" compat → corrected to "3.10+"

Test fix

  • test_core_enhanced.py: max_size_mb=0.001 was larger than the test CSV (~584 bytes) so ValueError was never raised. Changed to 0.0001.
Original prompt

Find any bugs, errors and issues and fix it and make the repo more powerful and advanced.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 8, 2026 04:30
…config

- Fix split_data error messages to match test expectations
- Add stratification fallback in split_data for small datasets
- Fix validate_data_for_training messages (class imbalance, all NaN, target column)
- Fix load_data error messages (size limit, non-CSV extension)
- Add EmptyDataError handling in load_data
- Add model_type key to run_automl results
- Add empty array validation in validate_input
- Fix visualization.py error message capitalization and wording
- Fix evo_learn/utils.py broken imports (remove non-existent functions)
- Fix numpy version conflict in requirements.txt
- Fix mypy python_version in pyproject.toml (3.14 -> 3.13)
- Fix Dockerfile Python version (3.14 -> 3.13) and stale mloptimizer path
- Fix docker-compose.yml stale mloptimizer volume paths
- Add EvoLearnConfig and load_config to evo_learn/__init__.py exports
- Fix CLI version string (3.14+ -> 3.10+)
- Fix test_core_enhanced.py size limit test (0.001 -> 0.0001)

Co-authored-by: TurboRx <187360786+TurboRx@users.noreply.github.com>
Co-authored-by: TurboRx <187360786+TurboRx@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix bugs and enhance repository functionality Fix 19 failing tests, dependency conflicts, and broken package structure Feb 8, 2026
Copilot AI requested a review from TurboRx February 8, 2026 04:35
@TurboRx TurboRx marked this pull request as ready for review February 8, 2026 04:47
@TurboRx TurboRx merged commit 621d2a0 into main Feb 8, 2026
7 of 24 checks passed
@TurboRx TurboRx deleted the copilot/fix-bugs-and-improve-repo branch February 8, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants