Skip to content

Comments

chore(nimbus): use rust jexl evaluator in all tests#13957

Merged
jaredlockhart merged 1 commit intomainfrom
13956
Nov 17, 2025
Merged

chore(nimbus): use rust jexl evaluator in all tests#13957
jaredlockhart merged 1 commit intomainfrom
13956

Conversation

@jaredlockhart
Copy link
Collaborator

Becuase

  • We recently saw a case where we added a jexl expression that was valid in desktop but not in the sdk
  • The tests used the python jexl evaluator which does not exactly match the behaviur of the rust one used in the sdk
  • We have access to the rust evaluator so we can use it to validate jexl expressions in all the tests

This commit

  • Adds a validate jexl function that uses both the python evaluator and optionally the rust evaluator for non desktop expressions
  • Updates all the jexl validation tests to use it
  • This was checked and would have caught the recent regression

fixes #13956

@jaredlockhart
Copy link
Collaborator Author

Blocked on #13948

@yashikakhurana
Copy link
Contributor

@jaredlockhart oh you got that 💯 , I started looking at this morning, Thank you 🙏

Copy link
Member

@freshstrangemusic freshstrangemusic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent

Copy link
Contributor

@yashikakhurana yashikakhurana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks @jaredlockhart more intact test cases

Becuase

* We recently saw a case where we added a jexl expression that was valid in desktop but not in the sdk
* The tests used the python jexl evaluator which does not exactly match the behaviur of the rust one used in the sdk
* We have access to the rust evaluator so we can use it to validate jexl expressions in all the tests

This commit

* Adds a validate jexl function that uses both the python evaluator and optionally the rust evaluator for non desktop expressions
* Updates all the jexl validation tests to use it
* This was checked and would have caught the recent regression

fixes #13956
@jaredlockhart jaredlockhart added this pull request to the merge queue Nov 17, 2025
Merged via the queue into main with commit 55bc087 Nov 17, 2025
17 checks passed
@jaredlockhart jaredlockhart deleted the 13956 branch November 17, 2025 21:14
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.

Validate all JEXL with Rust evaluator

3 participants