I'm not sure how much about purges was known in the West at the time (USSR was pretty well cut-off from the rest of the world), but by 1940, the West already knew about the Katyń Massacre. I think it was clear for leadership there that they're allying with one monster to defeat another one, and they could very well do the same thing in reverse order if circumstances called for that. It was just that, at the time, it was Hitler who was bombing London and not Stalin, so he had to go first.
To be clear, I do not blame them. It was right choice. I am reacting to what people wrote on various discussion forums including HN now.
I remember reading in history book about Germany that news about purges affected situation in there - people seen communists and bigger threat and nazi as protection against communists more. So, at least something was known.
But here, I am referring to popular discussions where people really liked to ignore that Stalin was in alliance and that purges and such happened already before WWII. Claiming that WWII was real world example of clear good aliance vs clear bad. I mean, Germany was clear bad sure. And East and Russia were victim, absolutely. And also, German behavior in East was more brutal then their behavior in West - the colonization and quest for living space were different then quest for dominance.
Nevertheless, it the whole good vs bad framing here is kinda funny, cause one of good guys is Stalin.