Closed
Bug 1465895
Opened 6 years ago
Closed 3 years ago
Default to mach-installed clang directory for sanitizer tools
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: sfink, Assigned: sfink)
Details
Attachments
(1 file)
1.48 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
The sanitizer builds use TOOLTOOL_CHECKOUT to find the llvm-symbolizer binary. For local builds, that won't work.
Assignee | ||
Comment 1•6 years ago
|
||
But for local builds, we will probably have clang installed in ~/.mozbuild (that's the default for mach bootstrap), so fall back to that instead of the directory I personally happened to copy things to. nbp: Thanks for volunteering to take testing-related patch reviews! My apologies in advance for all the random bits and pieces I'll be sending your way. Ordinarily, my default reviewer is jonco, but I send him too much stuff already and most of this should be pretty minor from a reviewing perspective. I hope.
Attachment #8982297 -
Flags: review?(nicolas.b.pierron)
Comment 2•6 years ago
|
||
Comment on attachment 8982297 [details] [diff] [review] Default to mach-installed clang directory for sanitizer tools Review of attachment 8982297 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/devtools/automation/autospider.py @@ +23,5 @@ > scripts = pathmodule.join(fixup(cwd), fixup(pathmodule.dirname(__file__))) > js_src = pathmodule.abspath(pathmodule.join(scripts, "..", "..")) > source = pathmodule.abspath(pathmodule.join(js_src, "..", "..")) > tooltool = pathmodule.abspath(env.get('TOOLTOOL_CHECKOUT', > + pathmodule.expanduser("~/.mozbuild"))) nit: Use the following default value: env.get('MOZBUILD_STATE_PATH', pathmodule.expanduser(pathmodule.join('~', '.mozbuild'))) Taken from toolkit/moz.configure
Attachment #8982297 -
Flags: review?(nicolas.b.pierron) → review+
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/30c5d06e47f0 Default to mach-installed clang directory for sanitizer tools, r=nbp
Comment 4•6 years ago
|
||
Backed out changeset 30c5d06e47f0 (bug 1465895) for spidermonkey bustages. Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/a6d7c670b2f564c8c1c0fee8652dde0ec308ab10 Push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=30c5d06e47f09e78e399f1d93878af63aad2deea&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=success&filter-resultStatus=pending&filter-resultStatus=running&selectedJob=181284024 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=181284024&repo=mozilla-inbound&lineNumber=739 Traceback (most recent call last): File "./src/js/src/devtools/automation/autospider.py", line 37, in <module> fixup=lambda s: re.sub(r'^(\w):', r'/\1', s)) File "./src/js/src/devtools/automation/autospider.py", line 29, in directories pathmodule.expanduser("~/.mozbuild")))) File "c:\mozilla-build\python\lib\posixpath.py", line 261, in expanduser import pwd ImportError: No module named pwd
Flags: needinfo?(sphink)
Assignee | ||
Comment 5•6 years ago
|
||
This is... harder to land than anticipated. First, the 'pwd' module is mysteriously missing, as you can see in comment 4. So I had it fall back to os.environ['HOME']. Which now claims (on try) that $HOME doesn't exist??! Hm -- come to think of it, why did it get that far? In automation, TOOLTOOL_CHECKOUT should be set.
Assignee | ||
Comment 6•6 years ago
|
||
Oh. These failures are all on Windows. I guess that makes more sense. Though I'm still not sure why mozilla-build's python would have posixpath but not pwd.
Assignee | ||
Comment 7•6 years ago
|
||
oh, duh. "pwd" != "print working directory". pwd is PassWord Database. :(
Updated•6 years ago
|
Priority: -- → P3
Assignee | ||
Comment 8•3 years ago
|
||
I'm pretty sure this code has been rewritten.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(sphink)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•