chaoss / chaoss/grimoirelab

How can I fix the error in sirmordred docker logs?

Open
#643 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
625
Forks
231
PR merge metrics
No merged PRs in 30d

Description

This error prevents the data from coming to the web interface when I run grimoerilab. It causes a no result found error.

2024-03-22 10:39:11,322 - GrimoireLab - sirmordred.task_collection - INFO - [gitlab:issues] collection phase starts
2024-03-22 10:39:11,323 - GrimoireLab - sirmordred.task_manager - ERROR - [gitlab:issues] Exception in Task Manager list index out of range
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/sirmordred/task_manager.py", line 98, in run
task.execute()
File "/usr/local/lib/python3.8/site-packages/sirmordred/task_collection.py", line 116, in execute
backend_args = self._compose_perceval_params(self.backend_section, repo)
File "/usr/local/lib/python3.8/site-packages/sirmordred/task.py", line 145, in _compose_perceval_params
params = ocean.get_perceval_params_from_url(repo)
File "/usr/local/lib/python3.8/site-packages/grimoire_elk/raw/gitlab.py", line 98, in get_perceval_params_from_url
owner = repo.split('/')[-2]
IndexError: list index out of range
2024-03-22 10:39:11,371 - GrimoireLab - sirmordred.task_collection - INFO - [gitlab:merge] collection phase starts
2024-03-22 10:39:11,372 - GrimoireLab - sirmordred.task_manager - ERROR - [gitlab:merge] Exception in Task Manager list index out of range
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/sirmordred/task_manager.py", line 98, in run
task.execute()
File "/usr/local/lib/python3.8/site-packages/sirmordred/task_collection.py", line 116, in execute
backend_args = self._compose_perceval_params(self.backend_section, repo)
File "/usr/local/lib/python3.8/site-packages/sirmordred/task.py", line 145, in _compose_perceval_params
params = ocean.get_perceval_params_from_url(repo)
File "/usr/local/lib/python3.8/site-packages/grimoire_elk/raw/gitlab.py", line 98, in get_perceval_params_from_url
owner = repo.split('/')[-2]
IndexError: list index out of range

GrimoireLab - sirmordred.task_manager - ERROR - [gitlab:issues] Exception in Task Manager list index out of range
Traceback (most recent call last):

Contributor guide

Open the contributing guide

Research direction

Start with sirmordred/task_collection.py and task.py, then trace the failing call into grimoire_elk/raw/gitlab.py at get_perceval_params_from_url. Inspect the repository value reaching repo.split('/') and reproduce the gitlab:issues and gitlab:merge collection phases. Done means the collection runs without the IndexError and results become available in the web interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, gitlab, python
Domain
backend, data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.