Skip to content

Make time limit sensitivity warnings less noisy below the time limit - #526

Open
gkreitz wants to merge 1 commit into
Kattis:masterfrom
gkreitz:tweak_warnings_below_time_limit
Open

gkreitz wants to merge 1 commit into
Kattis:masterfrom
gkreitz:tweak_warnings_below_time_limit

Conversation

@gkreitz

@gkreitz gkreitz commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Make warnings for submission behavior below time limit less spammy. Problemtools did the (IMHO) theoretically correct thing, and looks at what happens from time_limit / time_multiplier. This, however gets quite spammy as the default value in legacy is huge (5).

As this is just a heuristic warning, this PR adjusts the warning to look at what happens from time_limit / min(time_multiplier, time_safety_margin). I think that will still keep it useful in flagging submissions which are too close for comfort, while reducing warning fatigue (if your submission runs i 1.01s and the time limit is 5s, that was a pretty useless warning).

As suggested by @Matistjati - thanks!

@gkreitz

gkreitz commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

I guess github updated the ubuntu images, which there has been messaging about. Apparently, that blew up our CI.

@gkreitz gkreitz mentioned this pull request Nov 9, 2026
@gkreitz

gkreitz commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

OK, we're now past the initial failure. This will probably blow up on ocaml. The order of these PR:s will be a tad messy.

@gkreitz
gkreitz force-pushed the tweak_warnings_below_time_limit branch from 03526d7 to 328ebd8 Compare November 9, 2026 14:25

@Matistjati Matistjati left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change! This feels in line with the intent of time_safety_margin, and it has a much more sane default value.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants