The S&P 500 was up for an eighth straight week, while the Dow closed at a record.