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•3 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•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
Assignee | ||
Comment 6•3 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-mozjs
file - 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•3 years ago
|
||
Can you remind me why local builds of js need jemalloc enabled by default?
Assignee | ||
Comment 8•3 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•3 years ago
|
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Comment hidden (offtopic) |
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 13•3 years ago
|
||
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/15f0e4e860b5 add configure option --js-package and stop clearing MOZ_AUTOMATION for SM(pkg) r=glandium,firefox-build-system-reviewers
Comment 14•3 years ago
|
||
bugherder |
Description
•