Add hints for debugging CI issues (#399)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Seth Michael Larson · committed by GitHub · parent 65b8593 · Browse files · 5 files·+54 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+54 added−0 removed
- other:+54 added−0 removed
Provenance
- Commit
a80c432- Tree
ed92789- Author
Seth Michael Larson <sethmichaellarson@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
65b8593
5 files changed+54 added−0 removed
added:docs/img/travis-fail-check.pngbinary
A binary file, added.
added:docs/img/travis-fail-test.pngbinary
A binary file, added.
added:docs/img/travis-fail.pngbinary
A binary file, added.
modified:docs/contributing.md+49 added
108 unmodified linesExpand all10911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416514 unmodified lines108 unmodified linesExpand all```shell$ nox -s serve```
## Resolving Build / Travis Failures
Once you've submitted your pull request, the test suite will automatically run, and the results will show up in GitHub.If the test suite fails, you'll want to click through to the "Details" link, and try to identify why the test suite failed.
<p align="center" style="margin: 0 0 10px"> <img src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/travis-fail.png" alt='Failing PR commit status'></p>
Here are some common ways the test suite can fail:
### NOX_SESSION=check Job Failed
<p align="center" style="margin: 0 0 10px"> <img src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/travis-fail-check.png" alt='Failing Travis lint job'></p>
This job failing means there is either a code formatting issue or type-annotation issue.You can look at the job output to figure out why it's failed or within a shell run:
`nox -s check`
It may be worth it to run `nox -s lint` to attempt auto-formatting the codeand if that job succeeds commit the changes.
### NOX_SESSION=docs Job Failed
This job failing means the documentation failed to build. This can happen fora variety of reasons like invalid markdown or missing configuration within `mkdocs.yml`.
### NOX_SESSION=test-3.X Job Failed
<p align="center" style="margin: 0 0 10px"> <img src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/travis-fail-test.png" alt='Failing Travis test job'></p>
This job failing means the unit tests failed or not all code paths are covered by unit tests.
If tests are failing you will see this message under the coverage report:
`=== 1 failed, 435 passed, 1 skipped, 1 xfailed in 11.09s ===`
If tests succeed but coverage isn't 100% you will see this message under the coverage report:
`FAIL Required test coverage of 100% not reached. Total coverage: 99.00%`
Look at the [coverage report from codecov](https://codecov.io/gh/encode/httpx/pulls)for the pull request for help debugging coverage.
## Releasing
*This section is targeted at HTTPX maintainers.*
14 unmodified linesadded:CONTRIBUTING.md+5 added
12345#### Thanks for considering contributing to HTTPX!
Our [documentation on contributing to HTTPX](https://www.encode.io/httpx/contributing/)contains information on how to report bugs, write and test new features, anddebug issues with your own changes.