Revert orjson to v3.8.3#88935
Conversation
The orjson package has a number of issues that result in segmentation faults in the versions 3.8.4 through 3.8.6 on musl based builds. Rather than incrementing up the versions, revert back to the last known good version (v3.8.3) until the outstanding issues are resolved.
e1485e2 to
0708f38
Compare
This part of the statement makes no sense, according to history, we have never shipped this version. We had it in dev, but never reached beta or stable. The cases of 3.8.6 seem rare to trigger and more of an edge case. I haven't seen new reports since we shipped that? Why do we need to revert now? Also, 3.8.7 was released today, doesn't that address it? (ps: CI is failing). |
I picked this version based on your suggestion in #87283, happy to recreate this PR for 3.8.1 instead. I have tested 3.8.3 and is working
I forgot to mention in the PR but I tested with 3.8.6 and saw 2 crashes in 24 hours with orjson being the cause. Using 3.8.3, this has been stable for over 48 hours.
I haven’t tested this version to confirm.
This appears to be related to unsigned package repositories rather than this change. Not sure how I can fix this. |
|
https://github.com/ijl/orjson/issues/348 seems to have a reproducible scenario. Are you able to test that scenario with 3.8.6 and 3.8.7 on your environment? |
I should be able to test this, I’ll update once I’ve completed it. |
|
I tested with 3.8.6 and I keep getting crashes every single time I use certain scripts. I've been pulling my hairs out trying to get this sorted out. Reverting to 3.8.4 fixed all the crashes for me and no more Segmentation Faults appeared |
|
I'v tested on raspi 64bit with the python:3.10-alpine3.16 container. Using the test from ill/orjson#348, I can reproduce the segmentation fault when using v3.8.6, with v3.8.7 there is no crash. Looking at the change between these versions it reverts, for non glibc/macOS builds, the changes that cause issues on musl targets. This was the aim of this PR so it should be safe to update to 3.8.7 which I can test. @epenet / @frenck - I can close this PR in preference for one that updates to v3.8.7. However, the wheel for orjson 3.8.7 is not published in https://wheels.home-assistant.io/musllinux/ despite it being merged in home-assistant/wheels#513. Are you able to help fix this? |
Proposed change
The orjson package has a number of issues that result in segmentation faults in the versions 3.8.4 through 3.8.6 on musl based builds. Rather than incrementing up the versions, revert back to the last known good version (v3.8.3) until the outstanding issues are resolved.
Recommend this change for the next release increment.
Type of change
upgradedowngradeAdditional information
fixes After Update to 2023.02 HomeAssistant restarts itself #87283
fixes Home Assistant keeps restarting after lates 2023.02 #87522
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: