Conversation
Summary of ChangesHello @fffonion, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on adjusting the existing test suite, likely in preparation for or as part of integrating Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request aims to add cargo tests for CI. It modifies two files: one by commenting out an existing test module, and another by refactoring an integration test. My review focuses on these changes. I've pointed out that commenting out tests is an anti-pattern and suggest removing the code or using #[ignore]. I've also suggested simplifying the integration test structure by removing a redundant module wrapper, which is not idiomatic for integration tests in Rust.
There was a problem hiding this comment.
Pull request overview
This PR integrates cargo tests into the CI pipeline by consolidating existing workflow files and modifying the comic text detector test structure. The PR removes the separate lint.yml and build.yml workflow files in favor of a unified approach that includes running cargo test in the koharu-ml workspace.
Key changes:
- Restructured the comic text detector test to use a test module with tracing instrumentation
- Simplified the test by passing
falsedirectly toComicTextDetector::load()instead of managing device selection - Commented out the FFT roundtrip test in the lama module
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| koharu-ml/tests/comic_text_detector.rs | Refactored test into a proper test module structure with tracing instrumentation and simplified device handling |
| koharu-ml/src/lama/fft/mod.rs | Commented out the FFT roundtrip unit test |
| .github/workflows/lint.yml | Deleted workflow file (consolidated into main CI workflow) |
| .github/workflows/build.yml | Deleted workflow file (consolidated into main CI workflow) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@mayocream I've opened a new pull request, #90, to work on those changes. Once the pull request is ready, I'll request review from you. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 13 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
.github/workflows/release-packages.yaml:18
- The job name has been changed to Japanese characters ("マイクロソフト ウィンドウズ"). Using non-English characters in CI job names can cause issues with some CI/CD tools, reduces accessibility for international teams, and makes logs harder to search. Consider using English names like "Build - Windows" for better compatibility and maintainability.
.github/workflows/release-packages.yaml:74 - The job name has been changed to Japanese characters ("マックオーエス"). Using non-English characters in CI job names can cause issues with some CI/CD tools, reduces accessibility for international teams, and makes logs harder to search. Consider using English names like "Build - macOS" for better compatibility and maintainability.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 12 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Removed test job and concurrency settings from build workflow.
This workflow runs integration tests on pushes to the main branch and pull requests.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 13 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 13 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 13 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.