it's not like stalin ddin't want the alliance. he supposedly was quite surprised by the attack. communism and nazism have quite a few things in common, but hitler was very anti bolshevism/jewish revolution, so his sole goal was to eradicate that from earth.
Poland