Repository navigation
fix(ota): EU package host, short-lived refusals, success by reported version - #2
Merged
virtitnerd merged 1 commit intoDec 4, 2026
Conversation
…version Found installing 02.45.78 on a Qrevo Edge 2 Pro (a226, EU region): - The EU cloud serves packages from cdn.awsde0.fds.api.mi-img.com, which was not in PACKAGE_HOSTS, so the install stopped with "The cloud's package address is not in the expected form". - A refusal before the robot was told anything stayed in the live status for 30 minutes and across restarts. The app's status poll got it back on every visit to the firmware page, showed "network unavailable" and offered no Update button. Such a refusal is now answered for 60 seconds only. - The a226 fetches the package in ranges and skips 3384 bytes (0-4095, 4096-54715079, 54718464-291835495), then installs it and reports the new version, yet the install was recorded as FAILED. The success rule now needs the robot to have fetched the package from this server at all; the version it reports afterwards already decides whether it installed.
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For upstream #255: fixes for the three issues in my test report (Qrevo Edge 2 Pro / a226, EU region, 02.43.62 → 02.45.78 through the iOS Update button). One commit on top of
b683974.What
cdn.awsde0.fds.api.mi-img.comis added toPACKAGE_HOSTS. The EU cloud serves the a226 package from there._preparefailures (package refused, fetch failed) are markeduntouchedin the live status. AfterUNTOUCHED_SECONDSthe status poll goes back to the cloud, which brings the Update button back. Before this change the error was replayed for 30 minutes and across restarts, and the app showed "network unavailable". The flag is saved, so a restart keeps it, and it is stripped from what the app gets. Failures after the robot was told keep the 30-minute window._failurenow checksfile_fetchedinstead ofpackage_fully_fetched. The a226 fetched0-4095,4096-54715079and54718464-291835495(a 3384-byte gap), then installed and reported 02.45.78. The existing check that the reported version matches the target still decides.package_fully_fetchedis still recorded in the result for diagnostics.Tests
test_the_eu_package_address_is_accepted: the real a226 address resolves to its MD5. The parametrized host test picks up the new host too.test_a_package_fetched_with_a_gap_that_installs_the_target_is_a_success, plustest_a_partly_fetched_package_that_leaves_the_old_version_is_not_a_successin place of the old partial-fetch test.test_a_refusal_before_the_robot_was_told_is_shown_briefly_and_survives_a_restart.uv run pytest -q: 1058 passed.On hardware, (1) and the gap from (3) are what happened on the a226. (2) and the new success rule are tested by unit tests only. The install itself succeeded with (1) applied, and the FAILED status from (3) was cleared by hand.