Add --backend=dev support to roc test#9173
Draft
lukewilliamboswell wants to merge 1 commit intomainfrom
Draft
Conversation
Allow users to choose the dev backend (native code generation) for test evaluation via `roc test --backend=dev`, as an alternative to the default interpreter. This is useful when the interpreter has bugs (e.g. TypeMismatch errors) that the dev backend doesn't have. The dev path uses DevEvaluator to generate and execute native code for each expect expression. Unsupported expressions are reported as COMPILER_ERROR (yellow) to clearly indicate when the compiler can't handle an expression yet. Crashes are reported as failures. Test reporting now supports a three-state result (passed/failed/compiler_error). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thank you for your contribution! Sometimes PRs end up staying open for a long time without activity, which can make the list of open PRs get long and time-consuming to review. To keep things manageable for reviewers, this bot automatically closes PRs that haven’t had activity in 60 days. This PR hasn’t had activity in 30 days, so it will be automatically closed if there is no more activity in the next 30 days. Keep in mind that PRs marked |
Collaborator
Author
|
needs rebasing, but keep open until roc test supports the dev backends |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--backend=<interpreter|dev>flag toroc test, allowing users to choose the dev backend (native code generation) for test evaluation--backend=dev, unsupported expressions are reported as COMPILER_ERROR (yellow) rather than failing, giving clear visibility into what the dev backend can't handle yet--backend=interpreter) is unchangedThis is useful when the interpreter has bugs (e.g.
TypeMismatcherrors) that the dev backend doesn't have, letting tests pass that otherwise couldn't.🤖 Generated with Claude Code