Intermittent 0:17.93 python/mozlint/test/test_roller.py::test_keyboard_interrupt TEST-UNEXPECTED-FAIL
Categories
(Developer Infrastructure :: Lint and Formatting, defect, P5)
Tracking
(Not tracked)
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: btara [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=315459768&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/I2QiESt3QdOO_QsVVAdeug/runs/0/artifacts/public/logs/live_backing.log
task 2020-09-11T15:23:44.499Z] 0:13.72 ========================== 12 passed in 0.48 seconds ===========================
[task 2020-09-11T15:23:48.691Z] 0:17.92 /builds/worker/checkouts/gecko/python/mozlint/test/test_roller.py
[task 2020-09-11T15:23:48.691Z] 0:17.92 ============================= test session starts ==============================
[task 2020-09-11T15:23:48.691Z] 0:17.92 platform linux -- Python 3.6.9, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/python-test/bin/python
[task 2020-09-11T15:23:48.692Z] 0:17.92 rootdir: /builds/worker/checkouts/gecko, inifile: /builds/worker/checkouts/gecko/config/mozunit/mozunit/pytest.ini
[task 2020-09-11T15:23:48.699Z] 0:17.92 collecting ... collected 27 items
[task 2020-09-11T15:23:48.699Z] 0:17.92
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_no_linters_configured PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_successful PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_from_subdir PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_catch_exception PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_with_global_excluded_path PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_with_local_excluded_path PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_with_no_files_to_lint PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_with_invalid_extension PASSED
[task 2020-09-11T15:23:48.699Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_with_failure_code PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_roll_warnings PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs[1] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs[4] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs[8] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs[16] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_max_paths_per_job[1-12] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_max_paths_per_job[4-6] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_max_paths_per_job[16-6] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs_global[1] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs_global[4] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs_global[8] PASSED
[task 2020-09-11T15:23:48.700Z] 0:17.92 python/mozlint/test/test_roller.py::test_number_of_jobs_global[16] PASSED
[task 2020-09-11T15:23:48.703Z] 0:17.92 python/mozlint/test/test_roller.py::test_max_paths_per_job_global[1] PASSED
[task 2020-09-11T15:23:48.704Z] 0:17.93 python/mozlint/test/test_roller.py::test_max_paths_per_job_global[4] PASSED
[task 2020-09-11T15:23:48.704Z] 0:17.93 python/mozlint/test/test_roller.py::test_max_paths_per_job_global[16] PASSED
[task 2020-09-11T15:23:48.704Z] 0:17.93 python/mozlint/test/test_roller.py::test_keyboard_interrupt TEST-UNEXPECTED-FAIL
[task 2020-09-11T15:23:48.704Z] 0:17.93 python/mozlint/test/test_roller.py::test_support_files PASSED
[task 2020-09-11T15:23:48.704Z] 0:17.93 python/mozlint/test/test_roller.py::test_setup PASSED
[task 2020-09-11T15:23:48.704Z] 0:17.93
[task 2020-09-11T15:23:48.704Z] 0:17.93 =================================== FAILURES ===================================
[task 2020-09-11T15:23:48.704Z] 0:17.93 ___________________________ test_keyboard_interrupt ____________________________
[task 2020-09-11T15:23:48.704Z] 0:17.93
[task 2020-09-11T15:23:48.705Z] 0:17.93 @pytest.mark.skipif(platform.system() == 'Windows',
[task 2020-09-11T15:23:48.705Z] 0:17.93 reason="signal.CTRL_C_EVENT isn't causing a KeyboardInterrupt on Windows")
[task 2020-09-11T15:23:48.705Z] 0:17.93 def test_keyboard_interrupt():
[task 2020-09-11T15:23:48.705Z] 0:17.93 # We use two linters so we'll have two jobs. One (string.yml) will complete
[task 2020-09-11T15:23:48.705Z] 0:17.93 # quickly. The other (slow.yml) will run slowly. This way the first worker
[task 2020-09-11T15:23:48.705Z] 0:17.93 # will be be stuck blocking on the ProcessPoolExecutor._call_queue when the
[task 2020-09-11T15:23:48.705Z] 0:17.93 # signal arrives and the other still be doing work.
[task 2020-09-11T15:23:48.705Z] 0:17.93 cmd = [sys.executable, 'runcli.py', '-l=string', '-l=slow']
[task 2020-09-11T15:23:48.705Z] 0:17.93 env = os.environ.copy()
[task 2020-09-11T15:23:48.705Z] 0:17.93 env['PYTHONPATH'] = os.pathsep.join(sys.path)
[task 2020-09-11T15:23:48.706Z] 0:17.93 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
[task 2020-09-11T15:23:48.706Z] 0:17.93 cwd=here, env=env, universal_newlines=True)
[task 2020-09-11T15:23:48.706Z] 0:17.93 time.sleep(1)
[task 2020-09-11T15:23:48.706Z] 0:17.93 proc.send_signal(signal.SIGINT)
[task 2020-09-11T15:23:48.706Z] 0:17.93
[task 2020-09-11T15:23:48.706Z] 0:17.93 out = proc.communicate()[0]
[task 2020-09-11T15:23:48.706Z] 0:17.93 print(out)
[task 2020-09-11T15:23:48.706Z] 0:17.93 > assert 'warning: not all files were linted' in out
[task 2020-09-11T15:23:48.706Z] 0:17.93 E assert 'warning: not all files were linted' in 'Traceback (most recent call last):\n File "runcli.py", line 17, in <module>\n sys.exit(cli.run(**args))\n File "...hon-test/lib/python3.6/codecs.py", line 318, in decode\n def decode(self, input, final=False):\nKeyboardInterrupt\n'
[task 2020-09-11T15:23:48.707Z] 0:17.93
[task 2020-09-11T15:23:48.707Z] 0:17.93 python/mozlint/test/test_roller.py:242: AssertionError
[task 2020-09-11T15:23:48.707Z] 0:17.93 ----------------------------- Captured stdout call -----------------------------
[task 2020-09-11T15:23:48.707Z] 0:17.93 Traceback (most recent call last):
[task 2020-09-11T15:23:48.707Z] 0:17.93 File "runcli.py", line 17, in <module>
[task 2020-09-11T15:23:48.707Z] 0:17.93 sys.exit(cli.run(**args))
[task 2020-09-11T15:23:48.707Z] 0:17.93 File "/builds/worker/checkouts/gecko/python/mozlint/mozlint/cli.py", line 217, in run
[task 2020-09-11T15:23:48.708Z] 0:17.93 lint.read(find_linters(lintargs['config_paths'], linters))
[task 2020-09-11T15:23:48.709Z] 0:17.93 File "/builds/worker/checkouts/gecko/python/mozlint/mozlint/roller.py", line 172, in read
[task 2020-09-11T15:23:48.710Z] 0:17.93 for linter in chain([self.parse(p) for p in paths]):
[task 2020-09-11T15:23:48.710Z] 0:17.93 File "/builds/worker/checkouts/gecko/python/mozlint/mozlint/roller.py", line 172, in <listcomp>
[task 2020-09-11T15:23:48.711Z] 0:17.94 for linter in chain([self.parse(p) for p in paths]):
[task 2020-09-11T15:23:48.712Z] 0:17.94 File "/builds/worker/checkouts/gecko/python/mozlint/mozlint/parser.py", line 30, in call
[task 2020-09-11T15:23:48.713Z] 0:17.94 return self.parse(path)
[task 2020-09-11T15:23:48.713Z] 0:17.94 File "/builds/worker/checkouts/gecko/python/mozlint/mozlint/parser.py", line 98, in parse
[task 2020-09-11T15:23:48.714Z] 0:17.94 configs = list(yaml.safe_load_all(fh))
[task 2020-09-11T15:23:48.714Z] 0:17.94 File "/builds/worker/checkouts/gecko/third_party/python/PyYAML/lib3/yaml/init.py", line 127, in load_all
[task 2020-09-11T15:23:48.714Z] 0:17.94 loader = Loader(stream)
[task 2020-09-11T15:23:48.715Z] 0:17.94 File "/builds/worker/checkouts/gecko/third_party/python/PyYAML/lib3/yaml/loader.py", line 34, in init
[task 2020-09-11T15:23:48.715Z] 0:17.94 Reader.init(self, stream)
[task 2020-09-11T15:23:48.715Z] 0:17.94 File "/builds/worker/checkouts/gecko/third_party/python/PyYAML/lib3/yaml/reader.py", line 85, in init
[task 2020-09-11T15:23:48.716Z] 0:17.94 self.determine_encoding()
[task 2020-09-11T15:23:48.716Z] 0:17.94 File "/builds/worker/checkouts/gecko/third_party/python/PyYAML/lib3/yaml/reader.py", line 124, in determine_encoding
[task 2020-09-11T15:23:48.716Z] 0:17.94 self.update_raw()
[task 2020-09-11T15:23:48.717Z] 0:17.94 File "/builds/worker/checkouts/gecko/third_party/python/PyYAML/lib3/yaml/reader.py", line 178, in update_raw
[task 2020-09-11T15:23:48.717Z] 0:17.94 data = self.stream.read(size)
[task 2020-09-11T15:23:48.717Z] 0:17.94 File "/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/_virtualenvs/python-test/lib/python3.6/codecs.py", line 318, in decode
[task 2020-09-11T15:23:48.718Z] 0:17.94 def decode(self, input, final=False):
[task 2020-09-11T15:23:48.718Z] 0:17.94 KeyboardInterrupt
[task 2020-09-11T15:23:48.718Z] 0:17.94
[task 2020-09-11T15:23:48.718Z] 0:17.94 ===================== 1 failed, 26 passed in 5.27 seconds ======================
[task 2020-09-11T15:23:48.719Z] 0:17.94 Setting retcode to 1 from /builds/worker/checkouts/gecko/python/mozlint/test/test_roller.py
[task 2020-09-11T15:23:48.990Z] 0:18.21 /builds/worker/checkouts/gecko/tools/lint/test/test_clang_format.py
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 3•5 years ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Description
•