chore(deps): bump mlua to 0.12 #27241
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 395 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.358
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #27241"
general
weight: 0.35
pront
Summary
Bump
mluafrom 0.11 to 0.12.2 to match VRL (vectordotdev/vrl#2040).VRL
mainnow uses mlua 0.12, while Vector still uses 0.11. Both versions link the nativelualibrary, so Cargo refuses to resolve them together. This breaks VRL'sVector compatibilityCI check on every PR.mluato 0.12.2 and update the lockedvrlto currentmain, which includes the matching fix for log timestamps (vectordotdev/vrl#2066).Error::ToLuaConversionError:- Return
LuaError::external(...)for unsupported trace events.- Drop the matching arm in
mlua_error_code.LuaInt<T>wrapper that truncates before converting, and use it for integer metric fields (interval_ms, timestamp fields,sample_rates, histogramcounts, summarycount, sketchcount/k/n). Scripts such asinterval_ms = 1000 / 3keep working.RUSTSEC-2026-0173ignore fromdeny.toml. mlua 0.12 no longer pulls inproc-macro-error2.proc-macro-error2andproc-macro-error-attr2fromLICENSE-3rdparty.csv.The internal
error_codefor that trace-event case changes fromerror_converting_value_to_luatoexternal_error.References
Vector configuration
NA
How did you test this PR?
Fractional integer fields (new tests in
lib/vector-core/src/event/lua/metric.rsandlog.rs)| Input | Expected |
| --- | --- |
|
interval_ms = 1000 / 3| 333 || Metric timestamp with
nanosec = 1e9 / 3| 333333333 || Log timestamp from
os.date("!*t", 1584297428)withnanosec = 1e9 / 3|2020-03-15T18:37:08.333333333Z||
sample_rates = { 10 / 4 }| 2 ||
interval_ms = "333.9"| 333 ||
interval_ms = -1.5| Error |With truncation temporarily disabled, the metric truncation tests fail. The out-of-range test passes either way, so it only shows that rejecting bad values was not loosened. The log timestamp test fails with
number → u32: out of rangeagainst the previously lockedvrl, and passes with vectordotdev/vrl#2066.Everything else
make test FEATURES="transforms-lua" SCOPE="lua": all 77 tests pass, including the existing Lua transform and event-conversion tests.cargo clippywithtransforms-lua: no warnings.cargo check --locked --workspace --all-targetswith default features passes, which covers thevrl0.38 → 0.39 lock update.make check-deny: no new errors compared tomaster.dd-rust-license-tool checkwith 1.0.7, the version CI uses, passes.Does this PR include user facing changes?
For a new deprecation announcement, follow the deprecation policy and add a
deprecation.d/notice instead.no-changeloglabel to this PR.