Closed Bug 1472729 Opened 6 years ago Closed 6 years ago

Sometimes codecoverage.py can't run grcov (as it doesn't exist?)

Categories

(Testing :: Code Coverage, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1439880

People

(Reporter: marco, Unassigned)

Details

Attachments

(1 file)

Attached file logs.tar.xz
04:05:52     INFO - Getting output from command: ['/var/folders/yc/d2pf17ws4x9g1hg55qqmvlqc00000w/T/tmpAefLqu/grcov', '-t', 'lcov', '-p', '/builds/worker/workspace/build/src/', '--ignore-dir', 'gcc*', '--ignore-dir', 'vs2017_*', '/var/folders/yc/d2pf17ws4x9g1hg55qqmvlqc00000w/T/tmpAefLqu/target.code-coverage-gcno.zip', '/var/folders/yc/d2pf17ws4x9g1hg55qqmvlqc00000w/T/tmpnormHG', '--llvm']
04:05:52     INFO - Copy/paste: /var/folders/yc/d2pf17ws4x9g1hg55qqmvlqc00000w/T/tmpAefLqu/grcov -t lcov -p /builds/worker/workspace/build/src/ --ignore-dir gcc* --ignore-dir vs2017_* /var/folders/yc/d2pf17ws4x9g1hg55qqmvlqc00000w/T/tmpAefLqu/target.code-coverage-gcno.zip /var/folders/yc/d2pf17ws4x9g1hg55qqmvlqc00000w/T/tmpnormHG --llvm
04:05:52    ERROR - Exception during post-action for run-tests: Traceback (most recent call last):
04:05:52    ERROR -   File "/Users/cltbld/tasks/task_1530526433/mozharness/mozharness/base/script.py", line 2031, in run_action
04:05:52    ERROR -     method(action, success=success and self.return_code == 0)
04:05:52    ERROR -   File "/Users/cltbld/tasks/task_1530526433/mozharness/mozharness/mozilla/testing/codecoverage.py", line 428, in _package_coverage_data
04:05:52    ERROR -     self.jsvm_dir)
04:05:52    ERROR -   File "/Users/cltbld/tasks/task_1530526433/mozharness/mozharness/mozilla/testing/codecoverage.py", line 290, in parse_coverage_artifacts
04:05:52    ERROR -     throw_exception=True,
04:05:52    ERROR -   File "/Users/cltbld/tasks/task_1530526433/mozharness/mozharness/base/script.py", line 1576, in get_output_from_command
04:05:52    ERROR -     cwd=cwd, stderr=tmp_stderr, env=env, bufsize=0)
04:05:52    ERROR -   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
04:05:52    ERROR -     errread, errwrite)
04:05:52    ERROR -   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
04:05:52    ERROR -     raise child_exception
04:05:52    ERROR - OSError: [Errno 2] No such file or directory

I'm not sure how that is possible, grcov is downloaded from tooltool (and you can see it being downloaded at the beginning of the log). Maybe the temporary directory where grcov is downloaded is sometimes deleted before grcov is executed?

I'm attaching logs of a good and a bad run.
Calixte has been trying to reproduce again after adding a lot of logging statements, but it's not happening anymore... Maybe it was an intermittent issue? It was happening for a lot of chunks though.
No longer blocks: 1399394
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: