Zulip Chat Archive
Stream: mathlib4
Topic: !bench summary bug
Damiano Testa (Nov 07 2024 at 07:38):
I wrote the script to summarise the !bench
output: I'll fix the issue, but won't get to it until much later today or, more likely, tomorrow.
Damiano Testa (Nov 07 2024 at 07:38):
It should be relatively straightforward, though, since if I remember correctly, all the formatting is done separately.
Damiano Testa (Nov 07 2024 at 07:40):
E.g., it should be just changing
https://github.com/leanprover-community/mathlib4/blob/master/scripts%2Fbench_summary.lean#L52
Damiano Testa (Nov 07 2024 at 08:51):
Are all percentages wrong by a factor of 10, or just the build ones?
Daniel Weber (Nov 07 2024 at 12:24):
If you import Mathlib.Data.String.Defs
than you can add let decDigs := (toString decDigs).leftpad (c := '0') 2
. However, this doesn't round to two digits, it floors instead. I think this kind of string formatting should be in batteries/core, not handled in this script
Michael Rothgang (Nov 07 2024 at 12:54):
(deleted)
Damiano Testa (Nov 07 2024 at 16:53):
I think that I identified the bug. The code discarded a "leading 0": it correctly computed the percentage to be 0.
followed by 8
but printed 8
as a single digit number, instead of padding with 0
so that it was a 2-digit number that represented 8
!
Damiano Testa (Nov 07 2024 at 16:53):
Damiano Testa (Nov 07 2024 at 16:53):
I also made the script a little more verbose, reporting command-line analogues of the commands that the lean script executes, since this might be useful for debugging and added some comments. Also, I took care of deprecations.
Damiano Testa (Nov 07 2024 at 16:53):
Let me know if you prefer to have a PR with just the fix and then a second one with these extra improvements.
Notification Bot (Nov 10 2024 at 16:39):
A message was moved here from #mathlib4 > typeclass inference in linarith by Heather Macbeth.
Junyan Xu (Dec 04 2024 at 00:11):
I've stopped seeing summaries in recent !bench calls.
Did the bot owner run out of quota or something?
Damiano Testa (Dec 04 2024 at 14:24):
I also noticed that, but did not get a chance to investigate.
Junyan Xu (Dec 05 2024 at 10:09):
Apparently the bot stopped even reacting to !bench
now.
Michael Rothgang (Dec 05 2024 at 10:25):
#19733 was another instance.
Michael Rothgang (Dec 05 2024 at 10:25):
Benchmarking of merged PRs seems also missing.
@Sebastian Ullrich Is there anything suspicious going on with the benchmarking runner?
Sebastian Ullrich (Dec 05 2024 at 10:36):
I hit the server process with a wrench and restarted it. I also put a little robot next to it that hits it with the same wrench every 24 hours from now on.
Michael Rothgang (Dec 05 2024 at 13:12):
Reminds me of https://xkcd.com/538/ - hopefully not that kind of wrench :-)
Last updated: May 02 2025 at 03:31 UTC