Skip to content

Fix PyPI publish workflow, 100% coverage, aggregate option fix - #155

Merged
mohamadkhoshnava merged 2 commits into
mainfrom
fix/release-and-coverage
Oct 17, 2026
Merged

mohamadkhoshnava merged 2 commits into
mainfrom
fix/release-and-coverage

Conversation

@mohamadkhoshnava

Copy link
Copy Markdown
Member

The v1.0.0 release workflow failed: the pinned gh-action-pypi-publish rejects metadata version 2.5 (nothing was uploaded to PyPI).

  • Publish workflow now uses pypa/gh-action-pypi-publish@release/v1 and runs twine check first
  • Coverage back to 100% (line + branch), ~150 new tests
  • Real bug found by the new tests: aggregate options (default_max_time_ms, options(max_time_ms=..., allow_disk_use=...)) used the wrong option names
  • Minor: missing annotations hydrate as None, dangling references keep their id

After merge: re-create the v1.0.0 release from the new main commit to publish to PyPI.

🤖 Generated with Claude Code

- publish workflow: use pypa/gh-action-pypi-publish@release/v1 (the pinned
  old action rejected the package's metadata version 2.5), build + twine
  check first
- fix: aggregate options were passed as max_time_ms/allow_disk_use and
  rejected by MongoDB; now maxTimeMS/allowDiskUse/batchSize
- fix: missing annotation values hydrate as None; dangling references keep
  their id in fetch_related
- remove unreachable branches and dead helpers
- tests: ~150 new tests, line + branch coverage 100%; Django test settings
  centralised in tests/contrib/conftest.py (no pytest-django needed)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b9958ae) to head (3910555).

Additional details and impacted files
@@             Coverage Diff              @@
##             main      #155       +/-   ##
============================================
+ Coverage   83.87%   100.00%   +16.12%     
============================================
  Files          29        29               
  Lines        4819      4802       -17     
  Branches      849       838       -11     
============================================
+ Hits         4042      4802      +760     
+ Misses        512         0      -512     
+ Partials      265         0      -265     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ation)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mohamadkhoshnava
mohamadkhoshnava merged commit bedc070 into main Oct 17, 2026
15 checks passed
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