Force skip_code_coverage to True

This commit is contained in:
David Murphy 2024-10-02 13:40:17 -06:00 committed by Daniel Wozniak
parent cbacd30640
commit 1cf5424953
2 changed files with 13 additions and 7 deletions

View file

@ -493,7 +493,8 @@ def define_testrun(ctx: Context, event_name: str, changed_files: pathlib.Path):
if "test:coverage" in labels:
ctx.info("Writing 'testrun' to the github outputs file")
testrun = TestRun(type="full", skip_code_coverage=False)
# skip running code coverage for now, was False
testrun = TestRun(type="full", skip_code_coverage=True)
with open(github_output, "a", encoding="utf-8") as wfh:
wfh.write(f"testrun={json.dumps(testrun)}\n")
with open(github_step_summary, "a", encoding="utf-8") as wfh:
@ -504,7 +505,8 @@ def define_testrun(ctx: Context, event_name: str, changed_files: pathlib.Path):
elif event_name != "pull_request":
# In this case, a full test run is in order
ctx.info("Writing 'testrun' to the github outputs file")
testrun = TestRun(type="full", skip_code_coverage=False)
# skip running code coverage for now, was False
testrun = TestRun(type="full", skip_code_coverage=True)
with open(github_output, "a", encoding="utf-8") as wfh:
wfh.write(f"testrun={json.dumps(testrun)}\n")

View file

@ -309,7 +309,7 @@ def test(
print_tests_selection: bool = False,
print_system_info: bool = False,
print_system_info_only: bool = False,
skip_code_coverage: bool = True,
skip_code_coverage: bool = False,
envvars: list[str] = None,
fips: bool = False,
):
@ -331,10 +331,14 @@ def test(
env["PRINT_TEST_SELECTION"] = "1"
else:
env["PRINT_TEST_SELECTION"] = "0"
if skip_code_coverage:
env["SKIP_CODE_COVERAGE"] = "1"
else:
env["SKIP_CODE_COVERAGE"] = "0"
# skip running code coverage for now
## if skip_code_coverage:
## env["SKIP_CODE_COVERAGE"] = "1"
## else:
## env["SKIP_CODE_COVERAGE"] = "0"
env["SKIP_CODE_COVERAGE"] = "1"
if print_system_info:
env["PRINT_SYSTEM_INFO"] = "1"
else: