get_first_pushdate is failing with `IndexError: tuple index out of range`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start in bugbug/repository.py at get_first_pushdate, then follow its caller in scripts/commit_retriever.py. Reproduce the bugbug-data-commits failure and determine why hg_log returns no entry; done means the command no longer raises IndexError for this repository state.
Written by the indexing model from the issue text.
Description
Traceback (most recent call last):
File "/usr/local/bin/bugbug-data-commits", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.12/site-packages/scripts/commit_retriever.py", line 67, in main
retriever.retrieve_commits(args.limit)
File "/usr/local/lib/python3.12/site-packages/scripts/commit_retriever.py", line 40, in retrieve_commits
repository.download_commits(self.repo_dir, revs=revs[i : (i + chunk_size)])
File "/usr/local/lib/python3.12/site-packages/bugbug/repository.py", line 1370, in download_commits
first_pushdate = get_first_pushdate(repo_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bugbug/repository.py", line 1338, in get_first_pushdate
return hg_log(hg, [b"0"])[0].pushdate
~~~~~~~~~~~~~~~~~~^^^
IndexError: tuple index out of range
- Dominant language
- Python
- Stars
- 570
- Forks
- 351
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 65
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/bugbug
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
good-first-bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
hackbot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#759 ·