If you’ve repaired the same roof three times, if the shingles are brittle across every slope, or if the decking is soft in several places, each repair is only moving the leak somewhere else. At that point replacement is the cheaper option over any sensible timeframe.