The GitHub Actions job "CI" on tvm-ffi.git/tvm-ffi-structured-error-chain-for-recursive-ir-visits has failed. Run started by GitHub user tqchen (triggered by tqchen).
Head commit for run: c14a0e10d22e37873c23abfaedcd8d2d38921051 / tqchen <[email protected]> [EXTRA][FEAT] StructuralErrorContext for structural-context-aware error reporting When code throws while recursively visiting an Object tree, the resulting error message lacks position context — the user sees what went wrong but not WHERE in the tree. This change adds a typed payload to attach the visit chain to Error and resolve it to a structured access path. API --- - `StructuralErrorContext` typed payload in `tvm/ffi/extra/`, holding a `reverse_visit_pattern` (innermost-first breadcrumb trail) and an optional `previous_error_context` (preserved when wrapping a pre-existing payload in `extra_context`). - `TVM_FFI_STRUCTURAL_VISIT_BEGIN()` / `TVM_FFI_STRUCTURAL_VISIT_END(node)` macros instrument the visit dispatch. On throw, they populate the StructuralErrorContext attached to the in-flight Error. - `StructuralErrorContext::FindAccessPaths(root, ctx, allow_prefix_match)` walks `root` via reflection and returns `Array<reflection::AccessPath>` for matched positions. Strict full-match by default; opt-in `allow_prefix_match=true` for best-effort partial reporting. - `StructuralErrorContext::TryGetFromError(err)` inline helper fetches the payload from an Error. Tests cover macro-builds-chain and FindAccessPaths-resolves-paths separately, including sparse-pattern anchoring, CSE multi-match, partial chains, and the `allow_prefix_match` toggle. Report URL: https://github.com/apache/tvm-ffi/actions/runs/25771266043 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
