Skip to content

Automatically add execution context to Rails.error.context#27

Merged
julik merged 1 commit into
julik:mainfrom
skatkov:rails-error-context
May 17, 2026
Merged

Automatically add execution context to Rails.error.context#27
julik merged 1 commit into
julik:mainfrom
skatkov:rails-error-context

Conversation

@skatkov
Copy link
Copy Markdown
Contributor

@skatkov skatkov commented May 14, 2026

No description provided.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 14, 2026

CLA assistant check
All committers have signed the CLA.

@skatkov skatkov force-pushed the rails-error-context branch from edee630 to 309a6f4 Compare May 14, 2026 13:53
@skatkov skatkov force-pushed the rails-error-context branch from 309a6f4 to 50cfb84 Compare May 14, 2026 14:11
{
workflow_id: workflow.id,
workflow_class: workflow.class.name,
step_execution_id: step_execution.id,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Is this always set? I remember there being a few cases where the step_execution is not yet retrieved, but an error already gets reported. Can you check this and if needed add a test? this may need a &

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

error_context is only called after @step_execution has been assigned. All internal Rails.error.report paths also happen after the executor has entered call.

We can, of course, add & defensively. But with the current flow of things, I would say it's not required.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

ok let me and my roborains take a quick look

@julik julik merged commit b0f727d into julik:main May 17, 2026
8 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.

3 participants