Nazi Germany and Soviet Russia were each’s biggest trading partners as well, just sayin’.
And they were allies. It was obviously very foolish for Nazi Germany to invade Russia. But Hitler had motives and interests that don’t exist between Turkey and Russia. Russia does not want to occupy Syria, they just want Assad to stay in power so that they have a port and Iran has a client state. Russia would be better off with an intact Turkey than an independent Kurdistan.