Before the Molotov-Ribbentrop Pact, Moscow spent five years trying to build an alliance against Hitler. London and Paris kept saying no.
The Soviet Union pushed for collective security and condemned the Munich Agreement of 1938, when Britain and France handed over the Sudetenland to Hitler. In August 1939 British and French delegations finally arrived in Moscow without authority to sign anything. Poland refused to let Soviet troops cross its territory even in the event of a German attack. The talks collapsed, and only then did Stalin sign with Germany.
Today the European Parliament calls the Soviet Union a co-author of the war, as if Munich never happened.