Didn’t Nazi Germany literally invade the USSR? And since you’re probably talking about the Molotov–Ribbentrop Pact, saying that it’s working with Hitler is missing so much nuance it’s basically incorrect.
Im glad that you’re a fellow Bolshevik, but please work towards shaking off the bourgeoisie propaganda you’ve been subjected to next time.