Skip to content

Commit 83f7974

Browse files
committed
[nrf noup] ci: NCS-specific CI tweaks
Necessary changes for NCS CI. - compliance: Add an additional check for sauce tags. Also, since, in the code, we refer to Kconfig symbols that are defined in the sdk-nrf repository, the Kconfig check will not pass. Use KconfigBasic instead, which will not grep the code for instances of CONFIG_. - Add a Jenkinsfile. - Extend the max commit line lengths for Gitlint. Signed-off-by: Carles Cufi <[email protected]>
1 parent 31c7432 commit 83f7974

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/compliance.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
git config --global user.email "[email protected]"
5454
git config --global user.name "Your Name"
5555
git remote -v
56+
# Sauce tag checks before rebasing
57+
git log --oneline --first-parent origin/${BASE_REF}..HEAD | grep -E -v "\[nrf (mergeup|fromtree|fromlist|noup)\]" && { echo 'Sauce tag missing'; exit 1; }
5658
git rebase origin/${BASE_REF}
5759
# debug
5860
git log --pretty=oneline | head -n 10
@@ -69,7 +71,7 @@ jobs:
6971
# debug
7072
ls -la
7173
git log --pretty=oneline | head -n 10
72-
./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}..
74+
./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m KconfigBasic -c origin/${BASE_REF}..
7375
7476
- name: upload-results
7577
uses: actions/upload-artifact@master

.gitlint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ debug = false
1313
extra-path=scripts/gitlint
1414

1515
[title-max-length-no-revert]
16-
line-length=75
16+
line-length=120
1717

1818
[body-min-line-count]
1919
min-line-count=1
@@ -39,7 +39,7 @@ words=wip
3939

4040
[max-line-length-with-exceptions]
4141
# B1 = body-max-line-length
42-
line-length=72
42+
line-length=120
4343

4444
[body-min-length]
4545
min-length=3

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@Library("CI_LIB") _
2+
3+
def pipeline = new ncs.sdk_zephyr.Main()
4+
5+
pipeline.run(JOB_NAME)

0 commit comments

Comments
 (0)