-
Notifications
You must be signed in to change notification settings - Fork 6
task3:machine lib #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
PR Review: Remove Board Definition FilesReview Progress:
Critical Issues Found
Files Deleted: 219 total files from Specific Problems1. Misleading DescriptionThe commit message "only keep esp32 flag .go" doesn't accurately describe the scope of changes. This removes entire platform support, not just board definitions. 2. Broken Build TagsFiles like //go:build !baremetal || atmega || esp32 || fe310 || k210 || nrf || rp2040 || sam || stm32These will cause build failures for non-ESP32 targets. 3. Missing Impact AssessmentNo explanation provided for:
4. Documentation Gaps
Recommendations🛑 STRONGLY RECOMMEND:
This change fundamentally alters the scope and utility of the library. Please ensure this aligns with project goals and user expectations. 👉 Want me to re-run this review? Just type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @luoliwoshang, 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 significantly refactors the emb/machine directory by eliminating board-specific Go files that do not pertain to ESP32. The change aims to reduce codebase complexity and maintenance overhead by narrowing the scope of supported hardware configurations to only ESP32.
Highlights
- Codebase Streamlining: Removed numerous board definition files from the
emb/machinedirectory, focusing the codebase on ESP32-related configurations. - Reduced Maintenance Overhead: Eliminated a large number of hardware-specific files, simplifying future maintenance and reducing the overall project footprint.
Using Gemini Code Assist
The 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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.
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
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request consists of a massive deletion of board support packages and machine-specific implementations for a wide range of architectures, including AVR, SAM, nRF, STM32, RP2040, and even ESP32 variants. The pull request title, 'only keep esp32 flag .go', is ambiguous and does not align with the removal of ESP32-based board files. The lack of a description makes it impossible to understand the intent behind these sweeping changes. This is a critical issue, as removing support for dozens of boards is a major breaking change that requires a thorough explanation and justification. I strongly recommend providing a detailed description of the motivation for this refactoring and the intended outcome.
| @@ -1,125 +0,0 @@ | |||
| //go:build adafruit_esp32_feather_v2 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -1,88 +0,0 @@ | |||
| //go:build pico | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -1,40 +0,0 @@ | |||
| //go:build arduino | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -1,96 +0,0 @@ | |||
| //go:build feather_m4 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -1,105 +0,0 @@ | |||
| //go:build feather_nrf52840 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -1,110 +0,0 @@ | |||
| //go:build bluepill | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -1,77 +0,0 @@ | |||
| //go:build nrf || nrf51 || nrf52 || nrf528xx || stm32f4 || stm32l4 || stm32wlx || atsamd21 || atsamd51 || atsame5x || rp2040 || rp2350 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file, providing a generic flash block device interface, is being removed. Its build constraint covers many of the architectures for which board support is also being removed. The removal of this fundamental interface, along with the board files, suggests a major refactoring or feature removal that is not documented in the PR description. This needs to be explained.
9516ac4 to
40f3d7e
Compare
7c0d035 to
aa5ba1e
Compare
problem 1
goplus/llgo#1292
The asm code can found this error code
error at
test.Sproblem 2
with goplus/llgo#1286
with
0Zcflagproblem3
temp remove