Conversation
Reviewer's GuideAdds a new design document describing the standard error-handling conventions for C source files under src/, including expected function signatures, success/failure return patterns, and libcrun_error_s usage, with a placeholder section for documented exceptions. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Thanks for tackling this one! Do you think we could also add an |
|
TMT tests failed. @containers/packit-build please check. |
8c03be9 to
c789d63
Compare
Sounds like a good idea. |
|
I could also that I'm not so experienced in writing this type of documentation. Feel free to close this PR and open another instead. (Probably an AI would do a better job) |
|
@eriksjolund is this still WIP? the description says so but I'm not sure it's up to date. |
I removed the |
c789d63 to
1288a79
Compare
Sure, I added a link in AGENTS.md I also removed the last line in design-docs/error_handling.md |
|
Test (check) failure is a flake; addressed by #1987 |
| Functions that can return a failure to the caller, take the argument | ||
| `libcrun_error_t *err` and return an int or a pointer. | ||
|
|
||
| If the function succeeds, then |
There was a problem hiding this comment.
Should we also describe a special case of returning a positive (> 0) int here?
There was a problem hiding this comment.
Is it this the special case you are referring to?
https://github.com/containers/crun/blob/main/src/libcrun/container.c#L1583-L1584
Closes: containers#1860 Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
1288a79 to
b0847b3
Compare
Closes: #1860
Summary by Sourcery
Documentation: