dave,
@dave@social.lightbeamapps.com avatar

I setup a runner for my Forgejo instance on our home server (an intel 2018 Mac mini).

My unit tests for my video pipeline check the output of the pipeline, against a previous output. Images snapshotted to png.

All the tests fail on the home server. They pass on my M2 Studio. The output images appear the same, no major fail in the pipeline.

My suspicion is this is a png encoding difference in the simulator between intel and apple silicon 🧐

butternut,

@dave such a thing definitely exists; I’ve run into it before. I’m having trouble finding a link right now, but yeah — image output will not be pixel/byte for pixel/byte comparable when using the default iOS image libraries across architectures.

dave,
@dave@social.lightbeamapps.com avatar

@butternut I’m reminded that it’s a simulator and not an emulator; so we can expect some of this sort of thing I guess !

TonyVladusich,
@TonyVladusich@mathstodon.xyz avatar

@dave

interesting. I have snapshot testing of png encoded images for Colors, and those tests always passed on both Intel and Silicon Macs, just fyi.

dave,
@dave@social.lightbeamapps.com avatar

@TonyVladusich interesting mate - if you have any produce-the-snapshot code and test-the-snapshot code you’d be willing to share I’d love a look 👀

TonyVladusich,
@TonyVladusich@mathstodon.xyz avatar

@dave

it's quite bespoke, so likely not useful to you (I built a whole library to handle image encoding, rescaling, colour decomposition, etc). a couple of key points after looking at it again though: (1) I use ground truth images to test against that I stored in my assets folder, so that baseline is always constant, and (2) I measure the identity of the decoded original images against my bespoke image pixel representation up to some tolerance. this is good enough for my test cases but might not be what you need.

dave,
@dave@social.lightbeamapps.com avatar

@TonyVladusich cheers dude, yup that’s not quite what I’m after but thank you 🙏

I’ll figure something later when I can get back into it 🫡

  • All
  • Subscribed
  • Moderated
  • Favorites
  • cochlearimplants
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines