You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Force Best Submission Rule does not always push results to the leaderboard #1840
I am one of the organizers of competition 4313, with leaderboard Submission RuleForce Best. We are facing the problem that, for some users, no submission is pushed to the leaderboard. For example, user sabertoaster made 8 submissions, none of which have been pushed to the leaderboard (as would be expected from the Force Best policy). Do you know what the problem might be, and how to fix it?
Fyi, in the Details section of the challenge settings, the option Participants can make submission public is unchecked. Might this be the source of the problem?
changed the title [-]Results are not always pushed to the leaderboard[/-][+]The `Force Best` Submission Rule does not always push results to the leaderboard[/+]on May 3, 2025
I see, do you have an estimate on when someone from your team will look into this? Our challenge will end soon, and we do not have the expertise to look into this ourselves.
I’m also one of the organizers of competition 4313, and I believe I’ve found the reason why this error is occurring.
With force best activated, if the submission currently on the leaderboard is removed, the pointer to the next best submission does not appear to update correctly. I was able to reproduce this issue by uploading two submissions and then removing the one on the leaderboard via the admin panel. Afterwards, none of my submissions were shown on the leaderboard with no ability to change it (due to force best).
This likely also happened when users deleted faulty submissions (with a score of 0.0), which, for some reason, were considered the best and forced onto the leaderboard.
I hope this helps in tracking down the issue in the code!
Hello, I'd like to clarify the situation you are mentioning, especially the order of actions.
Please tell me if what you are describing falls into "case 1" or "case 2".
Case 1
Step 1. Upload various submissions
Step 2. Remove the best
Desired behavior: having no submission on the leaderboard. It is actually expected that the leaderboard does not get updated by the removal of a submission. To have a submission on the leaderboard after removing the best, it is necessary to upload a new one.
Case 2
Step 1. Upload various submissions
Step 2. Remove the best
Step 3. Upload a new submission
Desired behavior: the last submission should be on the leaderboard. We can discuss this, but I think it should go to the leaderboard even if it's not the best of the already existing submissions, otherwise the participant could remain without leaderboard entry. It means that the participant may need to re-upload their best submission if it got deleted (but removing the best submission is uncommon, and participants don't even have permissions to do so).
If a failed submission is considered the best, I think this is a problem in the design of the competition.
Indeed, when a submission fails, it should be either:
Be marked as "Failed", then it won't be part of the leaderboard
The scoring programs catch the failure and returns a score, e.g. "0.0". In that case, as an organizer you should choose a value that is not a good/perfect score, depending if it's ascending or descending ranking.
Hello, I am the organizer of competition 8417. We have encountered a similar issue. After the competition adopted the leaderboard submission rule "Force Best," some participants' entries were not pushed to the leaderboard. Is there any new update regarding this issue? Thank you.
Hello, I am the organizer of competition 8417. We have encountered a similar issue. After the competition adopted the leaderboard submission rule "Force Best," some participants' entries were not pushed to the leaderboard. Is there any new update regarding this issue? Thank you.
Can you please be more specific? Did the new entries obtained the best score so far?
Step 1. Upload various submissions Step 2. Remove the best
Desired behavior: having no submission on the leaderboard. It is actually expected that the leaderboard does not get updated by the removal of a submission. To have a submission on the leaderboard after removing the best, it is necessary to upload a new one.
Case 2
Step 1. Upload various submissions Step 2. Remove the best Step 3. Upload a new submission
Desired behavior: the last submission should be on the leaderboard. We can discuss this, but I think it should go to the leaderboard even if it's not the best of the already existing submissions, otherwise the participant could remain without leaderboard entry. It means that the participant may need to re-upload their best submission if it got deleted (but removing the best submission is uncommon, and participants don't even have permissions to do so).
@Didayolo I think your description of both cases are correct. If we can get more details from the users who have reported this issue, then we can debug this and fix the problem.
Step 1. Upload various submissions
Step 2. Remove the best one
Step 3. Upload a new submission
After these steps, there was no submission left on the leaderboard. Even after uploading a new submission, it did not appear on the leaderboard, despite force best being activated. I think the expected behaviour here would be to take the best of the remaining submissions and show it on the leaderboard, since force best is on. And since users can’t manually add anything to the leaderboard with force best enabled, there’s nothing they can do in this situation.
Step 1. Upload various submissions Step 2. Remove the best one Step 3. Upload a new submission
After these steps, there was no submission left on the leaderboard. Even after uploading a new submission, it did not appear on the leaderboard, despite force best being activated. I think the expected behaviour here would be to take the best of the remaining submissions and show it on the leaderboard, since force best is on. And since users can’t manually add anything to the leaderboard with force best enabled, there’s nothing they can do in this situation.
Our situation matches Case 2. We encountered the same issue with @ToastyDom
Additionally, when attempting to resolve the problem, we used the following approach:
Current participant status: Multiple submissions were made, but under the "force best" setting, the best result was not uploaded to the leaderboard.
Attempts made:
Deleted all submissions, re-submitted the best result, but the leaderboard did not update.
Switched back to the "add and delete" setting, manually added the poorer submissions to the leaderboard, then switched to the "force best" setting and re-submitted the best result, yet the leaderboard did not update automatically.
I am trying to reproduce the problem, but actually it seems to be working fine. I remove the leaderboard submission, upload a new one, and the best get pushed to the leaderboard (even if it's not the last submission made).
Could you please share more information to try to reproduce this?
By "removing a submission", do you mean to delete it completely, or to "remove it from leaderboard"?
Hello @Didayolo and @ihsaan-ullah!
My case matches Case 2:
Step 1. Upload various submissions Step 2. Remove the best one Step 3. Upload a new submission
After these steps, there was no submission left on the leaderboard. Even after uploading a new submission, it did not appear on the leaderboard, despite force best being activated. I think the expected behaviour here would be to take the best of the remaining submissions and show it on the leaderboard, since force best is on. And since users can’t manually add anything to the leaderboard with force best enabled, there’s nothing they can do in this situation.
Thank you for your help!
Our situation matches Case 2. We encountered the same issue with @ToastyDom
Additionally, when attempting to resolve the problem, we used the following approach:
Current participant status: Multiple submissions were made, but under the "force best" setting, the best result was not uploaded to the leaderboard.
Attempts made:
Deleted all submissions, re-submitted the best result, but the leaderboard did not update.
Switched back to the "add and delete" setting, manually added the poorer submissions to the leaderboard, then switched to the "force best" setting and re-submitted the best result, yet the leaderboard did not update automatically.
In our attempts, ”removing a submission“ means completely deleting it. However, in competition 8417, participants ‘joshychou1996’ and ‘licheng’ were unable to successfully submit their best results to the leaderboard.
Additionally, it should be noted that we also tried the following with these two participants' submissions:
Current participant status: Multiple submissions were made, but under the "force best" setting, the best result was not uploaded to the leaderboard.
Switched back to the “Add and Remove” setting, manually added the best submission to the leaderboard, then switched to the “Force Best” setting and reran the best result. But the best submission previously added to the leaderboard disappeared.
By reading the code I don't see any problem BUT I suspect the problem could come from _choose_best_submission function. When this happens again could you please note down the latest submission ID and date time so that would could check the logs to find any issues.
@ObadaS I will need you for the logs when someone reports this problem again
Thank you for carefully reviewing the code and identifying a potential issue. The next time this occurs, I will make sure to note down the latest submission ID and datetime.
In the first image, with the "Force last" setting, the leaderboard successfully displays the most recent submission of participant "qyx596".
In the second image, after switching to the "Force best" setting, when participant "qyx596" submitted a better result, the leaderboard did not update the result, and the original submission on the leaderboard also disappeared.
Activity
[-]Results are not always pushed to the leaderboard[/-][+]The `Force Best` Submission Rule does not always push results to the leaderboard[/+]gifale95 commentedon May 9, 2025
Hi,
Do you have any updates on this?
Thank you.
Didayolo commentedon May 15, 2025
Hi @gifale95,
Thank you for reporting this problem. It is the first time I hear about it. And indeed, I can see it in your competition with user
sabertoaster.I have no idea where the problem comes from and will investigate it.
For the submissions that get into the leaderboard, do you confirm that they are indeed the best for each user?
gifale95 commentedon May 15, 2025
Hi @Didayolo ,
Thanks for looking into this! The competition is in its final stage, so we would appreciate if you could find what is causing the problem soon.
"For the submissions that get into the leaderboard, do you confirm that they are indeed the best for each user?" => Yes.
Thank you again for your help!
Ale
Didayolo commentedon May 15, 2025
Relevant code:
codabench/src/apps/leaderboards/strategies.py
Line 69 in 929a6cb
gifale95 commentedon May 22, 2025
Hi @Didayolo ,
Do you have any news on this?
Thanks,
Ale
Didayolo commentedon May 28, 2025
@gifale95
No news for now, sorry, nobody is currently working on this. You are more than welcome to contribute if you are able to.
gifale95 commentedon May 28, 2025
@Didayolo
I see, do you have an estimate on when someone from your team will look into this? Our challenge will end soon, and we do not have the expertise to look into this ourselves.
ToastyDom commentedon Jun 3, 2025
Hello everyone and @Didayolo,
I’m also one of the organizers of competition 4313, and I believe I’ve found the reason why this error is occurring.
With force best activated, if the submission currently on the leaderboard is removed, the pointer to the next best submission does not appear to update correctly. I was able to reproduce this issue by uploading two submissions and then removing the one on the leaderboard via the admin panel. Afterwards, none of my submissions were shown on the leaderboard with no ability to change it (due to force best).
This likely also happened when users deleted faulty submissions (with a score of 0.0), which, for some reason, were considered the best and forced onto the leaderboard.
I hope this helps in tracking down the issue in the code!
Best,
Domenic :)
Didayolo commentedon Jun 9, 2025
@ToastyDom Thank you for the indications. We'll investigate this problem with the team as soon as possible.
Didayolo commentedon Jun 10, 2025
@ToastyDom @gifale95
Hello, I'd like to clarify the situation you are mentioning, especially the order of actions.
Please tell me if what you are describing falls into "case 1" or "case 2".
Case 1
Step 1. Upload various submissions
Step 2. Remove the best
Desired behavior: having no submission on the leaderboard. It is actually expected that the leaderboard does not get updated by the removal of a submission. To have a submission on the leaderboard after removing the best, it is necessary to upload a new one.
Case 2
Step 1. Upload various submissions
Step 2. Remove the best
Step 3. Upload a new submission
Desired behavior: the last submission should be on the leaderboard. We can discuss this, but I think it should go to the leaderboard even if it's not the best of the already existing submissions, otherwise the participant could remain without leaderboard entry. It means that the participant may need to re-upload their best submission if it got deleted (but removing the best submission is uncommon, and participants don't even have permissions to do so).
@ihsaan-ullah What do you think about this?
About fail submission being considered the best
If a failed submission is considered the best, I think this is a problem in the design of the competition.
Indeed, when a submission fails, it should be either:
lsyszbd88 commentedon Jun 11, 2025
Hello, I am the organizer of competition 8417. We have encountered a similar issue. After the competition adopted the leaderboard submission rule "Force Best," some participants' entries were not pushed to the leaderboard. Is there any new update regarding this issue? Thank you.
Didayolo commentedon Jun 11, 2025
Can you please be more specific? Did the new entries obtained the best score so far?
ihsaan-ullah commentedon Jun 11, 2025
@Didayolo I think your description of both cases are correct. If we can get more details from the users who have reported this issue, then we can debug this and fix the problem.
ToastyDom commentedon Jun 11, 2025
Hello @Didayolo and @ihsaan-ullah!
My case matches Case 2:
Step 1. Upload various submissions
Step 2. Remove the best one
Step 3. Upload a new submission
After these steps, there was no submission left on the leaderboard. Even after uploading a new submission, it did not appear on the leaderboard, despite force best being activated. I think the expected behaviour here would be to take the best of the remaining submissions and show it on the leaderboard, since force best is on. And since users can’t manually add anything to the leaderboard with force best enabled, there’s nothing they can do in this situation.
Thank you for your help!
lsyszbd88 commentedon Jun 12, 2025
Hello @Didayolo and @ihsaan-ullah !
Our situation matches Case 2. We encountered the same issue with @ToastyDom
Additionally, when attempting to resolve the problem, we used the following approach:
Current participant status: Multiple submissions were made, but under the "force best" setting, the best result was not uploaded to the leaderboard.
Attempts made:
Thank you for your help!
Didayolo commentedon Jun 13, 2025
Hi @lsyszbd88 @ToastyDom,
I am trying to reproduce the problem, but actually it seems to be working fine. I remove the leaderboard submission, upload a new one, and the best get pushed to the leaderboard (even if it's not the last submission made).
Could you please share more information to try to reproduce this?
By "removing a submission", do you mean to delete it completely, or to "remove it from leaderboard"?
lsyszbd88 commentedon Jun 14, 2025
Hello @Didayolo,
In our attempts, ”removing a submission“ means completely deleting it. However, in competition 8417, participants ‘joshychou1996’ and ‘licheng’ were unable to successfully submit their best results to the leaderboard.
Additionally, it should be noted that we also tried the following with these two participants' submissions:
Current participant status: Multiple submissions were made, but under the "force best" setting, the best result was not uploaded to the leaderboard.
lsyszbd88 commentedon Jun 22, 2025
Hi @Didayolo ,
Do you have any updates on this?
Thank you for your help!
ihsaan-ullah commentedon Jul 5, 2025
I checked the code for deciding the best submission
codabench/src/apps/leaderboards/strategies.py
Line 69 in 1d28f63
By reading the code I don't see any problem BUT I suspect the problem could come from
_choose_best_submissionfunction. When this happens again could you please note down the latest submission ID and date time so that would could check the logs to find any issues.@ObadaS I will need you for the logs when someone reports this problem again
lsyszbd88 commentedon Jul 9, 2025
Hi @ihsaan-ullah,
Thank you for carefully reviewing the code and identifying a potential issue. The next time this occurs, I will make sure to note down the latest submission ID and datetime.
lsyszbd88 commentedon Jul 11, 2025
Hi @ihsaan-ullah,
As shown in the figure:
In the first image, with the "Force last" setting, the leaderboard successfully displays the most recent submission of participant "qyx596".
In the second image, after switching to the "Force best" setting, when participant "qyx596" submitted a better result, the leaderboard did not update the result, and the original submission on the leaderboard also disappeared.
ihsaan-ullah commentedon Jul 11, 2025
@ObadaS can we check if we can find any problem in the logs
Irikos commentedon Jul 24, 2025
We've had this problem as well and while it wasn't a dealbreaker, it was inconvenient enough to change the rule to show all submissions.
Behavior was something like:
My guess is that a callback, on delete, to chose best submission, would solve this.