Skip to content
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

Be clear that exit code 2 means partial success #740

Open
tristanlatr opened this issue Oct 4, 2023 · 3 comments
Open

Be clear that exit code 2 means partial success #740

tristanlatr opened this issue Oct 4, 2023 · 3 comments

Comments

@tristanlatr
Copy link
Contributor

Since the non-zeros exit code generally means a CI failure. The documentation should we more clear regarding the fact the exit code 2 will be returned in case of partial success: the documentation generated will still be useful and can be presented to users.

I wonder if it doesn’t make sense to change the default behavior of pydoctor to match common behavior. That is that non zero exit code should be returned only if pydoctor actually failed. Unless option -W is provided.

@glyph @adiroiban

@adiroiban
Copy link
Member

I agree.
I think it makes sense to exit with 0 if the output is usable.

And use non-zero exit code only for -W

Thanks for filling this ticket.

@adiroiban
Copy link
Member

btw. I have updated twisted/twisted to use 23.9.0

all looks good https://docs.twisted.org/en/latest/api/index.html

I now see that in tox we ignore the exit code. we have - pydoctor src/twisted

so there are errors that are now raised in the CI.... but I think that this is an issue with twisted/twisted

https://github.com/twisted/twisted/actions/runs/6487412638/job/17617670222

I will try to update the twiste/twisted codebase, so that there are no pydoctor errors or warnings, and then we will see any issue as part of the PR checks

@tristanlatr
Copy link
Contributor Author

Yes thank you that would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants