Repository navigation
DAOS-17259 test: Adding gcov to daos build #16338
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
Closed
Closed
Changes from all commits
Commits
Show all changes
197 commits
Select commit
Hold shift + click to select a range
353c5ea
DAOS-17259 test: Adding gcov to daos build
dinghwah ae33c25
Update daos_builder.py
dinghwah 3ad6de2
Update _test_program
dinghwah 2865862
Update _program
dinghwah 91a3c5c
Add code_coverage with return kwargs
dinghwah 8804f4f
Update _static_library
dinghwah 059b5fd
Update _static_library env
dinghwah 9111963
Update with isinstenance
dinghwah 39d92f2
using _known_deps
dinghwah 5967f00
Restore and test
dinghwah e0cfa8c
Update with env
dinghwah 6f5223b
Update _add_code_coverage
dinghwah 68fa738
Update _static_library
dinghwah 6035395
Restore _static_library
dinghwah cbf1b14
Update _add_code_coverage with env
dinghwah 5c8116e
Update _add_code_coverage
dinghwah 6f9c9fe
Update _add_code_coverage
dinghwah 8cb0650
Update debug on _add_code_coverage without env
dinghwah 3b9f680
Update _add_code_coverage with env
dinghwah 6c75d41
Update _add_code_coverage debug
dinghwah 5db96ab
Update _add_code_coverage for debug
dinghwah 018c6d8
Restore _add_code_coverage
dinghwah 04cf4d2
Update control/SConscript with gcov
dinghwah 677130b
Update _add_code_coverage debug
dinghwah bbc6000
Update _add_code_coverage for debug
dinghwah e2519c6
_add_code_coverage debug
dinghwah d17eb4e
Update _add_code_coverage debug
dinghwah e3900c1
Update _add_code_coverage debug
dinghwah d6476c5
Restore _add_code_coverage
dinghwah 221036a
Update with gcov
dinghwah be66f72
Remove env from _add_code_coverage
dinghwah cfa6e28
Add debug for _run_command
dinghwah f34c46a
Update control/SConscript
dinghwah 400febb
Add debug _add_code_coverage
dinghwah 3023435
Update _add_code_coverage after debug
dinghwah 911338c
Update _program _test_program debug
dinghwah d7f6554
Update _program _test_program debug
dinghwah 31e53b5
Add env to _add_code_coverage
dinghwah 7ad37d5
Skip gcov for target daos_server_helper
dinghwah 264e91e
Update control install_go_bin() for debug
dinghwah 0a5711e
Restore SConscript from src/control
dinghwah 2aa7ac8
Update CGO_LDFLAGS--coverage -g -O0
dinghwah 4a3f70c
Update CGO_LDFLAGS to _run_command
dinghwah 0ff04e4
Update CGO_CFLAGS and code_coverage cleanup.
dinghwah 9ac3bcc
Update typo -lgcov
dinghwah 6eb4e0d
Update -fprofile-arcs
dinghwah eedae8e
Update with debug
dinghwah 942aee2
Remove commented env.AppendUnique from _base_setup
dinghwah 33d272d
Sync with gcov unit-test and files
dinghwah 7675b14
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 5a338d5
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 2f374bb
Update with yaml
dinghwah ebddc4c
Relocate test gcov env var
dinghwah c6b6981
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 6a038ab
Merge branch 'dinghwah/DAOS-17259-gtest2' of https://github.com/daos-…
phender 75247ae
Fix pyyaml import.
phender 6db2a2e
Add pyyaml install for code coverage
phender 2ee6a39
Update junit_xml
dinghwah 66ce01c
Update with python3.11 and debug
dinghwah f875d8c
Recommit by adding a debug comment
dinghwah 7b363fd
Debug with ls lib64
dinghwah ff70c93
Comment out the cp
dinghwah 7b3cd29
Add setup.py and update cp storage_estimator.
dinghwah 67957a1
Add debug ls -la storage_estimator
dinghwah 0290704
Update debug cp venv/lib64
dinghwah 5e4fbff
Update cp libvos_size.so to venv
dinghwah a6f57ea
Update cp daos_srv/libvos_size.so to daos_srv
dinghwah 779fa37
Update cp -r daos_srv.
dinghwah 90197df
cp libdfs.so to lib64
dinghwah d56b971
Update to increase timeout
dinghwah 35aead9
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah adeddde
Update Unit Test bdev with memcheck timeout to 360
dinghwah 258e8d9
Empty commit L#857 Jenkinsfile
dinghwah a3a79f8
Update with ./requirements-code-coverage.txt
dinghwah 7f8314a
Update ARG BASE_DISTRO.
dinghwah 0c2ef8f
Recommit
dinghwah 4a5d6c6
Update Unit Test bdev with memcheck to 480
dinghwah f94ab79
Update COPY requirements-code-coverage.txt /tmp
dinghwah 33176f6
Add debug pwd
dinghwah aae47b2
Update with pip install
dinghwah d217ddc
Update pip install gcovr
dinghwah dc11a30
Update with COPY .txt to ./
dinghwah 53a986a
Update to skip COPY .txt /tmp/
dinghwah 0675c99
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 51c3683
Update COPY ./requirements-code-coverage.txt ./
dinghwah 6ce3c38
Update Unit Test bdev with memcheck to 720 for debug
dinghwah af815bd
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 09520be
Updated dockerfile for code coverage report.
phender 3fe290c
Recommit Phil's pr#51 with UT_memcheck
dinghwah 4792f8f
Add WORKDIR before COPY
dinghwah 4ab30ec
Update .dockerignore with requirements-code-coverage.txt
dinghwah c720932
Make ci/code_coverage_report.sh executable.
phender 830935c
Update with find jsonfiles for gcovr.
dinghwah f7db2ba
Add double quote for jsonfiles
dinghwah 815a321
Update with --add-traceback
dinghwah 2cb8075
Update with --add-tracefile $jsonfiles
dinghwah e688ef4
Add test only --add-tracefile for debug
dinghwah fcc019f
Try python3.11
dinghwah ebe9777
Update RUN apt-get -qqy install python3.11
dinghwah d31b0fb
Use dnf
phender c5cf716
Remove export GCOV_PREFIX
dinghwah 24e1ab8
DAOS-17664 cq: update gha versions (#16490)
dependabot[bot] 04c3ec5
DAOS-17432 test: Update suppressions for Go runtime (#16310)
kjacque b842179
DAOS-17651 test: Increase timeout for recovery/pool_list_consolidatio…
shimizukko 7c356aa
DAOS-17705 cq: Bump github/codeql-action from 3.28.19 to 3.29.0 (#16513)
dependabot[bot] 139e835
DAOS-17049 control: Allow graceful shutdown for specific ranks (#16305)
kjacque ac2841e
DAOS-17594 cart: allocate iov buffer for deferred bulk #16430 (#16454)
frostedcmos 4c6ef14
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah e952d42
Update GCOV_PREFIX_STRIP=7
dinghwah 0a4fdd7
Tmp comment out mv nlt-errors.json
dinghwah 8cdf246
Restore test_nlt_post and update $pwd)
dinghwah 255ade0
Update rsync to /tmp/code_coverage
dinghwah a3bba2c
Update include code_coverage/*
dinghwah 32eb7cc
Add debug /tmp/code_coverage after nlt gcovr
dinghwah 102345f
Update rsync .. include code_coverage*
dinghwah 5d82b58
Remove the unneed comment statements
dinghwah 4ab1dbe
Cleanup and debug for required file.
dinghwah f3e6801
Debug commented out CGO_CFLAGS per Jeff's comment
dinghwah 10419c9
Tmp comment out env.AppendENVPath('CGO_LDFLAGS'..) per Jeff's comment
dinghwah 0756c64
Restore env.AppendENVPath('CGO_LDFLAGS'..)
dinghwah 893e431
Update /daos_srv
dinghwah 8fca02a
Cleanup and all unit-tests
dinghwah ab443e5
Restore env.AppendUnique(CGO_CFLAGS=..)
dinghwah 8df15d8
Update env.AppendENVPath('CGO_LDFLAGS',..)
dinghwah 879b9a4
Restore env.AppendUnique(CGO_CFLAGS=..)
dinghwah c27106d
Update for time build
dinghwah 31b4be0
Fixed typo for startedByTimer
dinghwah d9165af
Fix skip logic
dinghwah 80131da
Test for python3
dinghwah a32894c
Restore back to python3.11
dinghwah 2c082d6
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 0b306b6
Tmp comment out build on EL9 and Leap15.5 stages
dinghwah 90f5adf
Update is_code_coverage to Build on EL9 and Leap15.5
dinghwah 05b8ae4
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 3c2f73d
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 8895069
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah c223951
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah f74e92f
Add debug display *.gcno & *.gcda
dinghwah 08c7fc6
Added gcovr gcov-ignore-error
dinghwah 7c04eb8
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 7c73ed7
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 4fa9d9b
pipeline-lib updates.
phender 7e0c5ee
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender cc601c9
Go back to pipeline-lib hendersp/DAOS-17259
phender d11f36e
Fix typo.
phender 4a7b5b1
Installing python 3.11 in el8 docker image
phender c0e5848
Revert previous change.
phender 74c6dc0
Use sudo dnf
phender c182a24
Update python
phender f0f64c0
Adding env.PYTHON_VERSION.
phender afa8853
Hardcode python version.
phender e4ab2ea
Trying a different approach
phender 0029e06
Fix pip install.
phender 84e0419
Move to python 3.11
phender 9d24e4e
Usse same python version installed in dockerfile
phender 5d8f4ae
Adding -vvv to pip
phender 594d85a
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 9dc61ba
Trying separate dockerfile for summary stage.
phender 6cdbb4d
Removing no longer used --build-arg.
phender b8c76d8
Fix previous edit.
phender e1939c4
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender e43c766
Updated requirements files.
phender 9377a99
Trying setting pip proxy.
phender aa3bf09
Use the correct python version in the dockerfile
phender 1b974dd
Add missing Dockefile ARG.
phender 00c4e1a
Remove the no longer needed storage_estimator workaround
phender 1ca09d0
Fix pip config setup.
phender 448f20f
Adding pip debug.
phender 9aefb73
Fix pip proxy setting.
phender 11b174e
Updates.
phender a1e323c
Update HTTPS_PROXY GCOV_PREFIX
dinghwah 728a21d
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 97ce9f1
Fix spaces.
dinghwah bf5d18a
Update CGO_LDFLAGS with lgcov
dinghwah 091b151
Update find \*.gcno
dinghwah 67570bf
Update find src
dinghwah 9bf4d70
Update path to find gcno file
dinghwah 8d9df15
Update find
dinghwah b2861b8
Fix run_go_tests CGO_LDFLAGS assignment for code coverage.
phender cf57222
Skip running abt_stack with code coverage.
phender 4e585db
Fix code coverage detection for unit tests
phender 5d31160
Fix skipping abt_stack
phender a9f94cc
Fix typo and exclude NLT w/ code coverage
phender 983e651
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 95d10fa
Moving requirements-*.txt changes to PR-16919.
phender 5b148f6
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 04afec9
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 876c06c
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender 19da5a9
Fix GHA ubuntu python version.
phender 33f523b
Fix ubuntu python version
phender 8e3415f
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
dinghwah 74999a9
Update per Phil's comment.
dinghwah 3b64b2c
Fix pylint issue
dinghwah 314576b
Update debug
dinghwah 623e61a
Add Debug to find build
dinghwah 42ec327
Merge branch 'master' into dinghwah/DAOS-17259-gtest2
phender db96ad0
Debug
phender 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -eux | ||
|
|
||
| : "${PYTHON_VERSION:=3.11}" | ||
|
|
||
| # Generate code coverage report | ||
| if [[ -n $(find . -name "code_coverage.json") ]]; then | ||
| "python${PYTHON_VERSION}" -m venv venv | ||
| # shellcheck disable=SC1091 | ||
| source venv/bin/activate | ||
| pip install --upgrade pip | ||
| pip install --requirement requirements-code-coverage.txt | ||
Check warningCode scanning / Scorecard Pinned-Dependencies Medium
score is 3: pipCommand not pinned by hash
Click Remediation section below to solve this issue |
||
|
|
||
| mkdir -p code_coverage_report | ||
| gcovr --add-tracefile "*/code_coverage/code_coverage.json" \ | ||
| --output code_coverage_report/code_coverage_report.html \ | ||
| --html-details --gcov-ignore-parse-errors | ||
| fi | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| gcovr | ||
| junit-xml | ||
| pyyaml |
Oops, something went wrong.
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 / Scorecard
Pinned-Dependencies Medium