-
Notifications
You must be signed in to change notification settings - Fork 4
Rebase #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Rebase #210
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
839d68b
RDKEMW-6328: set AVHijack rfc to false (#208)
tpaul627 c1760d3
RDKEMW-6193 Code Coverage support for tr69hostif (#211)
madhubabutt d3eda52
Changelog updates for release 1.2.2
shibu-kv 39727b0
Merge branch 'release/1.2.2' into develop
shibu-kv 5916d05
RDKEMW-4344 : Include the missed RFCs in RDKE.
NatrajMuthusamygithubpractice b8ae15d
Merge pull request #216 from rdkcentral/RDKEMW-4344
DamianoBaroneSky 61a1355
Update hostIf_msgHandler.cpp
Vismalskumar0 49c85aa
RDKEMW-6520: tr69hostif service starts before iarmbusd
AravindanNC 4d041ef
Merge pull request #218 from rdkcentral/topic/RDKEMW-RDKEMW-6520
AravindanNC 233698c
Merge branch 'develop' into topic/getset_error
Vismalskumar0 e1aff4b
Update hostIf_msgHandler.cpp
Vismalskumar0 0f467d8
Update hostIf_msgHandler.cpp
Vismalskumar0 b273a3a
Update hostIf_msgHandler.cpp
Vismalskumar0 6844bc9
Update hostIf_msgHandler.h
Vismalskumar0 05c52c6
Update hostIf_msgHandler.cpp
Vismalskumar0 c5d192f
Merge pull request #219 from rdkcentral/topic/getset_error
nhanasi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: Code Coverage | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| execute-unit-code-coverage-report-on-release: | ||
| name: Test coverage report for release | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: ghcr.io/rdkcentral/docker-rdk-ci:latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Run unit tests with coverage flags enabled | ||
| run: | | ||
| sh run_ut.sh --enable-cov | ||
| - name: Caculate the code coverage summary | ||
| run: | | ||
| lcov --list tr69hostif_coverage.info | grep "Lines\|Total" > /tmp/coverage_summary.txt | ||
| cd - | ||
|
|
||
| - name: Update the coverage report to Pull request using actions | ||
| uses: actions/github-script@v4 | ||
| with: | ||
| script: | | ||
| const fs = require('fs'); | ||
| const lcov_result = fs.readFileSync('/tmp/coverage_summary.txt', 'utf8'); | ||
|
|
||
| github.issues.createComment({ | ||
| issue_number: context.issue.number, | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| body: | ||
| '## Code Coverage Summary \n' + | ||
| ' ' + | ||
| '```' + | ||
| lcov_result + | ||
| '```' | ||
| }); | ||
| - name: Generate the html report | ||
| run: | | ||
| genhtml tr69hostif_coverage.info --output-directory /tmp/coverage_report | ||
| cd - | ||
| - name: Upload the coverage report to Pull request using actions | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage-report | ||
| path: /tmp/coverage_report | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 1 year ago
To fix the problem, explicitly set the
permissionskey for the job (or at the workflow root) to grant only the minimum required privileges. In this workflow, the job needscontents: read(to check out code) andissues: write(to create a comment on the pull request). The best way to fix this is to add apermissionsblock under theexecute-unit-code-coverage-report-on-releasejob, specifyingcontents: readandissues: write. This change should be made directly under the job definition (aftername:and beforeruns-on:) in.github/workflows/code-coverage.yml. No additional imports or definitions are needed.