Open ximenabb opened 2 years ago
@jencastrodoesstuff for visibility. feel free to add additional info.
Update: attempted to try this again using the v5.4.3 from the Play Store. Still didn't work but here's a breakdown of repro steps:
Using 2 devices
Attempted p2p update but the Pixel 6 immediately displayed an error about being unable to check for updates. From the related Bugsnag error, @gmaclennan believes it's an issue with noderify + fastify:
ok great, that's the bug. I remember seeing something like this and I thought we had a fix. Because we are building with noderify, require does not have the property cache (because noderify injects its own implementation of require. Fastify is looking at this require.cache property to do something clever with plugins.
yeah this was patched but must be something new slipping through or the patch failed to apply: https://github.com/digidem/mapeo-mobile/blob/develop/src/backend/patches/avvio%2B7.2.2.patch
aha, warning in build logs:
npm WARN lifecycle [REDACTED]-node@1.0.0~postinstall: cannot run in wd [REDACTED]-node@1.0.0 patch-package (wd=/bitrise/src/nodejs-assets/backend)
Device had upgraded from 5.4.1 => 5.4.2 using the p2p upgrader. Seemed to work fine.
After opening device again, device downgraded back to 5.4.1:
https://files.slack.com/files-pri/T03NDM68K-F03D27297U7/screenshot_20220428-154626_mapeo.jpg
Description: Initial conversation with videos here : https://digidem.slack.com/archives/C0P5VH7MK/p1648048729427319 Unable to to P2P upgrade from 5.4.1 to 5.4.2.
Todo: Attempt to replicate the issue by following Jen's instruction. Share findings with the programs team. Important to note we should attempt to fix before Jen's trop first week of May for PUINAMUDT