Skip to content
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

ArduinoOTA upload intermittent failure fixed #4657

Merged
merged 4 commits into from
Jan 31, 2024

Conversation

leifclaesson
Copy link
Contributor

@leifclaesson leifclaesson commented Dec 25, 2020

OTA upload often fails when client.read() return -1 and we subsequently try to write 4 gigabytes to flash. I fixed it by adding a signed comparison of the client.read() return value, and a continue. Completely solves the intermittent upload problem for me.

…ly try to write 4 gigabytes to flash. Fixed by signed comparison and retry.
@leifclaesson leifclaesson changed the title OTA upload often fails when client.read() return -1 and we subsequent… ArduinoOTA upload intermittent failure fixed Dec 25, 2020
@CLAassistant
Copy link

CLAassistant commented Apr 28, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ lucasssvaz
❌ Leif


Leif seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@me-no-dev me-no-dev added the Status: Test needed Issue needs testing label Nov 9, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Apr 16, 2022
@VojtechBartoska VojtechBartoska added Status: Review needed Issue or PR is awaiting review and removed Status: Test needed Issue needs testing labels Jan 24, 2024
Copy link
Contributor

github-actions bot commented Jan 24, 2024

Warnings
⚠️

Some issues found for the commit messages in this PR:

  • the commit message "Delay of 1ms already solves the issue":
    • summary looks empty
    • type/action looks empty
  • the commit message "OTA upload often fails when client.read() return -1 and we subsequently try to write 4 gigabytes to flash. Fixed by signed comparison and retry.":
    • summary should not end with a period (full stop)
    • summary looks empty
    • type/action looks empty
  • the commit message "Update libraries/ArduinoOTA/src/ArduinoOTA.cpp":
    • summary looks empty
    • type/action looks empty

Please fix these commit messages - here are some basic tips:

  • follow Conventional Commits style
  • correct format of commit message should be: <type/action>(<scope/component>): <summary>, for example fix(esp32): Fixed startup timeout issue
  • allowed types are: change,ci,docs,feat,fix,refactor,remove,revert,test
  • sufficiently descriptive message summary should be between 20 to 72 characters and start with upper case letter
  • avoid Jira references in commit messages (unavailable/irrelevant for our customers)

TIP: Install pre-commit hooks and run this check when committing (uses the Conventional Precommit Linter).

Messages
📖 You might consider squashing your 4 commits (simplifying branch history).

👋 Hello leifclaesson, we appreciate your contribution to this project!


Click to see more instructions ...


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.

Review and merge process you can expect ...


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 🚫 dangerJS against 13d61f5

@lucasssvaz
Copy link
Collaborator

@leifclaesson Could you please sign the CLA ?

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
@lucasssvaz lucasssvaz added Status: Pending Merge Pull Request is ready to be merged and removed Status: Review needed Issue or PR is awaiting review labels Jan 26, 2024
@me-no-dev me-no-dev merged commit 77b6450 into espressif:master Jan 31, 2024
38 of 39 checks passed
Jason2866 added a commit to Jason2866/arduino-esp32 that referenced this pull request Feb 5, 2024
me-no-dev pushed a commit that referenced this pull request Feb 7, 2024
* Backport: ArduinoOTA upload intermittent failure fixed

Backport of #4657

* Fix compile error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Merge Pull Request is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants