From 7868d509dd33af30f57de76d8fd67117cf23c8a7 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Thu, 25 Jul 2024 21:26:02 -0400 Subject: [PATCH] .azurepipelines: Disable the PR gate code coverage job REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4819 Code Coverage was added to PR pipelines in 89c5d90 and is currently running on every pull request. It is run in a separate job that is queued after all builds from the build matrix have completed. This means it extends the entire pipeline run by placing it at the beginning of the build queue right when it should be finished. In turn, pipeline runs that should finish in 30 minutes are taking over 3 hours. This has a substantial impact on the developer efficiency of the entire community. This patch disables code coverage until a more sustainable solution can be swapped in. Users can still get code coverage locally. Signed-off-by: Michael Kubacki --- .azurepipelines/templates/pr-gate-build-job.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.azurepipelines/templates/pr-gate-build-job.yml b/.azurepipelines/templates/pr-gate-build-job.yml index 689e2f0987..3cad858ea2 100644 --- a/.azurepipelines/templates/pr-gate-build-job.yml +++ b/.azurepipelines/templates/pr-gate-build-job.yml @@ -90,6 +90,9 @@ jobs: extra_install_step: ${{ parameters.extra_install_step }} - job: Build_${{ parameters.tool_chain_tag }}_TARGET_CODE_COVERAGE + # Disable this job from running in PR gatees. It causes the entire pipeline run to wait while the job is requeued + # causing runs take several hours. + condition: false dependsOn: Build_${{ parameters.tool_chain_tag }} workspace: clean: all