Closed
Bug 1438866
Opened 6 years ago
Closed 6 years ago
Make mozsearch c++ indexer more windows-friendly
Categories
(Webtools :: Searchfox, enhancement)
Webtools
Searchfox
Tracking
(firefox60 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(3 files)
I have some patches that make the c++ indexer more windows friendly. i.e. they don't cause clang to immediately crash. This is needed for bug 1418415.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•6 years ago
|
||
I verified these patches don't affect the output on Linux, by comparing the contents of the the target.mozsearch-index.zip files from my try push [1] and the base revision [2]. [1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=29fde2456ba99b0e9b9df6729f2085bb416ed323&selectedJob=162544224 [2] https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=9b69cc60e5848f2f8802c911fd00771b50eed41f&filter-searchStr=searchfox&selectedJob=162375224
Assignee | ||
Comment 5•6 years ago
|
||
I also verified these patches successfully index m-c for me locally on a windows box.
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8951641 [details] Bug 1438866 - Use proper path separators for windows. https://reviewboard.mozilla.org/r/220930/#review226956
Attachment #8951641 -
Flags: review?(emilio) → review+
Comment 7•6 years ago
|
||
mozreview-review |
Comment on attachment 8951642 [details] Bug 1438866 - Add some utility code to help with debugging. https://reviewboard.mozilla.org/r/220932/#review226958 Not super-fan of adding debug-only code that is dead, but I guess as long as it's useful... it's fine. r=me
Attachment #8951642 -
Flags: review?(emilio) → review+
Comment 8•6 years ago
|
||
mozreview-review |
Comment on attachment 8951643 [details] Bug 1438866 - Mark empty filenames not interesting. https://reviewboard.mozilla.org/r/220934/#review226960 ::: build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp:180 (Diff revision 1) > It = FileMap.find(Id); > if (It == FileMap.end()) { > // We haven't seen this file before. We need to make the FileInfo > // structure information ourselves > std::string Filename = SM.getFilename(Loc); > - std::string Absolute = getAbsolutePath(Filename); > + std::string Absolute; Probably worth a comment in both places?
Attachment #8951643 -
Flags: review?(emilio) → review+
Assignee | ||
Comment 9•6 years ago
|
||
Added comments
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 13•6 years ago
|
||
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a04f505f9454 Use proper path separators for windows. r=emilio https://hg.mozilla.org/integration/autoland/rev/a42f1a25f088 Add some utility code to help with debugging. r=emilio https://hg.mozilla.org/integration/autoland/rev/d071f1a3ace4 Mark empty filenames not interesting. r=emilio
Comment 14•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a04f505f9454 https://hg.mozilla.org/mozilla-central/rev/a42f1a25f088 https://hg.mozilla.org/mozilla-central/rev/d071f1a3ace4
You need to log in
before you can comment on or make changes to this bug.
Description
•