Detect mercurial errors
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by tracing the command execution path that produces the shown stderr from the issue body. Check how stderr is currently captured and logged; done means traceback-containing Mercurial stderr produces a Sentry exception without aborting the command.
Written by the indexing model from the issue text.
Description
It appears that the error from Bug 1916544 actually wasn't breaking things; however it was spitting out this error into stderr and not causing any warnings/error from Updatebot (presumably because the command was not erroring):
[Debug] (CommandProvider xsimd job_id=549) ----------------------------------------------
[task 2024-09-02T18:11:54.074Z] [Info] (CommandProvider xsimd job_id=549) Running ['hg', 'checkout', '-C', '.']
[task 2024-09-02T18:11:56.845Z] [Info] (CommandProvider xsimd job_id=549) Return: 0 Runtime (s): 2
[task 2024-09-02T18:11:56.845Z] [Debug] (CommandProvider xsimd job_id=549) -------
[task 2024-09-02T18:11:56.845Z] [Debug] (CommandProvider xsimd job_id=549) stdout:
[task 2024-09-02T18:11:56.845Z] [Debug] (CommandProvider xsimd job_id=549) 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
[task 2024-09-02T18:11:56.845Z]
[task 2024-09-02T18:11:56.845Z] [Debug] (CommandProvider xsimd job_id=549) -------
[task 2024-09-02T18:11:56.845Z] [Debug] (CommandProvider xsimd job_id=549) stderr:
[task 2024-09-02T18:11:56.845Z] [Debug] (CommandProvider xsimd job_id=549) Traceback (most recent call last):
[task 2024-09-02T18:11:56.845Z] File "/usr/lib/python3/dist-packages/mercurial/extensions.py", line 255, in _runuisetup
[task 2024-09-02T18:11:56.845Z] uisetup(ui)
[task 2024-09-02T18:11:56.845Z] File "/builds/worker/.mozbuild/evolve/hgext3rd/evolve/exthelper.py", line 149, in finaluisetup
[task 2024-09-02T18:11:56.845Z] c(ui)
[task 2024-09-02T18:11:56.845Z] File "/builds/worker/.mozbuild/evolve/hgext3rd/evolve/headchecking.py", line 28, in uisetup
[task 2024-09-02T18:11:56.845Z] code = scmutil.filteredhash.__code__
[task 2024-09-02T18:11:56.845Z] ^^^^^^^^^^^^^^^^^^^^
[task 2024-09-02T18:11:56.845Z] AttributeError: module 'mercurial.scmutil' has no attribute 'filteredhash'
[task 2024-09-02T18:11:56.845Z] *** failed to set up extension evolve: module 'mercurial.scmutil' has no attribute 'filteredhash'
[task 2024-09-02T18:11:56.845Z]
[task 2024-09-02T18:11:56.845Z] [Debug] (CommandProvider xsimd job_id=549) ----------------------------------------------
We should automatically look at stderr output and detect if there is a traceback in it, and if so, log an exception to sentry (but not abort execution).
- Dominant language
- Python
- Stars
- 9
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
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-services/updatebot
-
Easy Enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
mozilla-services/updatebot#401 ·
-
Easy Enhancement
Difficulty 1/5 Under an hour Newbie friendliness 65/100
mozilla-services/updatebot#348 ·
-
Bug Easy
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
mozilla-services/updatebot#314 ·
-
Bug Easy
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mozilla-services/updatebot#422 · 2 comments ·
-
Suggest Uplifts OpenComplicated
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozilla-services/updatebot#421 ·
All issues in mozilla-services/updatebot
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100