Skip to content

Fixing ExitWithError action#160

Merged
zanjonke merged 2 commits intomainfrom
fix/exit_with_error
Apr 23, 2026
Merged

Fixing ExitWithError action#160
zanjonke merged 2 commits intomainfrom
fix/exit_with_error

Conversation

@zanjonke
Copy link
Copy Markdown
Contributor

This PR fixes the Unexpected error format: dict issue. This happens after 20 failed attempts to fix the conformance tests. The fix is to let the ExitWithError action return the RenderError object rather than previous_action_payload.

Putting this PR in WIP stage since we also need to update the message. The message

We've already tried to fix the issue by recreating the conformance tests but tests still fail. Please fix the issues manually. FRID: {self.frid_context.frid}, Render ID: {self.run_state.render_id}

doesnt feel right.

@zanjonke zanjonke self-assigned this Apr 14, 2026
@zanjonke zanjonke added the bug Something isn't working label Apr 14, 2026
@zanjonke zanjonke force-pushed the fix/exit_with_error branch from 07f1fe5 to 87e4665 Compare April 14, 2026 14:08
@zanjonke
Copy link
Copy Markdown
Contributor Author

@kaja-s please take a look at the message here and come up with a better example :)

Comment thread render_machine/code_renderer.py Outdated
@@ -59,7 +59,6 @@ def run(self):
previous_state = deepcopy(self.render_context.state)
self.render_context.script_execution_history.should_update_script_outputs = False
# Reset error message at start of each iteration to prevent stale data
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove this line as it's not needed

@kaja-s
Copy link
Copy Markdown
Collaborator

kaja-s commented Apr 17, 2026

I think this should be the message we communicate:

The renderer was unable to produce an implementation that passes conformance tests for functionality '{self.frid_context.frid}' after many attempts. Please review and rewrite the specification. (Render ID: {self.run_state.render_id})

@zanjonke zanjonke changed the title WIP: Fixing ExitWithError action Fixing ExitWithError action Apr 23, 2026
@zanjonke zanjonke merged commit a375321 into main Apr 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants