Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/6046-fix-ci-lcov-ubuntu-26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- 👷🏻 Fixed the "Merge test results" check failing on Ubuntu 26.04 runners (lcov 2.4), in PR [#6046](https://github.com/microsoft/BotFramework-WebChat/pull/6046), by [@OEvgeny](https://github.com/OEvgeny)
7 changes: 4 additions & 3 deletions .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -537,18 +537,19 @@ jobs:
- name: Install lcov
run: sudo apt install -y lcov

# lcov 2.4 (Ubuntu 26.04) rejects duplicate function names, which Istanbul writes for an inner function named like its outer one.
- name: Merge lcov-*.info
run: find . -name "lcov-*.info" -type f | xargs -i echo "--add-tracefile {}" | xargs lcov --rc lcov_branch_coverage=1 --output-file lcov.info
run: find . -name "lcov-*.info" -type f | xargs -i echo "--add-tracefile {}" | xargs lcov --rc branch_coverage=1 --ignore-errors inconsistent,inconsistent --output-file lcov.info

- if: always()
name: Print coverage list
run: lcov --rc lcov_branch_coverage=1 --list lcov.info
run: lcov --rc branch_coverage=1 --ignore-errors inconsistent,inconsistent --list lcov.info

- if: always()
name: Print coverage summary
run: |
echo \`\`\` >> $GITHUB_STEP_SUMMARY
lcov --rc lcov_branch_coverage=1 --summary lcov.info | tee --append $GITHUB_STEP_SUMMARY
lcov --rc branch_coverage=1 --ignore-errors inconsistent,inconsistent --summary lcov.info | tee --append $GITHUB_STEP_SUMMARY
echo \`\`\` >> $GITHUB_STEP_SUMMARY

merge-test-snapshots:
Expand Down
Loading