Closed Bug 1658461 Opened 4 years ago Closed 4 years ago

mozregression -B debug fails on an older revision with KeyError: 'taskId'

Categories

(Testing :: mozregression, defect)

Default
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1655682

People

(Reporter: hiro, Unassigned)

Details

% ./mach mozregression -B debug -g 78


You should use a config file. Please use the --write-config command line flag to help you create one.


0:00.00 INFO: No 'bad' option specified, using 2020-08-11
0:01.47 INFO: Using date 2020-06-01 for release 78
0:01.47 INFO: Getting mozilla-central builds between 2020-06-01 and 2020-08-11
0:03.92 INFO: Using 702ad0fa15860f6ea37effdcb45973cc63d3125b (pushed on 2020-06-01 09:38:12) for date 2020-06-01
0:03.92 INFO: Using ee09cb88af177571304759bc05c760e3d82fd1ed (pushed on 2020-08-10 21:36:34) for date 2020-08-11
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/hiro/central/third_party/python/sentry-sdk/sentry_sdk/integrations/threading.py", line 69, in run
reraise(*_capture_exception())
File "/home/hiro/central/third_party/python/sentry-sdk/sentry_sdk/_compat.py", line 57, in reraise
raise value
File "/home/hiro/central/third_party/python/sentry-sdk/sentry_sdk/integrations/threading.py", line 67, in run
return old_run_func(self, *a, **kw)
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/build_range.py", line 93, in getitem
return self._future_build_infos[item].build_info
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/build_range.py", line 37, in build_info
self._build_info = self._fetch()
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/build_range.py", line 31, in _fetch
return self.build_info_fetcher.find_build_info(self.data)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/fetch_build_info.py", line 128, in find_build_info
task_id = tc_index.findTask(tk_route)["taskId"]
KeyError: 'taskId'
Error running mach:

['mozregression', '-B', 'debug', '-g', '78']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file mozregression| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

KeyError: 'taskId'

File "/home/hiro/central/tools/mach_commands.py", line 393, in run
mozregression.run(**options)
File "/home/hiro/central/tools/mach_commands.py", line 372, in run
tool.run(options)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/mach_interface.py", line 44, in run
main(namespace=Namespace(**options), check_new_version=False, mozregression_variant="mach")
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/main.py", line 341, in main
sys.exit(method())
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/main.py", line 155, in bisect_integration
return self._bisect_integration(
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/main.py", line 169, in _bisect_integration
result = self._do_bisect(handler, good_rev, bad_rev, expand=expand)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/main.py", line 225, in _do_bisect
return self.bisector.bisect(handler, good, bad, **kwargs)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/bisector.py", line 600, in bisect
return self._bisect(handler, build_range)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/bisector.py", line 620, in _bisect
result = bisection.init_handler(index)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/bisector.py", line 398, in init_handler
self.handler.initialize()
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/bisector.py", line 81, in initialize
self.build_range[0].changeset, self.build_range[-1].changeset
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/build_range.py", line 93, in getitem
return self._future_build_infos[item].build_info
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/build_range.py", line 37, in build_info
self._build_info = self._fetch()
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/build_range.py", line 31, in _fetch
return self.build_info_fetcher.find_build_info(self.data)
File "/home/hiro/central/obj-firefox/_virtualenvs/init_py3/lib/python3.8/site-packages/mozregression/fetch_build_info.py", line 128, in find_build_info
task_id = tc_index.findTask(tk_route)["taskId"]

FWIW, mozregression -B debug -g 79 works fine. I am on Linux.

As an interim fix,

source ~/central/obj-firefox/_virtualenvs/init_py3/bin/activate
pip install taskcluster-urls==12.1.0
deactivate

and it should work again, since the issue seems to be (partly) caused by the 13.0.1 version of taskcluster-urls.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.