fix tests
This commit is contained in:
@@ -922,6 +922,7 @@ function load_log_config() {
|
||||
type: "console",
|
||||
format: "pretty",
|
||||
channels: ["*"],
|
||||
exclude: ["system", "shop", "build"],
|
||||
stack: ["error"]
|
||||
}
|
||||
}
|
||||
@@ -1845,11 +1846,44 @@ $_.clock(_ => {
|
||||
|
||||
// --- Auto-boot: pre-compile uncached deps before running ---
|
||||
// Only auto-boot for the root program (not child actors, not boot itself).
|
||||
// Delegates all discovery + compilation to boot.ce (separate actor/memory).
|
||||
// Quick-check deps inline; only spawn boot actor if something needs compiling.
|
||||
var _is_root_actor = !_cell.args.overling_id
|
||||
var _skip_boot = !_is_root_actor || prog == 'boot' || prog == 'compile_worker'
|
||||
|
||||
if (_skip_boot) {
|
||||
var _needs_boot = false
|
||||
var _boot_check = function() {
|
||||
var _deps = shop.trace_deps(prog_path)
|
||||
var _bi = 0
|
||||
var _bs = null
|
||||
while (_bi < length(_deps.scripts)) {
|
||||
_bs = _deps.scripts[_bi]
|
||||
if (native_mode) {
|
||||
if (!shop.is_native_cached(_bs.path, _bs.package)) {
|
||||
_needs_boot = true
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if (!shop.is_cached(_bs.path)) {
|
||||
_needs_boot = true
|
||||
return
|
||||
}
|
||||
}
|
||||
_bi = _bi + 1
|
||||
}
|
||||
_bi = 0
|
||||
while (_bi < length(_deps.c_packages)) {
|
||||
if (_deps.c_packages[_bi] != 'core' && !shop.has_c_manifest(_deps.c_packages[_bi])) {
|
||||
_needs_boot = true
|
||||
return
|
||||
}
|
||||
_bi = _bi + 1
|
||||
}
|
||||
} disruption {
|
||||
_needs_boot = true
|
||||
}
|
||||
if (!_skip_boot) _boot_check()
|
||||
|
||||
if (_skip_boot || !_needs_boot) {
|
||||
run_program()
|
||||
} else {
|
||||
$_.start(function(event) {
|
||||
|
||||
Reference in New Issue
Block a user