github-education-resources / classroom

GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.
https://classroom.github.com
1.34k stars 566 forks source link

Duplicated repository created by students #2529

Open m940421 opened 4 years ago

m940421 commented 4 years ago

Describe the bug When students accept a new homework, the classroom is creating duplicated repositories. Sometimes the classroom even creates 5 duplicated repositories for one account. This happened for a few students but not all of them.

To Reproduce Steps to reproduce the behavior: Not exactly sure what leads to the problem

Expected behavior Normally only one repository is created.

Screenshots Capture

d12 commented 4 years ago

Hey, thanks for the report! I've noticed this behavior before, but we haven't figured out what exactly causes it yet. In the mean time, the template repositories feature seems to not have this issue: https://classroom.github.com/help/using-template-repos-for-assignments

NuttKatyISD commented 4 years ago

Came here to post about the same issue. Noticed it happening over the past few days.

Not sure if it's related, but I watched a student import a repo template today and the first time he got an error that it couldn't be created first. Clicked retry and then it started looping. The scroll bars would go like they finished and then they'd start over. It created about a dozen copies of the repo before we closed the tab.

The error when importing is new too. Seems like it started happening about the same time as the duplicates. But I don't know if every student with duplicate repositories got the error message first and clicked retry.

NuttKatyISD commented 4 years ago

Not sure that it's the cause for everybody, but after some troubleshooting on #2558 it turned out that I had teachers assigned to the classroom that were no longer owners in the organization. Removing those two teacher accounts from my class seems to have fixed this issue as well, and pretty much every glitch that I've come across in Classroom.