Closed samrum closed 7 months ago
@jnewb1 can you test this and merge?
[fastboot] Unpack error Error unpacking archive: TypeError: (intermediate value).getReader is not a function
attached the console log
@samrum can you update the test to catch this too?
Ah, oops, I'm missing a body
before the getReader call. I'll add an image worker test for unpackImage
which would catch that.
Fixed and updated the manifest tests to use the image worker for validating images
goes over 100% now
edit: it went up to like 500%, then went back to 100% and got stuck
blob.js:20 [blob] Download size mismatch {url: 'https://raw.githubusercontent.com/commaai/openpilot/master/system/hardware/tici/agnos.json', expected: 742, actual: 3158}
Sorry for the trouble all, I was avoiding testing the actual flashing because I didn't want to mess up my 3x, but actually went through and properly tested it this time.
For the incorrect progress issue: I pushed a fix for the way progress is calculated when unpacking the xz images since it should be using the actual image size instead of the compressed archive size. ~It won't be fully fixed until https://github.com/commaai/openpilot/pull/31154 is merged and we have the system alt size available to use for that image.~ It's fixed now!
For the system alt image getting stuck after unpacking:
It seems like the system alt image's final writable.close()
call is dying without throwing an error somehow. Looked into it a bit and not sure why it's happening. It could be related to how long the xz archive takes to decompress, but not sure.
For the agnos.json size mismatch: This seems like a preexisting issue on https://flash.comma.ai. It's comparing the content length header from the compressed GitHub response to the uncompressed blob.
Should be good now. Tested up to the actual flashing step and verified that the images grabbed for flashing match their expected sizes.
Seems like the fetch for the image failed for some reason. It's fine when I run them locally. Does it happen if you re-run the job?
It works, thanks! I'm planning on putting up some more bounties for this once #7 is done if you'd be interested, such as streaming the system image to require less memory (like openpilot does).
For #5
The manifest tests pass and the worker intializes on page load without error, but didn't test whether flashes actually go through.
Wasn't sure if the issue also meant to combine the download and unpacking steps, but that would be possible.