Skip to content

The Force Best Submission Rule does not always push results to the leaderboard #1840

Description

@gifale95

Hello,

I am one of the organizers of competition 4313, with leaderboard Submission Rule Force 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?

Thank you,
Ale

Activity

  1. 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
  2. gifale95 commented on May 9, 2025

    @gifale95
    Author

    Hi,

    Do you have any updates on this?

    Thank you.

  3. Didayolo commented on May 15, 2025

    @Didayolo
    Member

    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?

  4. gifale95 commented on May 15, 2025

    @gifale95
    Author

    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

  5. Didayolo commented on May 15, 2025

    @Didayolo
    Member

    Relevant code:

    class BestModeStrategy(BaseModeStrategy):

  6. gifale95 commented on May 22, 2025

    @gifale95
    Author

    Hi @Didayolo ,

    Do you have any news on this?

    Thanks,
    Ale

  7. Didayolo commented on May 28, 2025

    @Didayolo
    Member

    @gifale95

    No news for now, sorry, nobody is currently working on this. You are more than welcome to contribute if you are able to.

  8. gifale95 commented on May 28, 2025

    @gifale95
    Author

    @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.

  9. ToastyDom commented on Jun 3, 2025

    @ToastyDom

    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 :)

  10. Didayolo commented on Jun 9, 2025

    @Didayolo
    Member

    @ToastyDom Thank you for the indications. We'll investigate this problem with the team as soon as possible.

  11. Didayolo commented on Jun 10, 2025

    @Didayolo
    Member

    @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:

    • 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.
  12. added
    Discussion
    on Jun 10, 2025
  13. lsyszbd88 commented on Jun 11, 2025

    @lsyszbd88

    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.

  14. Didayolo commented on Jun 11, 2025

    @Didayolo
    Member

    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?

  15. ihsaan-ullah commented on Jun 11, 2025

    @ihsaan-ullah
    Collaborator

    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?

    @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.

  16. ToastyDom commented on Jun 11, 2025

    @ToastyDom

    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!

  17. lsyszbd88 commented on Jun 12, 2025

    @lsyszbd88

    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!

    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:

    1. Deleted all submissions, re-submitted the best result, but the leaderboard did not update.
    2. 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.

    Thank you for your help!

  18. Didayolo commented on Jun 13, 2025

    @Didayolo
    Member

    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"?

  19. lsyszbd88 commented on Jun 14, 2025

    @lsyszbd88

    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!

    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:

    1. Deleted all submissions, re-submitted the best result, but the leaderboard did not update.
    2. 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.

    Thank you for your help!

    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.

    1. 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.
  20. added
    P1
    on Jun 18, 2025
  21. lsyszbd88 commented on Jun 22, 2025

    @lsyszbd88

    Hi @Didayolo ,

    Do you have any updates on this?

    Thank you for your help!

  22. ihsaan-ullah commented on Jul 5, 2025

    @ihsaan-ullah
    Collaborator

    I checked the code for deciding the best submission

    class BestModeStrategy(BaseModeStrategy):

    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

  23. lsyszbd88 commented on Jul 9, 2025

    @lsyszbd88

    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.

  24. lsyszbd88 commented on Jul 11, 2025

    @lsyszbd88

    Hi @ihsaan-ullah,

    As shown in the figure:

    1. In the first image, with the "Force last" setting, the leaderboard successfully displays the most recent submission of participant "qyx596".

    2. 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.

    Image Image
  25. ihsaan-ullah commented on Jul 11, 2025

    @ihsaan-ullah
    Collaborator

    @ObadaS can we check if we can find any problem in the logs

  26. Irikos commented on Jul 24, 2025

    @Irikos

    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:

    1. User submits multiple times, best submission gets shown
    2. User deletes his best submissions and no other submission from that user appears in the leaderboard (shouldn't his 2nd best appear?)
    3. I am not sure if his new submissions were being shown, as we realized what he was doing and changed the rule (but I think they weren't).

    My guess is that a callback, on delete, to chose best submission, would solve this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDiscussionP1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions