Walmart CEO Doug McMillon will retire next year, concluding a decade-long tenure marked by significant e-commerce growth and strategic policy shifts.