Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
324 commits
Select commit Hold shift + click to select a range
9b449e3
Use matching Playwright container for graph tests
VEZY Nov 11, 2026
e6c428a
Run graph asset check in trusted workspace
VEZY Nov 11, 2026
de6922d
Validate retained outputs against typed destination views
VEZY Nov 11, 2026
5c5c17b
Admit destination groups before constructing typed views
VEZY Nov 11, 2026
81de927
Inline finite admission before dispatching typed target factories
VEZY Nov 11, 2026
032eece
Preserve prepared types during environment refresh and output setup
VEZY Nov 12, 2026
9477cb2
Prepare typed global environment sampling recipes
VEZY Nov 12, 2026
c5f8062
Keep environment variable inventories concretely typed
VEZY Nov 12, 2026
c358778
Keep missing-environment diagnostics concretely typed
VEZY Nov 12, 2026
d790bff
Collect environment names without tuple broadcasting
VEZY Nov 12, 2026
a9b6a77
Admit environment plan fields before typed construction
VEZY Nov 12, 2026
d5df2b6
Grow temporal buffers through typed output carriers
VEZY Nov 13, 2026
939e30d
Read canonical outputs through typed status storage
VEZY Nov 13, 2026
143ed96
Keep retention metadata and lifecycle identities concrete
VEZY Nov 13, 2026
6c28bc1
Preserve concrete input refresh and output preallocation
VEZY Nov 13, 2026
5af8f82
Preserve input binding families through canonical lifecycle refresh
VEZY Nov 13, 2026
2967448
Admit lifecycle applications through their prepared metadata
VEZY Nov 13, 2026
81d0655
Keep the lifecycle input cache capture concrete
VEZY Nov 13, 2026
82f85ac
Retain binding families in lifecycle target indexes
VEZY Nov 13, 2026
0653783
Construct model status views from prepared type families
VEZY Nov 13, 2026
b4e4a18
Keep preparation metadata concrete through binding indexes
VEZY Nov 13, 2026
642ef32
Admit lifecycle views and status recipes at typed boundaries
VEZY Nov 13, 2026
a2b2112
Preserve typed temporal views and stage growth before mutation
VEZY Nov 13, 2026
c6f1dbe
Index resolved call plans and unify output status preparation
VEZY Nov 13, 2026
f8f0d3a
Keep lifecycle target removal inside prepared identity families
VEZY Nov 13, 2026
c66c6c6
Derive hard-call storage from resolved plan and identity types
VEZY Nov 13, 2026
93eb368
Validate writer ownership through prepared application metadata
VEZY Nov 13, 2026
dec8173
Retain exact declared port types during CompositeModel preparation
VEZY Nov 13, 2026
08acb20
Format writer identities without generic array display
VEZY Nov 13, 2026
2cb8dd6
Inline canonical default staging at the typed application boundary
VEZY Nov 13, 2026
793ed73
Retain typed application ownership while refreshing hard calls
VEZY Nov 13, 2026
30df1ab
Prepare concrete target caches and typed output defaults
VEZY Nov 13, 2026
35273e5
Keep the registry identity type immutable during growth refresh
VEZY Nov 13, 2026
97a64a0
Preserve concrete selector keys and canonical status recipes
VEZY Nov 13, 2026
c06d4bf
Keep selector cache components and lifecycle identities concrete
VEZY Nov 13, 2026
4d15a31
Prepare source reference families and honor effective model defaults
VEZY Nov 13, 2026
2d32f5e
Unify input default staging and carrier wiring
VEZY Nov 13, 2026
bb40cfc
Prepare typed output retention from execution schemas
VEZY Nov 13, 2026
b632c2b
Publish registration conversions only after successful admission
VEZY Nov 13, 2026
09af511
Keep output request refresh inside admitted type boundaries
VEZY Nov 14, 2026
da364b1
Resolve output references through prepared variable names
VEZY Nov 14, 2026
a57fcac
Read output references through named status callbacks
VEZY Nov 14, 2026
7476fbb
Preserve output request action specialization across metadata gates
VEZY Nov 14, 2026
c9dbf4b
Keep growth and temporal retention inside prepared metadata owners
VEZY Nov 14, 2026
0a48bb4
Prepare prospective Many types without converting existing source cells
VEZY Nov 14, 2026
a2930bf
Keep growth views and private snapshots inside prepared type admissions
VEZY Nov 14, 2026
8fcd452
Reuse one inline application gate and typed Many preservation branch
VEZY Nov 14, 2026
2183cdd
Admit input status recipes and references through their prepared owners
VEZY Nov 14, 2026
3c254de
Keep dynamic input memberships in vectors and derive selector traits
VEZY Nov 14, 2026
ebcacfe
Share Many inputs through one cache with typed query and plan indexes
VEZY Nov 14, 2026
287d547
Admit temporal initials before typed construction and format source d…
VEZY Nov 14, 2026
0dea670
Keep source matching and query hashing inside concrete metadata bound…
VEZY Nov 14, 2026
d4e2537
Keep writer policies and selector identities inside their prepared fa…
VEZY Nov 14, 2026
feb2681
Render source and policy diagnostics through the structural printer
VEZY Nov 14, 2026
aa1ddfd
Preserve source identity families and admit final canonical producers
VEZY Nov 14, 2026
92598e4
Keep lifecycle references and default staging inside prepared schemas
VEZY Nov 14, 2026
b63b2b2
Admit lifecycle identities and simplify passive geometry snapshots
VEZY Nov 14, 2026
cd55175
Normalize instance roots and retain source ownership identity types
VEZY Nov 14, 2026
ffe1aeb
Retain authored declaration kinds for prepared status schemas
VEZY Nov 14, 2026
3dd328a
Prepare fixed canonical Status schemas at construction
VEZY Nov 15, 2026
83bcbaf
Reuse official Status boxes and invalidate rejected timelines
VEZY Nov 15, 2026
605e34e
Retain prepared names and identity types through admission
VEZY Nov 15, 2026
9087d56
Admit status preparations before input reference callbacks
VEZY Nov 15, 2026
aa62df8
Admit newborn statuses at the registry entry boundary
VEZY Nov 15, 2026
d18915f
Prepare future from-status sources with their real reference families
VEZY Nov 15, 2026
4b608fe
Inline the admitted status handoff at registration
VEZY Nov 15, 2026
84e948e
Keep initial status admission in the registration entry
VEZY Nov 15, 2026
0832e2d
Publish admitted objects in the same registration worker
VEZY Nov 15, 2026
8619cb5
Stabilize prepared status evidence, transforms and diagnostics
VEZY Nov 15, 2026
b5ef11d
Keep status admission in one boundary and verify official views
VEZY Nov 16, 2026
d914d9e
Keep status admission independent of environment port configuration
VEZY Nov 16, 2026
8a81cd1
Capture only application slots while selecting permission plans
VEZY Nov 16, 2026
824aaa2
Retain configured raw numeric families in materialized scene exports
VEZY Nov 16, 2026
eab67a3
Diagnose required values from the captured preparation
VEZY Nov 16, 2026
e6ea2af
Retain prepared owners across runtime refresh
VEZY Nov 16, 2026
3124e5a
Align execution fixtures with prepared canonical status
VEZY Nov 16, 2026
e8c2e6b
Clarify explicit initial data for MTG growth
VEZY Nov 16, 2026
7145ac8
Admit native lifecycle operands before dispatch
VEZY Nov 16, 2026
b40031d
Reprepare canonical status after graph edits
VEZY Nov 16, 2026
eeb829a
Compile the configuration authored by CompositeModel
VEZY Nov 16, 2026
31966da
Bound compilation of configured status admission
VEZY Nov 16, 2026
6ff1263
Type admission before its shared worker and stabilize compiled snapshots
VEZY Nov 16, 2026
2f13d4d
Update CI fixtures for prepared status admission
VEZY Nov 16, 2026
27570d6
Measure runtime input allocations in a typed helper
VEZY Nov 16, 2026
26a9241
Allow time for the compound graph editor scenario
VEZY Nov 16, 2026
b6f9fdd
Allow preview startup time and keep backend diagnostics
VEZY Nov 17, 2026
158a70d
test: use canonical GraphEditor namespace for cohort retirement
VEZY Nov 17, 2026
74fff8f
Bound scenario metadata and destination admission compilation
VEZY Nov 17, 2026
991a8b5
Keep lifecycle refresh operations inside typed owners
VEZY Nov 17, 2026
fc3482a
Keep source selection and rebind keys concrete
VEZY Nov 17, 2026
f54e1c3
Use prepared memberships for distributed refresh
VEZY Nov 17, 2026
1930c0b
Build distributed bindings from prepared plan groups
VEZY Nov 17, 2026
58e896f
Log individual test file boundaries
VEZY Nov 17, 2026
fd0e264
Keep distributed output column views concrete
VEZY Nov 17, 2026
ae54c8f
Store status admission routes as data
VEZY Nov 17, 2026
481a1cb
Keep distributed output declarations with their effective producer
VEZY Nov 18, 2026
9b1c467
Prepare retained output target types before the first organ appears
VEZY Nov 18, 2026
9b88910
Share writer ownership validation between preparation and growth
VEZY Nov 18, 2026
b04cb66
Commit prepared status references without capturing the model
VEZY Nov 18, 2026
1db4619
Match the XPalm benchmark to its versioned scientific reference
VEZY Nov 18, 2026
8b62ec9
Reuse projected status types across organs with the same kernel ports
VEZY Nov 18, 2026
717b152
Resolve distributed routes with their owning producers at preparation…
VEZY Nov 18, 2026
a747150
Use registered scale candidates to admit status at organ birth
VEZY Nov 18, 2026
340e3f4
Refresh execution targets that still reference rebuilt status views
VEZY Nov 18, 2026
636b22a
Prepare status admission routes by organ family and use local subtree…
VEZY Nov 18, 2026
2c045e4
Keep distributed destination columns typed through organ growth
VEZY Nov 18, 2026
9580144
Validate required fields through the registered status family
VEZY Nov 18, 2026
07ede0d
Test a newborn producer delivering to thirty existing leaves
VEZY Nov 18, 2026
93b22c0
Refresh existing status views only for organs whose reference cells c…
VEZY Nov 18, 2026
7864658
Preserve registry IDs and input plan types while resolving organ growth
VEZY Nov 18, 2026
821f410
Preserve registered identity types in scoped indexes and public objec…
VEZY Nov 18, 2026
8ebb864
Resolve growth queries inside each candidate source and reuse ancesto…
VEZY Nov 18, 2026
53bdcbe
Keep native growth regressions for local neighbours and distributed d…
VEZY Nov 18, 2026
0506b56
Keep a compact handle to each execution status snapshot
VEZY Nov 18, 2026
1c2ff40
Use canonical writer declarations to type direct status reads
VEZY Nov 18, 2026
b5ff85d
Pin downstream benchmarks to the triggering PSE commit
VEZY Nov 18, 2026
21d7c6f
Exercise sparse reference changes on a wide prepared status
VEZY Nov 18, 2026
761d268
Apply staged status references in one pass over the prepared layout
VEZY Nov 18, 2026
8044970
Copy wide status reference directories without boxing each slot
VEZY Nov 18, 2026
b75e60b
Stage model input and output defaults from their prepared declarations
VEZY Nov 18, 2026
02ffcf2
Format compound object identifiers in native lookup diagnostics
VEZY Nov 18, 2026
fd3d58f
Keep prospective object labels concrete during route admission
VEZY Nov 18, 2026
f28cc81
Prepare retained outputs from their application and timeline owners
VEZY Nov 18, 2026
e65ce52
Scan the supplied status references once during object admission
VEZY Nov 18, 2026
e9e6e3c
Avoid repeated nested target types during cohort preparation
VEZY Nov 18, 2026
82ff9e6
Admit declared future object identities when closing a prepared registry
VEZY Nov 18, 2026
1a09d5b
Use the canonical application slots when closing a fixed plan
VEZY Nov 18, 2026
39e8f2d
Require the payload type when constructing empty cohort slots
VEZY Nov 18, 2026
4efc195
Exercise ambiguous newborn calls with a declared leaf value
VEZY Nov 18, 2026
1eec4bd
Hash concrete call-owner fields in closed cohort dictionaries
VEZY Nov 18, 2026
638a989
Use typed object identities in model diagnostics
VEZY Nov 18, 2026
295c701
Resolve ancestor scopes through the same typed lookup
VEZY Nov 18, 2026
e6821c6
Index object labels after checking the prepared status owner
VEZY Nov 18, 2026
c18edfc
Exercise compound leaf identities in both growth runtimes
VEZY Nov 18, 2026
b6c8490
Preserve public object ordering for compiled compound identities
VEZY Nov 18, 2026
53aee78
Keep selector diagnostics typed for mixed registry identities
VEZY Nov 19, 2026
8e405b2
Reuse the native-safe Julia spelling of organ IDs in diagnostics
VEZY Nov 19, 2026
5c48db1
Format compound organ IDs consistently in input and output reports
VEZY Nov 19, 2026
b26f61f
Keep prospective organs in the prepared registry identity family
VEZY Nov 19, 2026
eeeb365
Keep mixed organ IDs concrete in simulation binding indexes
VEZY Nov 19, 2026
230ac05
Balance the full CI matrix around the Julia 1.10 prepared-call suite
VEZY Nov 19, 2026
4f72300
Keep the registry identity type when validating required inputs
VEZY Nov 19, 2026
ad69a59
Reuse route indexes for initial status preparation
VEZY Nov 19, 2026
83e6004
Read declared kernel ports directly from their prepared status
VEZY Nov 19, 2026
3652ea1
Validate required inputs from prepared model declarations
VEZY Nov 19, 2026
77e60af
Move reusable scenario tests to the lighter CI shard
VEZY Nov 19, 2026
aa0aca0
Allow cold macOS and downstream XPalm tests to finish
VEZY Nov 19, 2026
a7082d2
Keep input-default telemetry out of the staging return path
VEZY Nov 19, 2026
207b8a0
Keep declared reference cells inline in kernel statuses
VEZY Nov 19, 2026
570f83a
Share rebuilt input binding storage across previous binding types
VEZY Nov 19, 2026
394ab82
Index new consumer bindings by the prepared application ID
VEZY Nov 19, 2026
1ccbf81
Preserve temporal views within the same application family
VEZY Nov 19, 2026
c9dd9ac
Reuse prepared refresh state when extending temporal inputs
VEZY Nov 19, 2026
ec20ced
Read fresh defaults through the prepared port declarations
VEZY Nov 19, 2026
6ed3a0d
Index manual calls using their target identity vectors
VEZY Nov 19, 2026
718495b
Copy final state through the visible prepared status fields
VEZY Nov 19, 2026
c81510c
Keep built-in object identity type names out of native runtime sorting
VEZY Nov 19, 2026
04fd694
Preserve sorted registry objects and their live status in compiled qu…
VEZY Nov 19, 2026
e78d72e
Rebuild inputs and resolve hard calls through their prepared families
VEZY Nov 19, 2026
e933067
Construct and copy wide organ statuses through their prepared slots
VEZY Nov 19, 2026
f2b8215
Reuse scene indexes when refreshing calls, selectors and distributed …
VEZY Nov 20, 2026
8812561
Retain the declared weather row type when sampling a Tables row table
VEZY Nov 20, 2026
1b61cf5
Keep the prepared identity and input families for calls on newborn or…
VEZY Nov 20, 2026
265c1c5
Share input binding preparation across initial, growth and targeted c…
VEZY Nov 20, 2026
6f09dca
Use the prepared object identity domain for subtree moves and removals
VEZY Nov 20, 2026
358f982
Reuse current call contexts through one owner and descendant check
VEZY Nov 20, 2026
f99bd0a
Cover descendants created by an MTG accessor before a newborn is reje…
VEZY Nov 20, 2026
b99ea68
Write coupling and input validation errors with their concrete values
VEZY Nov 20, 2026
5e8359d
Resolve a subtree parent once when unlinking or moving its root
VEZY Nov 20, 2026
482cfbf
Bind the newborn application cache type on Julia 1.10
VEZY Nov 20, 2026
29f8fa6
Preserve the prepared types of newborn statuses and geometry events
VEZY Nov 20, 2026
8124ece
Preserve shared backing storage in compiled final-state snapshots
VEZY Nov 20, 2026
8ddcf69
Keep producer and destination diagnostics concrete during scene prepa…
VEZY Nov 20, 2026
6cf01c2
Keep the simulation schedule error compilable with JuliaC safe
VEZY Nov 20, 2026
c21dca1
Run hard calls while their selected targets are concrete
VEZY Nov 20, 2026
32cdff2
Use the prepared local output fields when constructing status views
VEZY Nov 20, 2026
01b0041
Reuse prepared update declarations when checking writer order
VEZY Nov 20, 2026
30b9a08
Keep the prepared identity type for hard-call growth deltas
VEZY Nov 20, 2026
5c99524
Read freshly included initializer bindings in their defining world
VEZY Nov 20, 2026
8e9e6ca
Resolve selected and retained calls from the current declaration
VEZY Nov 20, 2026
0bcebac
Load the generated weather dependency through PlantSimEngine
VEZY Nov 20, 2026
6fe9049
Use the trim-safe Libiconv wrapper in the compiled example
VEZY Nov 20, 2026
bda0b81
Resolve the same native library for both growth fixtures
VEZY Nov 20, 2026
572676c
Copy interned symbol arrays when initializing organ defaults
VEZY Nov 20, 2026
f746e93
Keep declared input and call types when refreshing live bindings
VEZY Nov 20, 2026
8c51f2a
Reconcile each local environment plan once and preserve provider iden…
VEZY Nov 20, 2026
1c5a16c
Share temporal input materialization across growth and ordinary steps
VEZY Nov 20, 2026
fb4066b
Own ordered newborn selections and preserve hard-call diagnostics
VEZY Nov 20, 2026
b138aad
Resolve distributed output selectors through their declared plan types
VEZY Nov 20, 2026
7bbcfad
Use the registered object location to bind input cells
VEZY Nov 20, 2026
a9d4b8d
Rebuild singular hard calls when their sole target changes
VEZY Nov 20, 2026
def1cca
Format hard-call diagnostics without compiling the Julia expression p…
VEZY Nov 20, 2026
32f70c3
Keep prepared output histories in their declared storage family
VEZY Nov 20, 2026
e14bef1
Use the admitted application and bindings when preparing newborn calls
VEZY Nov 20, 2026
031e0c1
Make nested call storage available to the schema generator
VEZY Nov 20, 2026
0996eb0
Use public MTG edits for tree-backed organ growth and rollback
VEZY Nov 20, 2026
3b03f0a
Keep the prepared cohort schema visible at hard-call growth sites
VEZY Nov 20, 2026
0c9c559
Normalize newborn object fields independently of the MTG column family
VEZY Nov 20, 2026
d6fe430
Share prepared registry construction with authored application fixtures
VEZY Nov 20, 2026
a5e8799
Document scientific initial values for MTG growth and native preparat…
VEZY Nov 20, 2026
b8131fd
Exercise rollback and reuse of live tree organs in the native growth …
VEZY Nov 20, 2026
cdebbe8
Reconnect status change watchers to their live registries when restor…
VEZY Nov 20, 2026
9195e82
Give supplied status fields the same slots across independent prepara…
VEZY Nov 20, 2026
6d54525
Infer default MTG routing label types for native organ growth
VEZY Nov 20, 2026
27a9ed5
Use the common model preparation in ten registry and call test suites
VEZY Nov 20, 2026
ab7d038
Keep the prepared history type when newborn initializers sample earli…
VEZY Nov 20, 2026
06e2f0f
Keep callee application types through ordered growth and share suffix…
VEZY Nov 20, 2026
0decf72
Document and exercise setting a new organ label independently of its …
VEZY Nov 20, 2026
4765ae1
Preserve the exact union of declared MTG label types across organ scales
VEZY Nov 20, 2026
fc7fdec
Preserve empty self-scoped status collections through organ growth
VEZY Nov 20, 2026
6f4433f
Check the retained newborn context before constructing its execution …
VEZY Nov 20, 2026
3d5a1b6
Split the long macOS manual-call test groups into a fifth shard
VEZY Nov 20, 2026
c9b4e6c
Explain abstract vector defaults in JuliaC safe builds
VEZY Nov 20, 2026
5ba2a9a
Balance the plan reuse tests across the existing macOS shards
VEZY Nov 20, 2026
70c3f00
Resolve dependency scopes with concrete selector arguments and regist…
VEZY Nov 21, 2026
59fff72
Compile scene-wide and relative dependency queries in the native grow…
VEZY Nov 21, 2026
09c5067
Document the Julia series used by the standalone Linux check
VEZY Nov 21, 2026
9fe00c5
Reuse unchanged execution groups before specializing the refresh call…
VEZY Nov 21, 2026
3cdc609
Validate new leaf input bindings before publishing growth
VEZY Nov 21, 2026
a55afb0
Exercise rejected leaf registration and repair in the JuliaC binary
VEZY Nov 21, 2026
6b2f03e
Exercise the first distributed leaf from day zero in the shared Julia…
VEZY Nov 21, 2026
e2aa012
Admit compiled model input bindings by prepared plan slot
VEZY Nov 21, 2026
11412e6
Resolve shared newborn inputs through their prepared binding type
VEZY Nov 21, 2026
d055022
Reuse admitted status references while preparing model defaults
VEZY Nov 21, 2026
7fc9fc0
Prepare nested call targets after resolving their existing cohort row
VEZY Nov 21, 2026
bddee98
Store shared and appended Many inputs within their prepared slots
VEZY Nov 21, 2026
7bab6b3
Exercise native growth fixtures with the shared per-slot input storage
VEZY Nov 21, 2026
54d2302
Retain affected input readers through their prepared slots during str…
VEZY Nov 21, 2026
44742b9
Validate selected status cells against required reader types during p…
VEZY Nov 21, 2026
ac7a80d
Infer staged consumer storage from its prepared cache before handling…
VEZY Nov 21, 2026
3510dd2
Resolve application targets before specializing the shared input recipe
VEZY Nov 21, 2026
98f60b1
Compare shared input storage after admitting each binding once
VEZY Nov 21, 2026
141c054
Prepare status fields declared by the MTG organ initializer
VEZY Nov 21, 2026
d2c250d
Compile nested calls for their admitted application types
VEZY Nov 21, 2026
844f259
Copy occupied status fields by their prepared reference types
VEZY Nov 21, 2026
2c0554a
Exercise the shared application lookup in prefix growth tests
VEZY Nov 21, 2026
fe83c0d
Store shared Many bindings while their concrete slot type is known
VEZY Nov 21, 2026
9f1dd76
Resolve the live shared binding before publishing a new consumer
VEZY Nov 21, 2026
d0d6a94
Resolve changed manual call targets through typed slots [skip ci]
VEZY Nov 21, 2026
8fa2404
Use typed private copies for retained output samples [skip ci]
VEZY Nov 22, 2026
a6b7855
Publish typed output tuples without rebuilding their tails [skip ci]
VEZY Nov 22, 2026
e49415c
Keep time-step table environment lookups concrete [skip ci]
VEZY Nov 22, 2026
3fed540
Copy packed boolean values before retaining samples [skip ci]
VEZY Nov 22, 2026
2dbaf65
Keep evaluated call snapshots typed during validation [skip ci]
VEZY Nov 22, 2026
48b771c
Commit environment updates through the typed binding [skip ci]
VEZY Nov 22, 2026
ff49aad
Preserve typed distributed output validation [skip ci]
VEZY Nov 22, 2026
a3ca075
Share typed traversal of immediate and evaluated outputs [skip ci]
VEZY Nov 22, 2026
aef02a4
Keep only publication metadata in captured call outputs [skip ci]
VEZY Nov 22, 2026
6d94f01
Preserve literal weather columns when sampling global forcing [skip ci]
VEZY Nov 22, 2026
f0bde54
Use the prepared weather row lookup for simulation clocks [skip ci]
VEZY Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/scripts/jet_analysis_guard_runtime.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Loaded in the full XPalm test subprocess before JET creates analysis tasks.
module JETAnalysisGuard

# Pkg probes cache flags with an empty LOAD_PATH before loading packages.
using Base.CoreLogging: AbstractLogger, global_logger
const Logging = Base.CoreLogging

struct AnalyzerErrorLogger{L<:AbstractLogger} <: AbstractLogger
inner::L
errors::Threads.Atomic{Int}
end

is_analyzer_error(level, source) =
level >= Logging.Error && source isa Module && first(Base.fullname(source)) === :JET

Logging.min_enabled_level(logger::AnalyzerErrorLogger) =
min(Logging.Error, Logging.min_enabled_level(logger.inner))

function Logging.shouldlog(logger::AnalyzerErrorLogger, level, source, group, id)
return is_analyzer_error(level, source) ||
(level >= Logging.min_enabled_level(logger.inner) &&
Logging.shouldlog(logger.inner, level, source, group, id))
end

Logging.catch_exceptions(logger::AnalyzerErrorLogger) =
Logging.catch_exceptions(logger.inner)

function Logging.handle_message(
logger::AnalyzerErrorLogger, level, message, source, group, id, file, line; kwargs...,
)
if is_analyzer_error(level, source)
Threads.atomic_add!(logger.errors, 1)
end
if level >= Logging.min_enabled_level(logger.inner) &&
Logging.shouldlog(logger.inner, level, source, group, id)
Logging.handle_message(logger.inner, level, message, source, group, id, file, line; kwargs...)
end
return nothing
end

