8000 test: raise coverage to ≥90% and make CI coverage gate fatal at 90% by devin-ai-integration[bot] · Pull Request #106 · dominicusin/package-maximizer · GitHub
[go: up one dir, main page]

Skip to content

test: raise coverage to ≥90% and make CI coverage gate fatal at 90% - #106

Merged
dominicusin merged 2 commits into
mainfrom
devin/1791933137-coverage-90
Oct 13, 2026
Merged

dominicusin merged 2 commits into
mainfrom
devin/1791933137-coverage-90

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Summary

PROJECT_PLAN item: coverage ≥90% with a fatal gate.

  • .github/workflows/ci.yml: raised COV_FAIL_UNDER from 85 to 90. As before, the gate runs only on ubuntu-latest, where every optional solver backend can be installed. A drop below 90% now fails the job.
  • New tests/test_coverage_gaps.py (35 tests) covers the CLI (maximize/propose --explain/info/history/shell), EnhancedGreedySolver conflict strategies, MaximizerShell commands, Textual MaximizerApp actions, the web API (/api/v1/maximize|propose|analyze|compare, legacy /api/maximize, run_app() API-key branches) and the lazy PARSER_REGISTRY view.
  • Bug fix found while writing the tests: pressing the TUI "Dark Mode" button crashed the app with ColorParseError: failed to parse 'color:' as a color. The cause was toggle_dark_mode() assigning invalid strings like "color: $boost" to styles.background. It now toggles the dark-mode CSS class, which MaximizerApp.CSS already defines. Also removed an unused Footer import.

Coverage measured locally on this branch:

  • Python 3.10 / PuLP 3.x: 90.82% (894 passed, 2 skipped)
  • Python 3.12 / PuLP 4.0: 90.54% (889 passed, 5 skipped)

Checks

  • make test passes (pytest tests/ --cov=package_maximizer --cov-fail-under=90)
  • flake8 critical check passes; black/isort clean
  • docs updated if behavior changed (CI gate only; no user-facing docs affected)

Link to Devin session: https://app.devin.ai/sessions/7a195999dfd146d48fbc98f4bab6707a
Open in Devin Desktop: https://app.devin.ai/desktop/session/7a195999dfd146d48fbc98f4bab6707a?variant=devin
Requested by: @dominicusin

…dark-mode crash

Co-Authored-By: dominicusin <dominicusin@yahoo.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@coderabbitai
coderabbitai Bot commented Oct 13, 2026 •
Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93338c83-684e-435c-9f2a-015acacb1a09

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@read-the-docs-community
read-the-docs-community Bot commented Oct 13, 2026 •
Copy link
Copy Markdown

Documentation build overview

📚 package-maximizer | 🛠️ Build #35130336 | 📁 Comparing 2490ba5 against latest (1074692)

  🔍 Preview build  

1 file changed
± _modules/package_maximizer/tui/app.html

Co-Authored-By: dominicusin <dominicusin@yahoo.com>
@dominicusin
dominicusin merged commit b03fa64 into main Oct 13, 2026
17 checks passed
@dominicusin
dominicusin deleted the devin/1791933137-coverage-90 branch October 13, 2026 23:24
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.

1 participant

0