For more context, WWII was started as a partnership between Hitler and Stalin to partition Poland. [0]
Spreading this knowledge is now illegal in Putin's Russia. [1]
[0] https://en.wikipedia.org/wiki/Molotov%E2%80%93Ribbentrop_Pac...
[1] https://en.wikipedia.org/wiki/Law_Against_Rehabilitation_of_...
It would be naive to think that either ruler intended to honour this agreement in the long run. Both sides were probably gambling on when, not if, the agreement would be broken.