Consider using MOZ_AUTOMATION for SM(pkg)
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox90 | --- | fixed |
People
(Reporter: sfink, Assigned: sfink)
References
Details
Attachments
(1 file, 3 obsolete files)
| Assignee | ||
Comment 1•4 years ago
|
||
Heh. The first failure is pointedly relevant:
[task 2021-04-16T17:50:09.377Z] 0:00.84 ERROR: unable to resolve VCS type; must run from a source checkout when MOZ_AUTOMATION is set
| Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 3•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
| Assignee | ||
Comment 5•4 years ago
|
||
| Assignee | ||
Comment 6•4 years ago
|
||
I'm not a fan of having --enable-project take something that is not a directory containing a moz.configure file just to work around one check in configure (AFAICT) about VCS and MOZ_AUTOMATION. I'd rather allow to override just that.
Ok. To be clear, it would control both the VCS detection as well as the default for --enable-jemalloc. And I guess I have a preference for it to be done automatically when you're configuring the mozjs source tree.
Before I write the patch (for once), let me check: would you be ok with me adding a --js-package flag that
- is defaulted based on the presence of a
README-mozjsfile - skips the VCS check
- sets --disable-jemalloc by default
?
The goal is to make ./mach build within a mozjs source package do something roughly reasonable.
I finally know my way around moz.configure enough now that it won't be hard to implement whatever is acceptable.
Comment 7•4 years ago
|
||
Can you remind me why local builds of js need jemalloc enabled by default?
| Assignee | ||
Comment 8•4 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #7)
Can you remind me why local builds of js need jemalloc enabled by default?
Because they are proxies for testing the JS engine as it would be embedded in the browser, and that would have jemalloc enabled. Not only the exact allocation behavior is affected, but also we make use of some differences in the available API surface -- jemalloc_ptr_info and malloc_good_size, for example. The first is for debug assertions, the second changes behavior. We want to maximize the probability that issues that exist in the browser will also exist in the shell builds.
| Assignee | ||
Updated•4 years ago
|
| Comment hidden (offtopic) |
| Comment hidden (offtopic) |
| Comment hidden (offtopic) |
| Comment hidden (offtopic) |
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
| bugherder | ||
Description
•