Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
✅ PR preview is ready!
|
📈 Python coverage change detectedThe Python unit test coverage has increased by 0.3096%
🎉 Great job on improving test coverage! Coverage by files
|
| cli_util.print_to_cli("") | ||
|
|
||
|
|
||
| def _maybe_print_old_git_warning(main_script_path: str) -> None: |
There was a problem hiding this comment.
This is a very old check. I don't think we need it to support this anymore for an 8-year-old git version.
There was a problem hiding this comment.
Pull Request Overview
This PR modernizes git utilities by removing outdated version checks and making repository URL parsing more robust. The changes simplify git repository handling, improve debugging capabilities, and add comprehensive test coverage for URL extraction logic.
Key Changes
- Removes check for git versions older than 2.7.0 (which is >8 years old)
- Replaces separate regex patterns with a unified GitHub URL extractor function
- Adds debug logging for error scenarios in git operations
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/streamlit/git_util.py | Replaces regex patterns with unified URL extractor, adds debug logging, removes old git version constant |
| lib/streamlit/web/bootstrap.py | Removes old git version warning function and its usage |
| lib/streamlit/runtime/app_session.py | Adds debug logging for successful git information retrieval |
| lib/tests/streamlit/git_util_test.py | Adds comprehensive parametrized tests for URL extraction and new unit tests for git repo scenarios |
| lib/tests/streamlit/web/bootstrap_test.py | Removes test for old git version warning |
Describe your changes
Applies a couple of improvements to the git module:
Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.