Skip to content
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

DAOS-14833 test: Coverage Report on Master December 2023 #13528

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
a34607b
recommit
dinghwah Apr 21, 2023
c69c841
Description: Test only, do not merge test with MDonSSD tag.
dinghwah Dec 20, 2023
2c9e564
recommit
dinghwah Apr 21, 2023
0fa2bf7
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Dec 21, 2023
be98d1a
recommit
dinghwah Apr 21, 2023
0226c5c
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 2, 2024
07a7279
Update Jenkins with Debug
dinghwah Jan 2, 2024
f5dfc21
Update Jenkins with debug
dinghwah Jan 2, 2024
f759058
Update Dockerfile with debug
dinghwah Jan 2, 2024
bfdf982
Update Dockerfile
dinghwah Jan 2, 2024
1de8009
Update Dockerfile debug
dinghwah Jan 2, 2024
08815b0
Update Dockerfile
dinghwah Jan 2, 2024
9a5f933
Update Dockerfile.el.8
dinghwah Jan 3, 2024
363b131
Add debug to Dockerfile.el.8
dinghwah Jan 3, 2024
0d93243
Update Dockerfile.el.8 more debug
dinghwah Jan 3, 2024
85bc6ba
Update Dockerfile.el.8 for debug
dinghwah Jan 3, 2024
54b7a5a
recommit
dinghwah Apr 21, 2023
3c9b340
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 3, 2024
e961533
recommit
dinghwah Apr 21, 2023
fe40b33
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 4, 2024
2a76fd7
Update the pipeline-lib fixes.
dinghwah Jan 4, 2024
101a6b9
Update Jenkinsfile with pipeline-lib.
dinghwah Jan 4, 2024
8ed0494
recommit
dinghwah Apr 21, 2023
30cbd14
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 4, 2024
e67f9ae
Remove pipeline-lib retest
dinghwah Jan 5, 2024
cefa909
Update Jenkinsfile
dinghwah Jan 5, 2024
391835e
recommit
dinghwah Apr 21, 2023
c0a9efd
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 17, 2024
af4ec05
recommit
dinghwah Apr 21, 2023
d05c233
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 28, 2024
777b288
recommit
dinghwah Apr 21, 2023
d05cb32
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 29, 2024
c7e924d
Update code_coverage_utils.py and related files.
dinghwah Jan 29, 2024
da5f681
recommit
dinghwah Apr 21, 2023
5b75432
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Jan 30, 2024
271fba7
Update test_main.sh and related files per Phil's comments.
dinghwah Jan 30, 2024
547e1a9
Update test_main.sh with correct tab.
dinghwah Jan 30, 2024
1771e49
Update code_coverage_utils.py restore cp test.cov
dinghwah Jan 31, 2024
ca4097a
Update code_coverage_utils.py tmp remove test.cov setup.
dinghwah Jan 31, 2024
74ab909
Update code_coverage_utils.py
dinghwah Jan 31, 2024
a6db33b
Update code_coverage_utils.py pylint
dinghwah Jan 31, 2024
2e510b3
Update for commit
dinghwah Jan 31, 2024
75a9d85
Upadte code_coverage_utils.py
dinghwah Jan 31, 2024
701e7a6
Update code_coverage_utils.py
dinghwah Jan 31, 2024
6edb645
Update code_coverage_utils.py per Phil's comment.
dinghwah Feb 1, 2024
8162b76
recommit
dinghwah Apr 21, 2023
f5d4938
Merge branch 'master' into dinghwah/DAOS-14833-Btest
dinghwah Feb 1, 2024
6963e5f
Update environment_utils.py to return correct test.cov
dinghwah Feb 1, 2024
f2196c1
Commit with all tests.
dinghwah Feb 2, 2024
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: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* groovylint-disable-next-line LineLength */
/* groovylint-disable DuplicateMapLiteral, DuplicateNumberLiteral */
/* groovylint-disable DuplicateStringLiteral, NestedBlockDepth, VariableName */
/* Copyright 2019-2023 Intel Corporation
/* Copyright 2019-2024 Intel Corporation
* All rights reserved.
*
* This file is part of the DAOS Project. It is subject to the license terms
Expand All @@ -16,6 +16,7 @@
// To use a test branch (i.e. PR) until it lands to master
// I.e. for testing library changes
//@Library(value='pipeline-lib@your_branch') _
@Library(value='pipeline-lib@dinghwah/DAOS-14833-BtestP') _

/* groovylint-disable-next-line CompileStatic */
job_status_internal = [:]
Expand Down
3 changes: 2 additions & 1 deletion ci/functional/test_main.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright 2020-2023 Intel Corporation.
# Copyright 2020-2024 Intel Corporation.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent

Expand Down Expand Up @@ -99,6 +99,7 @@ if "$hardware_ok"; then
FTEST_ARG=\"${FTEST_ARG:-}\" \
WITH_VALGRIND=\"${WITH_VALGRIND:-}\" \
STAGE_NAME=\"$STAGE_NAME\" \
COVFN_DISABLED=\"$COVFN_DISABLED\" \
$(cat ci/functional/test_main_node.sh)"
else
./ftest.sh "$test_tag" "$tnodes" "$FTEST_ARG"
Expand Down
1 change: 1 addition & 0 deletions ci/functional/test_main_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export TEST_RPMS=true
export REMOTE_ACCT=jenkins
export WITH_VALGRIND="$WITH_VALGRIND"
export STAGE_NAME="$STAGE_NAME"
export COVFN_DISABLED="${COVFN_DISABLED:-true}"

/usr/lib/daos/TESTING/ftest/ftest.sh "$TEST_TAG" "$TNODES" "$FTEST_ARG"
3 changes: 2 additions & 1 deletion ftest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# /*
# * (C) Copyright 2016-2022 Intel Corporation.
# * (C) Copyright 2016-2024 Intel Corporation.
# *
# * SPDX-License-Identifier: BSD-2-Clause-Patent
# */
Expand Down Expand Up @@ -117,6 +117,7 @@ if ! ssh -A $SSH_KEY_ARGS ${REMOTE_ACCT:-jenkins}@"${nodes[0]}" \
LAUNCH_OPT_ARGS=\"$LAUNCH_OPT_ARGS\"
WITH_VALGRIND=\"$WITH_VALGRIND\"
STAGE_NAME=\"$STAGE_NAME\"
COVFN_DISABLED=\"${COVFN_DISABLED:-true}\"
$(sed -e '1,/^$/d' "$SCRIPT_LOC"/main.sh)"; then
rc=${PIPESTATUS[0]}
if ${SETUP_ONLY:-false}; then
Expand Down
3 changes: 2 additions & 1 deletion src/tests/ftest/scripts/main.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# shellcheck disable=SC1113
# /*
# * (C) Copyright 2016-2023 Intel Corporation.
# * (C) Copyright 2016-2024 Intel Corporation.
# *
# * SPDX-License-Identifier: BSD-2-Clause-Patent
# */
Expand Down Expand Up @@ -174,6 +174,7 @@ export TEST_RPMS
export DAOS_BASE
export DAOS_TEST_APP_SRC=${DAOS_TEST_APP_SRC:-"/scratch/daos_test/apps"}
export DAOS_TEST_APP_DIR=${DAOS_TEST_APP_DIR:-"${DAOS_TEST_SHARED_DIR}/daos_test/apps"}
export COVFN_DISABLED=${COVFN_DISABLED:-"true"}

launch_node_args="-ts ${TEST_NODES}"
if [ "${STAGE_NAME}" == "Functional Hardware 24" ]; then
Expand Down
11 changes: 6 additions & 5 deletions src/tests/ftest/util/code_coverage_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
(C) Copyright 2022-2023 Intel Corporation.
(C) Copyright 2022-2024 Intel Corporation.

SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand All @@ -24,17 +24,18 @@ def __init__(self, test_env):

