We got that sometimes when some build servers are running out of space.
Are you stillseeing this “Compile failed”?
But the inability to flash OTA is most the time due to blocking code in your application.
Can you next time try Safe Mode instead of reflashing Tinker?
After repeated, non descriptive errors I removed a bit of code that generated tones over an analog port. It was a LONG process of elimination, unfortunately.
Apparently Particle doesn’t like when I generate tones in the setup() function, despite having a long Mario Bros tones being played before.
In any case, I’m able to compile consistently now, and everything is working.
What’s safe mode? I haven’t seen any documentation about that.
You can have tone() in setup(), you just need to be aware that long actions might affect OTA and other cloud functions, so you should choose the correct SYSTEM_MODE() and maybe use SYSTEM_THREAD(ENABLED).
Update:
But I missed that you are (still) using a Core, which hasn’t got Safe Mode nor SYSTEM_THREAD(ENABLED)