diff options
author | Anastasia Klimchuk <aklm@flashrom.org> | 2024-03-15 23:36:25 +1100 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2024-03-27 23:14:37 +0000 |
commit | 435309ea28200a1e103e64d5a63e394f70adaf40 (patch) | |
tree | a925a380412ba087466107d997f2edc591ed19af /doc | |
parent | b65f347377b2f6166bd6af09f73d67f41af3a92b (diff) | |
download | flashrom-435309ea28200a1e103e64d5a63e394f70adaf40.tar.gz flashrom-435309ea28200a1e103e64d5a63e394f70adaf40.tar.bz2 flashrom-435309ea28200a1e103e64d5a63e394f70adaf40.zip |
doc/dev_guide: Add section about Jenkins build, and scan-build
Change-Id: I416b632c55d1ceb925456ac8c8947dfbcef2e888
Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/81261
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dev_guide/development_guide.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/dev_guide/development_guide.rst b/doc/dev_guide/development_guide.rst index 0b643252f..aac3a6cb4 100644 --- a/doc/dev_guide/development_guide.rst +++ b/doc/dev_guide/development_guide.rst @@ -191,6 +191,8 @@ Creating an account Pushing a patch --------------- +Before pushing a patch, make sure it builds on your environment and all unit tests pass (see :doc:`building_from_source`). + To push patch to Gerrit, use the follow command: :code:`git push upstream HEAD:refs/for/main`. * If using HTTPS you will be prompted for the username and password you @@ -209,6 +211,21 @@ To add a topic, push with the command: :code:`git push upstream HEAD:refs/for/ma Alternatively, you can add a topic from a Gerrit UI after the patch in pushed (on the top-left section) of patch UI. +Checking the CI +--------------- + +Every patch needs to get a ``Verified +1`` label, typically from Jenkins. Once the patch is pushed +to Gerrit, Jenkins is added automatically and runs its build script. The script builds the patch with +various config options, and runs unit tests (for more details see source code of ``test_build.sh``). +Then, Jenkins gives the patch ``+1`` or ``-1`` vote, indicating success or fail. + +In case of failure, follow Jenkins link (which it adds as a comment to the patch), open Console output, +find the error and try to fix it. + +In addition to building and running unit tests, Jenkins also runs a scan-build over the patch. Ideally +you should check that your patch does not introduce new warnings. To see scan-build report, follow +Jenkins link -> Build artifacts -> scan build link for the given run. + Adding reviewers to the patch ----------------------------- |