Closed vortigont closed 1 month ago
Warnings | |
---|---|
:warning: |
**Some issues found for the commit messages in this PR:**
- the commit message `"[Network] deprecate NetworkEvents::removeEvent() for std::function callbacks"`:
- footer's lines must not be longer than 100 characters
- *summary* looks empty
- *type/action* looks empty
- the commit message `"[Network] hide event task under private member of NetworkEvents class"`:
- *summary* looks empty
- *type/action* looks empty
- the commit message `"lib Network: add cpp syntax to structs"`:
- *summary* looks empty
- *type/action* looks empty
- the commit message `"refactor(NetworkEvents) add (optional) mutex lock for container operations"`:
- body's lines must not be longer than 100 characters
- *summary* looks empty
- *type/action* looks empty
- the commit message `"refactor(NetworkEvents) code polishing and comments"`:
- body's lines must not be longer than 100 characters
- *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: | Please consider squashing your 8 commits (simplifying branch history). |
👋 Hello vortigont, 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.
- 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 ab1d55ddb026cfa449502913aed9b38444d0fcf0
56 files 56 suites 4m 11s ⏱️ 21 tests 21 ✅ 0 💤 0 ❌ 134 runs 134 ✅ 0 💤 0 ❌
Results for commit ab1d55dd.
:recycle: This comment has been updated with latest results.
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 |
ESP32S3 | :green_heart: -32 | :warning: +556 | 0.00 | :warning: +0.06 | :green_heart: -16 | 0 | :green_heart: -0.07 | 0.00 |
ESP32S2 | :green_heart: -36 | :warning: +544 | 0.00 | :warning: +0.06 | :green_heart: -16 | 0 | :green_heart: -0.04 | 0.00 |
ESP32C3 | 0 | :warning: +624 | 0.00 | :warning: +0.06 | 0 | :warning: +16 | 0.00 | :warning: +0.05 |
ESP32C6 | 0 | :warning: +624 | 0.00 | :warning: +0.06 | 0 | :warning: +16 | 0.00 | :warning: +0.04 |
ESP32H2 | 0 | :warning: +116 | 0.00 | :warning: +0.02 | 0 | 0 | 0.00 | 0.00 |
ESP32 | :green_heart: -32 | :warning: +568 | :green_heart: -0.01 | :warning: +0.06 | :green_heart: -16 | 0 | :green_heart: -0.04 | 0.00 |
Target | ESP32S3 | ESP32S2 | ESP32C3 | ESP32C6 | ESP32H2 | ESP32 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Example | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM |
Ethernet/examples/ETH_W5500_Arduino_SPI | :green_heart: -20 | :green_heart: -16 | :green_heart: -4 | 0 | :warning: +104 | 0 | :warning: +98 | 0 | :warning: +74 | 0 | :green_heart: -32 | 0 |
Ethernet/examples/ETH_W5500_IDF_SPI | :green_heart: -16 | :green_heart: -16 | 0 | 0 | :warning: +104 | 0 | :warning: +98 | 0 | :warning: +74 | 0 | :green_heart: -32 | 0 |
Ethernet/examples/ETH_WIFI_BRIDGE | :warning: +492 | 0 | :warning: +512 | 0 | :warning: +614 | 0 | :warning: +622 | 0 | - | - | :warning: +500 | 0 |
NetworkClientSecure/examples/WiFiClientInsecure | :warning: +200 | 0 | :warning: +200 | 0 | :warning: +294 | :warning: +16 | :warning: +288 | 0 | - | - | :warning: +204 | 0 |
NetworkClientSecure/examples/WiFiClientPSK | :warning: +188 | :green_heart: -16 | :warning: +200 | 0 | :warning: +284 | 0 | :warning: +282 | 0 | - | - | :warning: +208 | 0 |
NetworkClientSecure/examples/WiFiClientSecure | :warning: +192 | 0 | :warning: +200 | 0 | :warning: +282 | 0 | :warning: +280 | 0 | - | - | :warning: +208 | 0 |
NetworkClientSecure/examples/WiFiClientSecureEnterprise | :warning: +208 | 0 | :warning: +200 | 0 | :warning: +278 | 0 | :warning: +280 | 0 | - | - | :warning: +192 | 0 |
NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade | :warning: +204 | 0 | :warning: +204 | 0 | :warning: +294 | :warning: +16 | :warning: +288 | 0 | - | - | :warning: +188 | 0 |
NetworkClientSecure/examples/WiFiClientShowPeerCredentials | :warning: +208 | 0 | :warning: +196 | 0 | :warning: +284 | 0 | :warning: +298 | 0 | - | - | :warning: +180 | 0 |
NetworkClientSecure/examples/WiFiClientTrustOnFirstUse | :warning: +188 | 0 | :warning: +212 | 0 | :warning: +296 | :warning: +16 | :warning: +288 | :warning: +16 | - | - | :warning: +196 | 0 |
PPP/examples/PPP_Basic | :warning: +32 | :green_heart: -16 | :warning: +40 | 0 | :warning: +118 | 0 | :warning: +114 | 0 | :warning: +116 | 0 | :warning: +36 | 0 |
PPP/examples/PPP_WIFI_BRIDGE | :warning: +556 | 0 | :warning: +544 | 0 | :warning: +624 | 0 | :warning: +624 | 0 | - | - | :warning: +568 | 0 |
WebServer/examples/AdvancedWebServer | :warning: +264 | 0 | :warning: +252 | 0 | :warning: +352 | :warning: +16 | :warning: +356 | 0 | - | - | :warning: +264 | 0 |
WebServer/examples/FSBrowser | :warning: +240 | 0 | :warning: +260 | 0 | :warning: +346 | 0 | :warning: +348 | 0 | - | - | :warning: +236 | :green_heart: -16 |
WebServer/examples/Filters | :warning: +268 | 0 | :warning: +260 | 0 | :warning: +352 | :warning: +16 | :warning: +356 | 0 | - | - | :warning: +256 | 0 |
WebServer/examples/HelloServer | :warning: +268 | 0 | :warning: +252 | 0 | :warning: +352 | :warning: +16 | :warning: +356 | 0 | - | - | :warning: +252 | 0 |
WebServer/examples/HttpAdvancedAuth | :warning: +236 | :green_heart: -16 | :warning: +272 | 0 | :warning: +332 | 0 | :warning: +344 | 0 | - | - | :warning: +260 | 0 |
WebServer/examples/HttpAuthCallback | :warning: +260 | 0 | :warning: +272 | 0 | :warning: +356 | 0 | :warning: +356 | 0 | - | - | :warning: +256 | 0 |
WebServer/examples/HttpAuthCallbackInline | :warning: +256 | 0 | :warning: +268 | 0 | :warning: +352 | 0 | :warning: +352 | 0 | - | - | :warning: +260 | 0 |
WebServer/examples/HttpBasicAuth | :warning: +260 | 0 | :warning: +276 | 0 | :warning: +350 | 0 | :warning: +352 | 0 | - | - | :warning: +264 | 0 |
WebServer/examples/HttpBasicAuthSHA1 | :warning: +268 | 0 | :warning: +256 | 0 | :warning: +352 | 0 | :warning: +350 | 0 | - | - | :warning: +276 | 0 |
WebServer/examples/HttpBasicAuthSHA1orBearerToken | :warning: +252 | 0 | :warning: +268 | 0 | :warning: +352 | :warning: +16 | :warning: +352 | :warning: +16 | - | - | :warning: +252 | 0 |
WebServer/examples/MultiHomedServers | :warning: +248 | 0 | :warning: +244 | :green_heart: -16 | :warning: +352 | 0 | :warning: +354 | 0 | - | - | :warning: +244 | 0 |
WebServer/examples/PathArgServer | :warning: +36 | 0 | :warning: +16 | 0 | :warning: +128 | 0 | :warning: +136 | 0 | - | - | :warning: +24 | 0 |
WebServer/examples/SDWebServer | :warning: +248 | :green_heart: -16 | :warning: +240 | 0 | :warning: +346 | 0 | :warning: +348 | 0 | - | - | :warning: +236 | :green_heart: -16 |
WebServer/examples/SimpleAuthentification | :warning: +244 | 0 | :warning: +248 | 0 | :warning: +354 | 0 | :warning: +356 | :warning: +16 | - | - | :warning: +260 | 0 |
WebServer/examples/UploadHugeFile | :warning: +40 | 0 | :warning: +40 | 0 | :warning: +128 | 0 | :warning: +136 | 0 | - | - | :warning: +24 | 0 |
WebServer/examples/WebServer | :warning: +272 | 0 | :warning: +252 | 0 | :warning: +346 | 0 | :warning: +348 | 0 | - | - | :warning: +252 | 0 |
WebServer/examples/WebUpdate | :warning: +256 | 0 | :warning: +252 | 0 | :warning: +356 | 0 | :warning: +356 | 0 | - | - | :warning: +248 | 0 |
WiFi/examples/FTM/FTM_Initiator | :warning: +48 | 0 | :warning: +40 | 0 | :warning: +144 | 0 | :warning: +152 | 0 | - | - | :warning: +48 | :green_heart: -16 |
WiFi/examples/FTM/FTM_Responder | :warning: +176 | 0 | :warning: +160 | 0 | :warning: +304 | 0 | :warning: +308 | 0 | - | - | :warning: +196 | 0 |
WiFi/examples/SimpleWiFiServer | :warning: +204 | 0 | :warning: +200 | 0 | :warning: +292 | :warning: +16 | :warning: +294 | 0 | - | - | :warning: +192 | 0 |
WiFi/examples/WPS | :green_heart: -16 | 0 | :warning: +16 | 0 | :warning: +118 | 0 | :warning: +128 | 0 | - | - | :green_heart: -28 | 0 |
WiFi/examples/WiFiAccessPoint | :warning: +204 | 0 | :warning: +180 | 0 | :warning: +292 | :warning: +16 | :warning: +294 | 0 | - | - | :warning: +188 | 0 |
WiFi/examples/WiFiBlueToothSwitch | :warning: +284 | 0 | - | - | :warning: +428 | 0 | :warning: +430 | 0 | - | - | :warning: +316 | 0 |
WiFi/examples/WiFiClient | :warning: +196 | 0 | :warning: +204 | 0 | :warning: +274 | 0 | :warning: +280 | 0 | - | - | :warning: +196 | 0 |
WiFi/examples/WiFiClientBasic | :warning: +208 | 0 | :warning: +204 | 0 | :warning: +298 | :warning: +16 | :warning: +292 | 0 | - | - | :warning: +212 | 0 |
WiFi/examples/WiFiClientConnect | :warning: +216 | 0 | :warning: +168 | 0 | :warning: +302 | 0 | :warning: +304 | 0 | - | - | :warning: +200 | 0 |
WiFi/examples/WiFiClientEnterprise | :warning: +204 | 0 | :warning: +212 | 0 | :warning: +274 | 0 | :warning: +290 | 0 | - | - | :warning: +208 | 0 |
WiFi/examples/WiFiClientEvents | :warning: +172 | 0 | :warning: +168 | 0 | :warning: +338 | 0 | :warning: +350 | 0 | - | - | :warning: +176 | 0 |
WiFi/examples/WiFiClientStaticIP | :warning: +192 | 0 | :warning: +220 | 0 | :warning: +296 | 0 | :warning: +290 | 0 | - | - | :warning: +196 | 0 |
WiFi/examples/WiFiExtender | :green_heart: -32 | 0 | :green_heart: -36 | 0 | :warning: +136 | 0 | :warning: +138 | 0 | - | - | :green_heart: -12 | 0 |
WiFi/examples/WiFiIPv6 | :warning: +312 | 0 | :warning: +308 | 0 | :warning: +432 | 0 | :warning: +442 | 0 | - | - | :warning: +272 | 0 |
WiFi/examples/WiFiMulti | :warning: +176 | 0 | :warning: +172 | 0 | :warning: +298 | :warning: +16 | :warning: +292 | 0 | - | - | :warning: +200 | 0 |
WiFi/examples/WiFiMultiAdvanced | :warning: +208 | 0 | :warning: +200 | 0 | :warning: +278 | 0 | :warning: +292 | 0 | - | - | :warning: +176 | 0 |
WiFi/examples/WiFiScan | :warning: +172 | 0 | :warning: +196 | 0 | :warning: +304 | 0 | :warning: +300 | 0 | - | - | :warning: +196 | 0 |
WiFi/examples/WiFiScanAsync | :warning: +184 | 0 | :warning: +188 | 0 | :warning: +298 | 0 | :warning: +292 | 0 | - | - | :warning: +196 | 0 |
WiFi/examples/WiFiScanDualAntenna | :warning: +176 | 0 | :warning: +172 | 0 | :warning: +298 | 0 | :warning: +304 | 0 | - | - | :warning: +196 | 0 |
WiFi/examples/WiFiScanTime | :warning: +164 | 0 | :warning: +196 | 0 | :warning: +300 | 0 | :warning: +294 | 0 | - | - | :warning: +196 | 0 |
WiFi/examples/WiFiSmartConfig | :warning: +216 | 0 | :warning: +204 | 0 | :warning: +300 | 0 | :warning: +306 | 0 | - | - | :warning: +192 | 0 |
WiFi/examples/WiFiTelnetToSerial | :warning: +204 | 0 | :warning: +168 | 0 | :warning: +298 | 0 | :warning: +300 | 0 | - | - | :warning: +200 | 0 |
WiFi/examples/WiFiUDPClient | :warning: +296 | 0 | :warning: +288 | 0 | :warning: +418 | 0 | :warning: +428 | 0 | - | - | :warning: +268 | 0 |
Ethernet/examples/ETH_LAN8720 | - | - | - | - | - | - | - | - | - | - | :warning: +228 | 0 |
Ethernet/examples/ETH_TLK110 | - | - | - | - | - | - | - | - | - | - | :warning: +228 | 0 |
There are some spelling errors: https://github.com/espressif/arduino-esp32/actions/runs/11498055926/job/32003053726?pr=10376#step:8:25
A refactoring for
NetworkEvents
class This fixes #10365 issue and supersedes #10337, it removes pointer comparison checks for function pointer handlers but adds more safety to the code working with callback handlers container.std::function
pointer, it does not work as expected for lambdasNetworkEvents::removeEvent(NetworkEventFuncCb)
as deprecated in favor of removing by callback's idNetworkEvents::onEvent
remove checking for duplicate event handler, this does not work for lambdas tooNetworkEvents::find
methods as unnecessary in favor of usingstd
iteratorsNetworkEvents
classNetworkEventCbList_t
as a cpp struct with constructor, allows usingstd::vector.emplace()
when adding new items to containerNetworkEvents::remove()
calls to use erase-remove idiom forstd::vector
NetworkEvents
classarduino_event_id_t
to make events indexing consistent for SOCs with/without WiFi also leave some index gaps to minimize renumbering on adding new eventsNetworkEvents::
methodsNetworkEvents::eventName()
as static, that could be used without creating class scopepostEvent()