Skip to content

inject host time into datastream wasm rules engine (SCHY-471)#37

Merged
cbrady merged 2 commits into
mainfrom
chris/schy-471-datastream-wasm-rules-engine-panics-unreachable-on-wasmtime
Jul 14, 2026
Merged

inject host time into datastream wasm rules engine (SCHY-471)#37
cbrady merged 2 commits into
mainfrom
chris/schy-471-datastream-wasm-rules-engine-panics-unreachable-on-wasmtime

Conversation

@cbrady

@cbrady cbrady commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The raw wasm has no clock under wasmtime, so metric-period reset computation trapped (wasm unreachable) and entitled companies wrongly fell back to the flag default. Call setCurrentTimeMillis with the host wall-clock before checkFlagCombined; add a regression test that reproduces the trap and asserts correct evaluation.

The raw wasm has no clock under wasmtime, so metric-period reset
computation trapped (wasm unreachable) and entitled companies wrongly
fell back to the flag default. Call setCurrentTimeMillis with the host
wall-clock before checkFlagCombined; add a regression test that
reproduces the trap and asserts correct evaluation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cbrady cbrady self-assigned this Jul 14, 2026
Use assert over assert_equal true, and add the required blank lines
before assertion methods (Minitest/AssertTruthy,
Minitest/EmptyLineBeforeAssertionMethods).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cbrady cbrady merged commit e0b420f into main Jul 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants