Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find student repositories when updating #1085

Open
lmove opened this issue Oct 14, 2022 · 2 comments
Open

Can't find student repositories when updating #1085

lmove opened this issue Oct 14, 2022 · 2 comments
Labels
bug Something isn't working gitlab information needed More information is needed

Comments

@lmove
Copy link

lmove commented Oct 14, 2022

Hi all!

Hope you can help us with the following issue.

Current Setting

We have an organization on the university GitLab instance with:

  • Students groups, each with two projects (assignments)
  • Two assignment templates at the root of the organization

The two projects that we created for each student group, were created with repobee.

Goal

I made some modifications to one of the assignment projects and I am trying to update the students' assignment projects based on this change.

Expected Behaviour

  1. For student projects that have not been modified, I expect to be able to update the content of the project without issue.
  2. According to repobee's documentation, it seems that in the case that a student has already pushed to the project, the new changes should be added manually.

Current Behaviour

When I try to update the unmodified student projects I get the following output from the terminal:

Cloning template repositories: 100%|███████████| 1/1 [00:01<00:00,  1.15s/repos]
Setting up student repos:   0%|                           | 0/1 [00:00<?, ?it/s]  
[WARNING] Can't find repos: https://gitlab.tue.nl/org-name/student-group-name/student-group-name-assignment-x-template.git
Setting up student repos:   0%|

When I copy the not-found URL on my browser I can access the project without issues.
I also checked that my repobee configuration was ok.
I am able to create new assignments from a template project in the organization, but the update option is not working as expected.

Steps to Reproduce the Issue

I have tried the following two options:

  1. Update from students' file
repobee repos update -a assignment-x-template -s student-group-name --allow-local-templates
  1. Update individually per student group
repobee repos update -a assignment-x-template --sf students.txt --allow-local-templates
@slarse slarse added the bug Something isn't working label Oct 14, 2022
@slarse
Copy link
Collaborator

slarse commented Oct 14, 2022

Hi @lmove,

I can't reproduce this problem, so I'll need some more info. I've opened a PR that enables some more verbose logging, could you try running with that version of RepoBee and tell me what the output looks like? See #1087. If you're not sure how to go about installing RepoBee from source, here's an example:

# install in a separate virtual environment this version is not necessarily stable
git clone https://github.com/slarse/repobee.git repobee-slarse -b add-verbose-output --single-branch
cd repobee-slarse
python3 -m venv env
source env/bin/activate
pip install -e .

which repobee # should point to somewhere around the current directory

# now run the command again with verbose logging enabled
# need to enable the gitlab module explicitly as activated plugins won't be picked up when installing this way
repobee -p gitlab repos update -a assignment-x-template -s student-group-name --allow-local-templates --verbose

What output does that provide?

  1. For student projects that have not been modified, I expect to be able to update the content of the project without issue.

Yes, that should be the case.

  1. According to repobee's documentation, it seems that in the case that a student has already pushed to the project, the new changes should be added manually.

Yes, RepoBee will not force push. It offers the possibility of opening an issue with an explanation of the changes (and perhaps a diff to apply). RepoBee figures out which repos have been modified and which have not on its own, so there's no need to manually discern between the two.

Additionally, could you provide the following info:

  1. Version of RepoBee
    • repobee --version
  2. Version of your GitLab instance
  3. Version of Python
  4. Output from repobee config verify

@lmove
Copy link
Author

lmove commented Oct 17, 2022

Dear @slarse, thanks for your reply. We are running the course right now and we temporarily solve the issue with some bash scripts. I will come back to you in about one week when the students are done with the assignment, and we can experiment a little bit more with the repos!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gitlab information needed More information is needed
Projects
None yet
Development

No branches or pull requests

2 participants