Ban infinite loop
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
-
@tkuah started a discussion: (+1 comment) I wonder if we should ban
loopand enforce usage ofloop_untilwith a sensible limitcc @godfat
I agree. Nothing should be unbounded. We added
safe_ensure_uniqueinapp/models/application_record.rbto retry in finite times, and we can do the same forloop.We should probably ban
retryas well, and only allow it insafe_ensure_unique, and other base tools.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/63595 for an example where an infinite loop has been disastrous
Edited by 🤖 GitLab Bot 🤖