The Giants have come to an agreement with left-hander Madison Bumgarner on a five-year extension through 2017.