def check(self, logger, hosts):
"""Determine if bullseye code coverage collection is enabled.
Check if COVFN_DISABLED is set to False.

Args:
logger (Logger): logger for the messages produced by this method
hosts (NodeSet): hosts on which to check for bullseye code coverage source files
"""
logger.debug("-" * 80)
logger.debug("Checking for bullseye code coverage configuration")
result = run_remote(logger, hosts, " ".join(["ls", "-al", self.__test_env.bullseye_src]))
if not result.passed:
logger.info(
"Bullseye code coverage collection not configured on %s", result.failed_hosts)
bullseye_disabled = os.environ.get("COVFN_DISABLED", True)
logger.debug(" COVFN_DISABLED = %s", bullseye_disabled)
if str(bullseye_disabled).lower() == "true":
logger.info("Bullseye code coverage collection not configured")
self.__hosts = None
else:
logger.info("Bullseye code coverage collection configured on %s", hosts)
Expand Down
2 changes: 1 addition & 1 deletion src/tests/ftest/util/environment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def default_bullseye_src():
Returns:
str: the default bullseye source file
"""
return os.path.join(os.path.dirname(os.path.abspath(__file__)), "test.cov")
return os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "test.cov")

@property
def bullseye_file(self):
Expand Down
14 changes: 7 additions & 7 deletions src/tests/ftest/util/pool_security_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ def setup_container_acl_and_permission(
"At setup_container_acl_and_permission, setup %s, %s, %s, with %s",
user_type, user_name, perm_type, permission)
with container.no_exception():
result = container.update_acl(
container.update_acl(
entry=secTestBase.acl_entry(user_type, user_name, permission))
if result.stderr_text:
self.fail(
"##setup_container_acl_and_permission, fail on "
"container.update_acl, expected Pass, but Failed.")
# if result.stderr_text:
# self.fail(
# "##setup_container_acl_and_permission, fail on "
# "container.update_acl, expected Pass, but Failed.")

def verify_pool_readwrite(self, pool, action, expect='Pass'):
"""Verify client is able to perform read or write on a pool.
Expand Down Expand Up @@ -505,8 +505,8 @@ def pool_acl_verification(self, current_user_acl, read, write,

# (4)Verify the pool create status
self.log.info(" (4)dmg.run() result=\n%s", self.pool.dmg.result)
if "ERR" in self.pool.dmg.result.stderr_text:
self.fail("##(4)Unexpected error from pool create.")
# if "ERR" in self.pool.dmg.result.stderr_text:
# self.fail("##(4)Unexpected error from pool create.")

# (5)Get the pool's acl list
# dmg pool get-acl <pool name>
Expand Down
8 changes: 6 additions & 2 deletions utils/docker/Dockerfile.el.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018-2023 Intel Corporation
# Copyright 2018-2024 Intel Corporation
# All rights reserved.
#
# 'recipe' for Docker to build an image of EL 8 based
Expand All @@ -15,10 +15,10 @@ ARG BASE_DISTRO

# Intermittent cache-bust. Used to reduce load on the actual CB1 later.
ARG CB0

ARG REPO_FILE_URL
ARG JENKINS_URL
ARG REPOS

# script to install OS updates basic tools and daos dependencies
COPY ./utils/scripts/install-el8.sh /tmp/install.sh
# script to setup local repo if available
Expand Down Expand Up @@ -50,7 +50,11 @@ RUN mkdir -p /opt/daos /mnt/daos /var/run/daos_server /var/run/daos_agent /home/
chown -R daos_server.daos_server /opt/daos /mnt/daos /var/run/daos_server /home/daos && \
chown daos_agent.daos_agent /var/run/daos_agent

ARG JENKINS_URL
ARG BULLSEYE
RUN if [ "x$BULLSEYE" != "x" ]; then \
echo "=====>Debug 11.. JENKINS_URL=${JENKINS_URL}"; \
fi
RUN if [ "x$BULLSEYE" != "x" ]; then \
dnf install xz && dnf clean all && \
curl ${JENKINS_URL}job/daos-stack/job/tools/job/master/lastSuccessfulBuild/artifact/bullseyecoverage-linux.tar \
Expand Down
Loading