I treat clear bug reports, regression tests, and documentation examples as connected parts of maintaining reliable software, and I start uncertain reports as discussions.
I received a report that the last FastAPI release broke some use cases.
I described the use case as valid and should be supported as it was standard @pydantic.
The PR from the previous release that broke that use case had all tests passing, as all merged PRs did.
I said just reverting the PR wouldn't be enough; I needed a test to ensure it wouldn't be broken again by accident in the future.
My tests run mainly from the same code examples in the docs, so readers can normally copy and paste the examples and have them work.
I keep 100% test coverage.
I describe the chain as: Coverage ensures tests -> tests ensure code examples -> code examples ensure docs.
- My described fix workflow is: Revert the PR; Add source code examples with the use case; Add docs that include those new code examples; Add tests for those new code examples; Ensure coverage stays at 100%.
I don't allow reporting bugs because I think people would report questions as bugs much more frequently; I estimate that 80% of those are just questions, in most cases caused by an error in the user code.
I now start reports as Discussion questions.
Related: documentation quality and practice, granular bug fix releases, open source project maintenance