Closed odin568 closed 1 week ago
use gitlabber a lot and it worked fine with the older version (<1.2.0).
Hi @odin568, can you check the version 1.2.1 that's on pypi? https://pypi.org/p/gitlabber/ (it's an update to urllib3 version 2.2.2) and tell me if the problem persists?
I checked your command with two includes and it worked:
gitlabber -u "http://gitlab.com" -i '/Group Test/Subgroup Test/gitlab-project-submodule**,/Group Test/Subgroup Test/gitlabber-sample-submodule**' -a exclude --verbose .
If the problem persists can you check the --print
actually lists the repositories you are expecting to see?
Yes, I updated to 1.2.1.
Somehow strange, I also cannot get it working with old version. It worked for a year now.
Only the warning about the "get_All=True" I am not sure if it came before, this is a change in the python-gitlab library.
--print also does not give more output really - also list is empty.
The filters for include worked fine for a year, so don't expect something is wrong with them. Also the token is valid, otherwise I would get an error...
@odin568
Only the warning about the "get_All=True" I am not sure if it came before, this is a change in the python-gitlab library.
Yes this is a result of the upgrade of python-gitlab it means that all projects will be fetched with no pagination and therefor unrelated.
This line:
2024-07-01 09:12:15,684 - gitlabber.gitlab_tree - DEBUG - Fetched root node with [1] projects
indicates you have only one project in your gitlab (before filtering), if that is the case why do you need includes? how many projects are you expecting to see under these paths?
I think the problem lies elsewhere, please also note you are filtering archived projects with the -a
flag
Are you sure? It says:
Calling a
list()method without specifying
get_all=Trueor
iterator=Truewill return a maximum of 20 items. Your query returned 20 of 212 items.
Looks to me as if gitlabber is now thinking it works on complete list but actually only works on first 20.
Can it be that my root node is missing then?
In summary, there are hundreds of repositories in our gitlab instance :)
Are you sure? It says:
@odin568 you are more than welcome to look at the code: https://github.com/ezbz/gitlabber/blob/490056e626f5184813038e9eefe24e28acbca6db/gitlabber/gitlab_tree.py#L118
projects are fetched with the get_all=True
parameter
and in any case in your situation nothing is returned so I would check the requests with curl and see what they return
@odin568
released version 1.2.2 see if the get_all=True
for groups fixes your issue I've also added some debug level statements for filtering try again and paste the verbose information here if it still doesn't solve your problem
Now it works 🎆 Thank you very much!
Describe the bug I use gitlabber a lot and it worked fine with the older version (<1.2.0). Thanks in general for updating and keeping this repo alive, but it seems that there is an issue. Perhaps related to the warning? Same command worked fine with older version, I have it in a batch script :)
To Reproduce
-v
) modegitlabber -t 'XXXXXXXXXXXXXXXX' -u 'https://gitlab.XXXXXX.com' -m http -n name -i '/Platform/Out/Area1**,/Platform/Data/Area2**' -a exclude .
Expected behavior A clear and concise description of what you expected to happen.
Versions (please complete the following information):
Win 11
3.12
16.11.4
1.2.1
Additional context Add any other context about the problem here.