-
Notifications
You must be signed in to change notification settings - Fork 377
container: add missing crun_make_error #1872
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
container: add missing crun_make_error #1872
Conversation
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR enhances error reporting in exec_process_entrypoint by replacing raw returns with structured crun_make_error calls, ensuring consistent and informative error propagation for clearenv and exec failures. Class diagram for updated error handling in exec_process_entrypointclassDiagram
class exec_process_entrypoint {
+int clearenv()
+int crun_make_error(err, errno, message)
+int exec_path
+int process->args
+custom_handler->vtable->name
}
exec_process_entrypoint --> crun_make_error : uses for error reporting
exec_process_entrypoint --> clearenv : calls
exec_process_entrypoint --> exec_path : executes
exec_process_entrypoint --> process : accesses args
exec_process_entrypoint --> custom_handler : accesses vtable->name
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TMT tests failed. @containers/packit-build please check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It looks like the errors are missing.
I reused the error message from here:
crun/src/libcrun/container.c
Line 1668 in 92977c0
Feel free to suggest another error message if it's bad to have exactly the same
error message.
Summary by Sourcery
Add missing error creation calls to return descriptive errors for environment clearing and process execution failures
Bug Fixes: