Skip to content

Commit 279794c

Browse files
Merge pull request #139 from gilles-peskine-arm/doc-ci-restart
CI: explain how to restart a stuck DCO or readthedocs check
2 parents 90b67f0 + baf3ecd commit 279794c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

kb/testing/testing-ci.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ All commits must have such a line, otherwise the commit cannot be accepted for l
1010

1111
If the DCO job fails, please reword all commit messages that are missing a `Signed-off-by:` line. If you have multiple commit messages to rewrite, [How to use git interactive rebase for signing off a series of commits](https://stackoverflow.com/questions/25570947/how-to-use-git-interactive-rebase-for-signing-off-a-series-of-commits) may help.
1212

13+
### Retrying a stuck DCO check
14+
15+
GitHub triggers a DCO check whenever a pull request is updated. This check is required: a pull request cannot be merged unless it passes.
16+
17+
If the DCO check doesn't report back to GitHub (the status remains “Pending” and no “Details” link appears), the only known solution is to change the commit ID at the head of the pull request. You can amend the head commit without changing its commit message: this changes the commit date, so it changes the commit ID. Force-pushing such an amended commit triggers all new CI checks, but does not invalidate review approvals.
18+
19+
## Documentation build
20+
21+
The Mbed TLS API documentation, rendered by Doxygen, is published [on readthedocs](https://mbed-tls.readthedocs.io/en/latest/). GitHub triggers a readthedocs build on every pull request. This is controlled by [`.readthedocs.yaml`](https://github.com/Mbed-TLS/mbedtls/blob/development/.readthedocs.yaml). This check is required: a pull request cannot be merged unless it passes.
22+
23+
### Retrying a stuck or failed documentation build
24+
25+
If the readthedocs build fails due to a transient failure (e.g. could not communicate to GitHub), or if the status is not reported back to GitHub due to a transient failure, you can re-trigger a new build in one of the following ways:
26+
27+
* If you have a readthedocs account with suitable permissions, go to the build page (`https://readthedocs.org/projects/mbedtls-versioned/builds/<NUMBER>/`) and click “Rebuild this build”.
28+
* Close and reopen the pull request. This triggers a new readthedocs build, and preserves Jenkins results and GitHub review states.
29+
1330
## PR-head and PR-merge jobs
1431

1532
The PR-//NNN//-head and PR-//NNN//-merge jobs run an extensive battery of tests on several platforms. The -head jobs run the tests on the tip of the submitted code. The -merge jobs run the tests on a merge with the target branch.

0 commit comments

Comments
 (0)