function install!()
logger = AnalyzerErrorLogger(global_logger(), Threads.Atomic{Int}(0))
global_logger(logger)
atexit() do exit_code
count = logger.errors[]
if count > 0
println(stderr, "JET analysis incomplete: ", count, " internal analyzer error(s).")
# Julia catches exceptions from exit hooks; failing requires exit().
exit(iszero(exit_code) ? 1 : exit_code)
end
end
return nothing
end

end

JETAnalysisGuard.install!()
5 changes: 5 additions & 0 deletions .github/scripts/require_complete_jet.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Pkg forwards --load to cache probes, dependency precompilers, and test runners.
# Defining a runtime module in Main is invalid while an incremental image is built.
if !Base.generating_output()
include(joinpath(@__DIR__, "jet_analysis_guard_runtime.jl"))
end
119 changes: 119 additions & 0 deletions .github/scripts/test_require_complete_jet.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
using Test

const GUARD = joinpath(@__DIR__, "require_complete_jet.jl")

function guarded_case(packages, source)
output, errors = IOBuffer(), IOBuffer()
command = `$(Base.julia_cmd()) --startup-file=no --threads=2 --load=$GUARD -e $source`
load_path = join((packages, "@stdlib"), Sys.iswindows() ? ';' : ':')
process = run(pipeline(ignorestatus(addenv(command, "JULIA_LOAD_PATH" => load_path));
stdout=output, stderr=errors))
return (code=process.exitcode, output=String(take!(output)), errors=String(take!(errors)))
end

@testset "Pkg cache-flag probe with an empty LOAD_PATH" begin
output, errors = IOBuffer(), IOBuffer()
command = `$(Base.julia_cmd()) --code-coverage=none --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none --load=$GUARD --eval 'show(ccall(:jl_cache_flags, UInt8, ()))'`
process = run(pipeline(ignorestatus(addenv(command, "JULIA_LOAD_PATH" => ""));
stdout=output, stderr=errors))
cache_flags = (code=process.exitcode, output=String(take!(output)), errors=String(take!(errors)))
@test cache_flags.code == 0
@test cache_flags.output == sprint(show, parse(UInt8, cache_flags.output))
@test isempty(cache_flags.errors)
end

@testset "incremental precompilation leaves Main untouched" begin
mktempdir() do directory
input = joinpath(directory, "GuardPrecompileProbe.jl")
cache = joinpath(directory, "probe.ji")
object = joinpath(directory, "probe.o")
write(input, "module GuardPrecompileProbe; value() = 42; end")
source = """
@assert Base.generating_output(true)
@assert !isdefined(Main, :JETAnalysisGuard)
Base.include_package_for_output(Base.PkgId("GuardPrecompileProbe"), ARGS[1],
copy(DEPOT_PATH), copy(Base.DL_LOAD_PATH), copy(LOAD_PATH),
Base._concrete_dependencies, nothing)
"""
output, errors = IOBuffer(), IOBuffer()
command = `$(Base.julia_cmd()) --startup-file=no --output-incremental=yes --output-ji=$cache --output-o=$object --load=$GUARD --eval $source $input`
process = run(pipeline(ignorestatus(command); stdout=output, stderr=errors))
incremental = (code=process.exitcode, output=String(take!(output)), errors=String(take!(errors)))
@test incremental.code == 0
@test isempty(incremental.errors)
@test isfile(cache) && filesize(cache) > 0
@test isfile(object) && filesize(object) > 0
if isfile(cache)
@test !iszero(open(Base.isvalid_cache_header, cache))
end
end
end

@testset "incomplete JET analysis fails its test subprocess" begin
mktempdir() do packages
source_dir = mkpath(joinpath(packages, "JET", "src"))
write(joinpath(source_dir, "JET.jl"), """
module JET
using Logging
function analyze(; broken=false)
if broken
try
error("deliberate analyzer failure")
catch exception
@error "Analyzer worker aborted" exception
end
else
@info "Analysis completed"
end
return current_task()
end
module Workers
using Logging
fail() = @error "Another internal analyzer diagnostic"
end
end
""")

clean = guarded_case(packages, "using JET; JET.analyze()")
@test clean.code == 0
@test occursin("Analysis completed", clean.errors)
@test !occursin("analysis incomplete", clean.errors)

swallowed = guarded_case(packages, "using JET; JET.analyze(; broken=true)")
@test swallowed.code == 1
@test occursin("Analyzer worker aborted", swallowed.errors)
@test occursin("JET analysis incomplete: 1 internal analyzer error(s).", swallowed.errors)

worker = guarded_case(packages, """
using JET
parent = current_task()
task = Threads.@spawn JET.analyze(; broken=true)
@assert fetch(task) !== parent
""")
@test worker.code == 1
@test occursin("JET analysis incomplete: 1 internal analyzer error(s).", worker.errors)

