Open Jason2866 opened 2 days ago
Warnings | |
---|---|
:warning: |
**Some issues found for the commit messages in this PR:**
- the commit message `"Update Updater.cpp"`:
- *summary* looks empty
- *type/action* looks empty
- the commit message `"change disable logic"`:
- *summary* looks empty
- *type/action* looks empty
- the commit message `"guard crypt update"`:
- *summary* looks empty
- *type/action* looks empty
- the commit message `"guard update crypt"`:
- *summary* looks empty
- *type/action* looks empty
***
**Please fix these commit messages** - here are some basic tips:
- follow [Conventional Commits style](https://www.conventionalcommits.org/en/v1.0.0/)
- correct format of commit message should be: ` |
:warning: | The **target branch** for this Pull Request **must be the default branch** of the project (`master`). If you would like to add this feature to a different branch, please state this in the PR description and we will consider it. |
Messages | |
---|---|
:book: | You might consider squashing your 5 commits (simplifying branch history). |
π Hello Jason2866, we appreciate your contribution to this project!
This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.
DangerJS is triggered with each push
event to a Pull Request and modify the contents of this comment.
Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- Resolve all warnings (β οΈ ) before requesting a review from human reviewers - they will appreciate it.
- Addressing info messages (π) is strongly recommended; they're less critical but valuable.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.
We do welcome contributions in the form of bug reports, feature requests and pull requests.
1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.
Generated by :no_entry_sign: dangerJS against cdc7ca1328c0d8f377921b5a7e08662f1624cf8d
We can not accept this as-is.
UPDATE_CRYPT
in the sketch will not propagate the definition to Updater.cpp
β61 filesβββ61 suitesβββ5m 46s β±οΈ β21 testsββ21 β β0 π€β0 β 143 runsββ143 β β0 π€β0 β
Results for commit cdc7ca13.
:recycle: This comment has been updated with latest results.
1.) Why in #9893 it is done the same way? 2.) Logic changed to let crypto feature on, which is imho a bad default setting since nearly no one does crypto updates with Arduino. Waste of resources.
The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Memory | FLASH [bytes] | FLASH [%] | RAM [bytes] | RAM [%] | ||||
---|---|---|---|---|---|---|---|---|
Target | DEC | INC | DEC | INC | DEC | INC | DEC | INC |
ESP32P4 | 0 | 0 | 0.00 | 0.00 | 0 | 0 | 0.00 | 0.00 |
ESP32S3 | 0 | :bangbang: +20K | 0.00 | :bangbang: +5.25 | 0 | :bangbang: +3K | 0.00 | :bangbang: +9.85 |
ESP32S2 | 0 | :bangbang: +15K | 0.00 | :bangbang: +3.87 | 0 | :bangbang: +2K | 0.00 | :bangbang: +10.32 |
ESP32C3 | 0 | :bangbang: +25K | 0.00 | :bangbang: +3.64 | 0 | :bangbang: +2K | 0.00 | :bangbang: +12.88 |
ESP32C6 | 0 | :bangbang: +42K | 0.00 | :bangbang: +4.62 | 0 | :bangbang: +25K | 0.00 | :bangbang: +62.48 |
ESP32H2 | 0 | :bangbang: +9K | 0.00 | :bangbang: +2.79 | 0 | :warning: +1584 | 0.00 | :bangbang: +11.44 |
ESP32 | 0 | :bangbang: +20K | 0.00 | :bangbang: +4.09 | 0 | :warning: +1792 | 0.00 | :bangbang: +4.61 |
Target | ESP32P4 | ESP32S3 | ESP32S2 | ESP32C3 | ESP32C6 | ESP32H2 | ESP32 | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Example | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM |
Update/examples/AWS_S3_OTA_Update | - | - | :bangbang: +20K | :bangbang: +3K | :bangbang: +15K | :bangbang: +2K | :bangbang: +22K | :bangbang: +2K | :bangbang: +42K | :bangbang: +24K | - | - | :bangbang: +19K | :warning: +1784 |
Update/examples/HTTPS_OTA_Update | - | - | :bangbang: +19K | :bangbang: +3K | :bangbang: +15K | :bangbang: +2K | :bangbang: +25K | :warning: +1728 | :bangbang: +40K | :bangbang: +24K | - | - | :bangbang: +20K | :warning: +1792 |
Update/examples/HTTP_Client_AES_OTA_Update | - | - | :bangbang: +19K | :bangbang: +3K | :bangbang: +15K | :bangbang: +2K | :bangbang: +21K | :bangbang: +2K | :bangbang: +41K | :bangbang: +25K | - | - | :bangbang: +18K | :warning: +1780 |
Update/examples/HTTP_Server_AES_OTA_Update | - | - | :bangbang: +18K | :bangbang: +3K | :bangbang: +14K | :bangbang: +2K | :bangbang: +20K | :bangbang: +2K | :bangbang: +40K | :bangbang: +24K | - | - | :bangbang: +18K | :warning: +1792 |
Update/examples/OTAWebUpdater | - | - | :bangbang: +19K | :bangbang: +3K | :bangbang: +15K | :bangbang: +2K | :bangbang: +21K | :bangbang: +2K | :bangbang: +40K | :bangbang: +25K | - | - | :bangbang: +18K | :warning: +1768 |
Update/examples/SD_Update | - | - | :bangbang: +19K | :warning: +1896 | :bangbang: +13K | :warning: +1524 | :bangbang: +12K | :warning: +1644 | :bangbang: +13K | :warning: +1644 | :bangbang: +9K | :warning: +1584 | :bangbang: +14K | :warning: +972 |
The last commit change the behaviour to not change anything until the user sets the define. Adding every possible feature and enabling by default is questionable. The feature is added not long ago. Core 3.0.x has more relevant breaking changes....
This PR guards the crypto parts in library Update. By doing this flash space is saved, since most users don't use crypto updates. To disable crypto updates just adding
#define UPDATE_NOCRYPT
to the sketch needs to be done. (similar to https://github.com/espressif/arduino-esp32/pull/9893)