Calling the Molotov–Ribbentrop Pact an alliance between the Soviets and the Germans is a BIIIIIIIG stretch. At most the agreed to stay out of each others way for 5 years. And both were planing to attack the other at some point.