concurrent = guarded_case(packages, """
using JET
@sync for _ in 1:32
Threads.@spawn JET.Workers.fail()
end
""")
@test concurrent.code == 1
@test occursin("JET analysis incomplete: 32 internal analyzer error(s).", concurrent.errors)

unrelated = guarded_case(packages, """
using Test, Logging, JET
@test_logs (:error, "expected unrelated error") @error "expected unrelated error"
@error "unrelated module error remains visible"
JET.analyze()
""")
@test unrelated.code == 0
@test occursin("unrelated module error remains visible", unrelated.errors)
@test !occursin("analysis incomplete", unrelated.errors)

prior_failure = guarded_case(packages, "using JET; JET.analyze(; broken=true); exit(7)")
@test prior_failure.code == 7
@test occursin("JET analysis incomplete: 1 internal analyzer error(s).", prior_failure.errors)
end
end
21 changes: 14 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ concurrency:
jobs:
test:
if: ${{ github.event_name != 'workflow_dispatch' || !inputs.juliac_safe }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - shard ${{ matrix.shard }}/${{ matrix.os == 'macOS-latest' && 5 || 4 }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
# The expanded full suite with coverage can exceed two hours on the latest Julia.
timeout-minutes: 180
# Cold compilation of the nested call tests can take 170 minutes on macOS 1.10.
timeout-minutes: ${{ matrix.os == 'macOS-latest' && matrix.version == '1.10' && 225 || 180 }}
permissions:
# needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
Expand All @@ -38,6 +38,10 @@ jobs:
- ubuntu-latest
- macOS-latest
- windows-latest
shard: [1, 2, 3, 4]
include:
- { os: macOS-latest, version: "1", shard: 5 }
- { os: macOS-latest, version: "1.10", shard: 5 }
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
Expand All @@ -48,6 +52,8 @@ jobs:
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: 4
PSE_TEST_SHARD_COUNT: ${{ matrix.os == 'macOS-latest' && 5 || 4 }}
PSE_TEST_SHARD_INDEX: ${{ matrix.shard }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v7
with:
Expand Down Expand Up @@ -88,6 +94,10 @@ jobs:
if: ${{ github.event_name != 'workflow_dispatch' || !inputs.juliac_safe }}
name: Graph editor E2E
runs-on: ubuntu-latest
container:
# Keep the browser image aligned with frontend/package-lock.json.
image: mcr.microsoft.com/playwright:v1.60.0-noble
options: --ipc=host
timeout-minutes: 30
permissions:
actions: write
Expand Down Expand Up @@ -123,13 +133,10 @@ jobs:
run: npm run build
- name: Check committed graph editor assets
run: |
git diff --exit-code -- frontend/dist || {
git -c safe.directory="$GITHUB_WORKSPACE" -C "$GITHUB_WORKSPACE" diff --exit-code -- frontend/dist || {
echo "frontend/dist is stale. Run npm run build in frontend/ and commit the rebuilt assets.";
exit 1;
}
- name: Install Playwright browser
working-directory: frontend
run: npx playwright install --with-deps chromium
- name: Run graph editor E2E tests
working-directory: frontend
run: npm run test:e2e
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/FullPerformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Check out PlantSimEngine
uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Check out XPalm
uses: actions/checkout@v7
Expand Down
43 changes: 32 additions & 11 deletions .github/workflows/Integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,35 @@ concurrency:
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: ${{ matrix.package.name }} - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
name: ${{ matrix.package.name }} - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}${{ matrix.test_args && ' - reference-regression' || '' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
timeout-minutes: ${{ matrix.timeout_minutes || 60 }}
permissions:
# needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false
matrix:
version:
- "1"
os:
- ubuntu-latest
package:
- { name: XPalm, user: PalmStudio, repo: XPalm.jl, branch: main, default: main }
- { name: PlantBiophysics, user: VEZY, repo: PlantBiophysics.jl, branch: master, default: master }
- { name: PlantGeom, user: VEZY, repo: PlantGeom.jl, branch: main, default: main }
include:
# Keep the complete XPalm suite, including JET, on Julia 1.12.
- version: "1.12"
os: ubuntu-latest
# The complete XPalm suite includes cold compilation and VPalm tests.
timeout_minutes: 120
package: { name: XPalm, user: PalmStudio, repo: XPalm.jl, branch: main, default: main }
- version: "1"
os: ubuntu-latest
package: { name: PlantBiophysics, user: VEZY, repo: PlantBiophysics.jl, branch: master, default: master }
- version: "1"
os: ubuntu-latest
package: { name: PlantGeom, user: VEZY, repo: PlantGeom.jl, branch: main, default: main }
# XPalm's existing mode runs its full-cycle scientific oracle on latest Julia.
- version: "1"
os: ubuntu-latest
timeout_minutes: 75
package: { name: XPalm, user: PalmStudio, repo: XPalm.jl, branch: main, default: main }
test_args: reference-regression
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
Expand Down Expand Up @@ -91,9 +102,14 @@ jobs:
"PlantSimEngine resolved to $(pse.source), expected $(realpath(pwd()))",
)
@info "Verified local PlantSimEngine test source" path=pse.source
- name: Test the JET analysis failure guard
if: ${{ matrix.package.name == 'XPalm' && !matrix.test_args }}
shell: julia --color=yes {0}
run: include(joinpath(pwd(), ".github", "scripts", "test_require_complete_jet.jl"))
- name: Run the downstream tests
env:
DOWNSTREAM_PACKAGE: ${{ matrix.package.name }}
DOWNSTREAM_TEST_ARGS: ${{ matrix.test_args || '' }}
shell: julia --threads 4 --color=yes --project=downstream --depwarn=yes {0}
run: |
using Pkg
Expand Down Expand Up @@ -126,7 +142,12 @@ jobs:
end

Pkg.status()
Pkg.test()
test_args = isempty(ENV["DOWNSTREAM_TEST_ARGS"]) ? String[] : [ENV["DOWNSTREAM_TEST_ARGS"]]
julia_args = String[]
if ENV["DOWNSTREAM_PACKAGE"] == "XPalm" && isempty(test_args)
push!(julia_args, "--load=" * joinpath(pwd(), ".github", "scripts", "require_complete_jet.jl"))
end
Pkg.test(; test_args, julia_args)
- name: Only succeed if the checks pass on the dependencies' main/master branches
if: ${{ matrix.package.branch != matrix.package.default }}
run: |
Expand Down
6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ know its scenario timestep unless the scientific model explicitly requires it.
## Lifecycle

- `add_organ!` is the high-level operation for MTG-backed growth. It creates
the node, reuses the model's MTG status policy, applies initial values,
registers the object, and returns its runtime `Status`.
the node from explicit `initial_status` data, applies the model's status
conversion/prepared-family checks, registers the object, and returns its
runtime `Status`. The MTG status accessor imports the initial tree only;
annotations/geometry stay in MTG attributes and no `node` field is inserted.
- Runtime status belongs to the model registry and is not stored in MTG
attributes. Use `model_status(model, node)` to access an MTG-backed object's
status and `source_node(model, object)` to retrieve its associated MTG node.
Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ to migrate mapping code to the newer API.
`Integrate()` and `Aggregate()` behavior.
- A dedicated benchmark suite for the multi-rate implementation.
- A new multi-rate documentation track:
[introduction](/Users/rvezy/Documents/dev/PlantSimEngine/docs/src/multirate/introduction.md),
[step-by-step tutorial](/Users/rvezy/Documents/dev/PlantSimEngine/docs/src/multirate/multirate_tutorial.md),
and [advanced configuration](/Users/rvezy/Documents/dev/PlantSimEngine/docs/src/multirate/advanced_configuration.md).
[introduction](https://github.com/VirtualPlantLab/PlantSimEngine.jl/blob/v0.14.0/docs/src/multirate/introduction.md),
[step-by-step tutorial](https://github.com/VirtualPlantLab/PlantSimEngine.jl/blob/v0.14.0/docs/src/multirate/multirate_tutorial.md),
and [advanced configuration](https://github.com/VirtualPlantLab/PlantSimEngine.jl/blob/v0.14.0/docs/src/multirate/advanced_configuration.md).

### Changed

Expand Down
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ Term = "22787eb5-b846-44ae-b979-8e399b8463ab"
[weakdeps]
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
JuliaC = "acedd4c2-ced6-4a15-accc-2607eb759ba2"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

[extensions]
PlantSimEngineGraphEditorExt = "HTTP"
PlantSimEngineJuliaCExt = "JuliaC"
PlantSimEngineSerializationExt = "Serialization"

[compat]
CSV = "0.10, 1.0"
Expand All @@ -35,6 +37,7 @@ Markdown = "1.10"
MultiScaleTreeGraph = "0.16.0"
PlantMeteo = "0.9.0"
Random = "1.10"
Serialization = "1.10"
Statistics = "1.10"
Tables = "1"
Term = "2"
Expand Down
Loading