וְהָיָה כָּל הַנּוֹתָר מִכָּל הַגּוֹיִם הַבָּאִים עַל יְרוּשָׁלָם, וְעָלוּ מִדֵי שָׁנָה בְשָׁנָה לְהִשְׁתַּחֲוֹת לְמֶלֶךְ ד' צְבָקוֹת וְלָחֹג אֶת חַג הַסֵּכּוֹת
All who remain from among the nations that came against Yerushalayim will ascend each year to bow before the King, Hashem, Master of Legions, and to celebrate the festival of Sukkos (Zechariah 14:16). This pasuk, read in the Haftorah on the first day of Sukkos, teaches that in the future the nations of the world will come to Yerushalayim to celebrate Sukkos.
Many mefarashim explain that the pasuk refers to nations that will survive in the days of Moshiach and come to Yerushalayim on Sukkos to bring korbanos. Rashi, however, cites the Gemara in Avodah Zarah (3a), which says that Hashem will give the nations the mitzvah of sukkah.
The Gemara says that in the future, Hashem will reward those who kept the Torah. The nations will argue that they too deserve reward, claiming that they would have fulfilled the mitzvos had they been commanded. Hashem will then give them the opportunity to perform the easy mitzvah of sukkah. The people of the nations will immediately build themselves sukkos. Hashem will then cause the sun to beat down with summer-like heat, and they will kick their sukkos and leave.
The Gemara appears to describe a one-time test that the nations will fail. Yet Rashi seems to understand that some worthy nations will indeed come every year to Yerushalayim and celebrate sukkos including fulfilling the mitzvah of sukkah.
This raises an interesting hilchesa l'Meshicha: Do halachos such as lavud and gud achis apply to the sukkah of a goy? Does the Shem Shamayim rest on such a sukkah? And may a Yid derive benefit from it?