Closed
Bug 1405602
Opened 7 years ago
Closed 7 years ago
mach static-analyzer check --fix is failing (binary missing)
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(firefox58 affected)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox58 | --- | affected |
People
(Reporter: Sylvestre, Assigned: andi)
References
Details
Attachments
(2 files, 1 obsolete file)
./mach static-analyzer check --check google-readability-braces-around-statements --fix dom/presentation/Presentation.cpp
0:07.39
0:07.39 Applying fixes ...
0:07.39 Traceback (most recent call last):
0:07.39 main()
0:07.39 apply_fixes(args, tmpdir)
0:07.39 subprocess.call(invocation)
0:07.39 File "/usr/lib/python2.7/subprocess.py", line 168, in call
0:07.39 return Popen(*popenargs, **kwargs).wait()
0:07.39 File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
0:07.39 errread, errwrite)
0:07.39 File "/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child
0:07.39 raise child_exception
0:07.39 OSError: [Errno 2] No such file or directory
Error running mach:
probably because clang-apply-replacement is not installed.
Reporter | ||
Comment 1•7 years ago
|
||
As a workaround on Debian
sudo ln -s clang-apply-replacements-5.0 clang-apply-replacements
or
sudo apt-get install clang
Assignee | ||
Comment 2•7 years ago
|
||
This should come in the toolchain binary that we use.
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → bpostelnicu
Comment hidden (mozreview-request) |
Reporter | ||
Comment 4•7 years ago
|
||
We will need people to download clang-tidy again to get the version with clang-apply-replacement. Do you manage that?
Assignee | ||
Comment 5•7 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #4)
> We will need people to download clang-tidy again to get the version with
> clang-apply-replacement. Do you manage that?
The process is automatic, this patch adds the integrity check to see if it has all of the binaries needed. If it sees missing binaries it will re-download clang-tidy. So this change is not transparent to the end-user.
Assignee | ||
Updated•7 years ago
|
Attachment #8915127 -
Flags: review?(sledru)
Assignee | ||
Comment 6•7 years ago
|
||
This change should not be landed before the binaries are built on toolchain.
Assignee | ||
Comment 7•7 years ago
|
||
MozReview-Commit-ID: 1BT2ukzLoC3
Attachment #8915163 -
Flags: review?(ehsan)
Assignee | ||
Comment 8•7 years ago
|
||
(In reply to Andi-Bogdan Postelnicu [:andi] from comment #7)
> Created attachment 8915163 [details] [diff] [review]
> add clang-apply-replacements to the clang-tidy build generated by toolchains
>
> MozReview-Commit-ID: 1BT2ukzLoC3
This addresses the issue where the clang-apply-replacements binary was not present in the archive from artefact build.
Assignee | ||
Comment 9•7 years ago
|
||
MozReview-Commit-ID: 1BT2ukzLoC3
Attachment #8915168 -
Flags: review?(nfroyd)
Assignee | ||
Updated•7 years ago
|
Attachment #8915163 -
Attachment is obsolete: true
Attachment #8915163 -
Flags: review?(ehsan)
Updated•7 years ago
|
Attachment #8915168 -
Flags: review?(nfroyd) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed,
leave-open
Assignee | ||
Comment 10•7 years ago
|
||
I've marked this issue to remain open since we need to also land the issue from review board after will be reviewed.
Comment 11•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cca8c45c7a34
Add clang-apply-replacements to the clang-tidy build generated by toolchains. r=ehsan
Keywords: checkin-needed
Comment 12•7 years ago
|
||
bugherder |
Reporter | ||
Comment 13•7 years ago
|
||
mozreview-review |
Comment on attachment 8915127 [details]
Bug 1405602 - add clang-apply-replacements to path used by mach static-analysis.
https://reviewboard.mozilla.org/r/186380/#review192218
Looks like the right stuff to do, bravo
Attachment #8915127 -
Flags: review?(sledru) → review+
Assignee | ||
Comment 14•7 years ago
|
||
Note to self: remove leave-open flag after the two patches land in m-c.
Flags: needinfo?(bpostelnicu)
Comment 15•7 years ago
|
||
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/45f4d7722995
add clang-apply-replacements to path used by mach static-analysis. r=sylvestre
Comment 16•7 years ago
|
||
bugherder |
Assignee | ||
Comment 17•7 years ago
|
||
This ca-n be closed now since all of the parchet Landes.
Flags: needinfo?(bpostelnicu)
Assignee | ||
Updated•7 years ago
|
Keywords: leave-open
Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•