Varying spark, out of ideas

Interested to see what the fix for this is.
Today after work I'm planning to put the old distributor on and see what happens. I recall I only replaced it because the advance canister leaked and I couldn't source just the canister, and could only find a distributor from AutoZone in stock. Every test I ran on the new distributor has been fine though. I've had the varying spark problem for a while and can't recall if I had it before the new distributor.
The low compression does have me worried. Once I get it to idle fine I'll run another compression test. I may just need to have the engine rebuilt.