Skip to content

feat: abort messages #979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
Merged

Conversation

niermann999
Copy link
Contributor

@niermann999 niermann999 commented Apr 16, 2025

Allow to pass additional messages to the navigator abort function that contain the reason for the failure. This will make it easier to debug, because it can be seen right away from where abort was called and why. The reason for the error is also preserved in the print inspector, which makes it easier to print it to the user in tests outside the debug file.

@niermann999 niermann999 force-pushed the feat-abort-messages branch 2 times, most recently from 0d23be8 to 4c54781 Compare April 16, 2025 18:01
@niermann999 niermann999 added the enhancement New feature or request label Apr 16, 2025
@niermann999 niermann999 force-pushed the feat-abort-messages branch 6 times, most recently from 9199348 to 3b54d7d Compare April 18, 2025 07:16
@niermann999 niermann999 force-pushed the feat-abort-messages branch 2 times, most recently from 9199348 to 7ad3756 Compare April 18, 2025 16:51
@niermann999

This comment was marked as outdated.

@niermann999 niermann999 added the blocked This item is blocked by another item label Apr 18, 2025
@niermann999 niermann999 force-pushed the feat-abort-messages branch 2 times, most recently from 800d0e7 to dd11e06 Compare April 28, 2025 11:13
@niermann999 niermann999 removed the blocked This item is blocked by another item label Apr 28, 2025
@niermann999 niermann999 force-pushed the feat-abort-messages branch 2 times, most recently from 329838e to c5c90bc Compare April 28, 2025 11:34
Comment on lines 231 to 235
template <typename G>
DETRAY_HOST_DEVICE inline auto abort(const G &) -> bool {
return abort();
}
Copy link
Member

Choose a reason for hiding this comment

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

What G supposed to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the call interface impl corresponding to the call containing the functor debug_msg_generator_t in the navigator. So it stands for "generator" I guess, but I can spell it out

@niermann999 niermann999 force-pushed the feat-abort-messages branch from c5c90bc to 4f20e69 Compare April 28, 2025 13:06
@niermann999 niermann999 force-pushed the feat-abort-messages branch from 4f20e69 to 2c6e4db Compare April 28, 2025 13:12
Copy link
Member

@stephenswat stephenswat left a comment

Choose a reason for hiding this comment

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

I trust your judgement that this is the superior solution. 👍

@niermann999
Copy link
Contributor Author

I trust your judgement that this is the superior solution. 👍

Maybe I am just confused by what you mean. But lets for now move ahead with this PR

@niermann999 niermann999 merged commit 737247b into acts-project:main Apr 29, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants