Skip to content

Commit

Permalink
CI: add .config diff to PR comment
Browse files Browse the repository at this point in the history
help with tracking configuration changes

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed Apr 15, 2024
1 parent 3938ec9 commit 154c40b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/on-pr_publish_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ jobs:
python3 scripts/ci/compare_size_reports.py -o old.json -n new.json --md_output --show_only_diff > memory_usage.md
- name: Generate .config diff
run: |
cd current
configs=$(find . -name .config)
cd ..
echo "<details><summary>.config diff</summary>" >> memory_usage.md
for cfg in configs
do
printf "\n\n%s\n%-75s|%s\n" "${cfg}" "old" "new" >> memory_usage.md
diff --text --report-identical-files --suppress-common-lines --side-by-side --label old --label new <(sort old/${cfg}) <(sort current/${cfg}) >> memory_usage.md
done
echo "<\details>" >> memory_usage.md
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
build_manual_tests:
strategy:
fail-fast: false
matrix:
subset: [1, 2, 3, 4, 5]
env:
Expand Down Expand Up @@ -148,7 +149,7 @@ jobs:
build-and-test_on_hw:
strategy:
fail-fast: true
fail-fast: false
matrix:
subset: [1, 2, 3, 4]
board: ${{ fromJson(inputs.boards_to_test) }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/samples_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
build_samples:
strategy:
fail-fast: false
matrix:
subset: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
env:
Expand Down

0 comments on commit 154c40b

Please sign in to comment.