[change] Releaser: removed chatGPT integration#661
Conversation
📝 WalkthroughWalkthroughThis pull request removes the AI-based changelog summarization from the releaser tool. The Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge This PR cleanly removes the obsolete ChatGPT integration from the releaser tool as described in #645. Changes verified:
All cleanup changes are appropriate and complete. Files Reviewed (5 files)
Reviewed by kimi-k2.5 · 254,284 tokens |
|
@nemesifier please review when you are free |
Test Import Error in ReleaserHello @BHARATH0153, There is an Fix: |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@openwisp_utils/releaser/release.py`:
- Line 225: Remove the orphaned test file
openwisp_utils/releaser/tests/test_ai_summary.py which imports the removed
function get_ai_summary from release.py; deleting this test will prevent pytest
ImportError during collection since get_ai_summary no longer exists in
openwisp_utils/releaser/release.py.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 8445c438-4549-44dc-9ac5-45580e279b4f
📒 Files selected for processing (1)
openwisp_utils/releaser/release.py
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
- GitHub Check: Python==3.13 | django~=5.2.0
- GitHub Check: Python==3.13 | django~=5.1.0
- GitHub Check: Python==3.12 | django~=5.2.0
- GitHub Check: Python==3.12 | django~=5.0.0
- GitHub Check: Python==3.12 | django~=4.2.0
- GitHub Check: Python==3.10 | django~=5.0.0
- GitHub Check: Python==3.12 | django~=5.1.0
- GitHub Check: Python==3.11 | django~=5.1.0
- GitHub Check: Python==3.11 | django~=4.2.0
- GitHub Check: Python==3.10 | django~=5.2.0
- GitHub Check: Python==3.11 | django~=5.0.0
- GitHub Check: Python==3.10 | django~=5.1.0
- GitHub Check: Python==3.10 | django~=4.2.0
- GitHub Check: Kilo Code Review
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{py,html,txt}
📄 CodeRabbit inference engine (Custom checks)
For Django pull requests, ensure all user-facing strings are marked as translatable using the Django i18n framework
Files:
openwisp_utils/releaser/release.py
🔇 Additional comments (1)
openwisp_utils/releaser/release.py (1)
225-225: LGTM — direct assignment correctly simplifies the flow.
changelog_content = formatted_block_rstcleanly replaces the formerget_ai_summary(...)call. The variable feeds into the header-stripping regex on the next line without any behavioural change.
a875df5 to
052bb31
Compare
Test Failure in Release ModuleHello @BHARATH0153,
|
052bb31 to
c73286e
Compare
QA and Commit Message FailuresHello @BHARATH0153,
Example of a correct commit message: |
The chatGPT integration in the releaser tool is obsolete now that the change-log bot has been added and it never worked reliably. - Removed the get_ai_summary function and its OpenAI API call - Removed OPENAI_CHATGPT_TOKEN environment variable usage - Removed unused requests and retryable_request imports - Removed the orphaned test_ai_summary.py test file - Updated test_release.py and conftest.py to remove AI-related mocks Closes openwisp#645
3d27af3 to
5f55d62
Compare
nemesifier
left a comment
There was a problem hiding this comment.
@BHARATH0153 thanks for this, a few things to note:
Your author is set to BHARATH0153 <bharath@example.com>, which looks fake.
Please coordinate with us in the dev chat before opening new PRs.
[change] Releaser: remove chatGPT integration.
`#661 <https://github.com/openwisp/openwisp-utils/pull/661>`_ |
changes
Removed the obsolete chatGPT integration from the releaser tool (openwisp_utils/releaser/release.py). The get_ai_summary function which called the OpenAI API to generate a human-readable changelog summary has been fully deleted. Along with it, the OPENAI_CHATGPT_TOKEN environment variable lookup and the get_ai_summary(...) call in main() were removed, replacing that line with a direct assignment changelog_content = formatted_block_rst. Since requests and retryable_request were only used inside that function, both imports were also cleaned up.
Checklist
Reference to Existing Issue
Closes #645