From 0fa9f4e3d71b779ac0034070b1ddd4cf7fcc638f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:20:50 -0500 Subject: [PATCH 1/3] GitHub Action: Bump actions/github-script from 6 to 7 (#364) --- .github/workflows/pull-request-formatting-validator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-formatting-validator.yml b/.github/workflows/pull-request-formatting-validator.yml index 34e27d4678..13ad68a915 100644 --- a/.github/workflows/pull-request-formatting-validator.yml +++ b/.github/workflows/pull-request-formatting-validator.yml @@ -48,7 +48,7 @@ jobs: - name: Check for Validation Errors if: env.VALIDATION_ERROR - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | core.setFailed('PR Formatting Validation Check Failed!') From 3414aa8d19a653aeddd46f596ed1caaa5e612b4b Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Mon, 20 Nov 2023 14:59:06 -0800 Subject: [PATCH 2/3] Integration steps for mu_devops@9.0.1 --- .azurepipelines/Ubuntu-GCC5.yml | 1 + .azurepipelines/Windows-VS.yml | 1 + .github/codecov.yml | 31 +++++++++++++++++++++++++++++++ pip-requirements.txt | 1 + 4 files changed, 34 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml index 3ee5a764cc..06beefee98 100644 --- a/.azurepipelines/Ubuntu-GCC5.yml +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -17,6 +17,7 @@ variables: - group: architectures-arm-64-x86-64 - group: tool-chain-ubuntu-gcc +- group: coverage extends: template: MuDevOpsWrapper.yml diff --git a/.azurepipelines/Windows-VS.yml b/.azurepipelines/Windows-VS.yml index 97bbf14318..7238f78723 100644 --- a/.azurepipelines/Windows-VS.yml +++ b/.azurepipelines/Windows-VS.yml @@ -17,6 +17,7 @@ variables: - group: architectures-x86-64 - group: tool-chain-windows-visual-studio-latest +- group: coverage extends: template: MuDevOpsWrapper.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000000..bab37b53f8 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,31 @@ +## @file +# codecov upload configuration file to carryforward coverage results of +# packages that do not upload coverage results for a given pull request. +## +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +flags: + AdvLoggerPkg: + carryforward: true + HidPkg: + carryforward: true + MfciPkg: + carryforward: true + MsApplicationPkg: + carryforward: true + MsCorePkg: + carryforward: true + MsGraphicsPkg: + carryforward: true + MsWheaPkg: + carryforward: true + PcBdsPkg: + carryforward: true + TpmTestingPkg: + carryforward: true + UefiTestingPkg: + carryforward: true + XmlSupportPkg: + carryforward: true + diff --git a/pip-requirements.txt b/pip-requirements.txt index 5b96a5471a..c3204376ba 100644 --- a/pip-requirements.txt +++ b/pip-requirements.txt @@ -17,3 +17,4 @@ edk2-pytool-extensions==0.26.2 edk2-basetools==0.1.29 antlr4-python3-runtime==4.13.1 regex==2023.10.3 +pygount==1.6.1 From db3e086d8dc7ac37de0162bcc0aa9607780a1bf7 Mon Sep 17 00:00:00 2001 From: uefibot Date: Mon, 20 Nov 2023 22:01:55 +0000 Subject: [PATCH 3/3] Repo File Sync: synced file(s) with microsoft/mu_devops Signed-off-by: Project Mu UEFI Bot --- .azurepipelines/MuDevOpsWrapper.yml | 13 +++---------- .github/workflows/auto-approve.yml | 2 +- .github/workflows/auto-merge.yml | 2 +- .github/workflows/issue-assignment.yml | 2 +- .github/workflows/label-issues.yml | 2 +- .github/workflows/label-sync.yml | 2 +- .../workflows/pull-request-formatting-validator.yml | 2 +- .github/workflows/release-draft.yml | 2 +- .github/workflows/stale.yml | 2 +- .github/workflows/triage-issues.yml | 2 +- 10 files changed, 12 insertions(+), 19 deletions(-) diff --git a/.azurepipelines/MuDevOpsWrapper.yml b/.azurepipelines/MuDevOpsWrapper.yml index 70a75dcbec..a0e62896c8 100644 --- a/.azurepipelines/MuDevOpsWrapper.yml +++ b/.azurepipelines/MuDevOpsWrapper.yml @@ -1,6 +1,8 @@ ## @file # Azure Pipeline build file for a build using mu_devops. # +# To upload coverage results, set `coverage_upload_target` to `ado` or `codecov`. +# # NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there # instead of the file in this repo. # @@ -17,7 +19,7 @@ resources: type: github endpoint: microsoft name: microsoft/mu_devops - ref: refs/tags/v7.2.0 + ref: refs/tags/v9.0.1 parameters: - name: do_ci_build @@ -40,13 +42,6 @@ parameters: displayName: Perform Stuart PR Evaluation type: boolean default: true -- name: calculate_code_coverage - displayName: Calculate Code Coverage From Unit Tests - default: false -- name: coverage_publish_target - displayName: Code Coverage Publish Target - type: string - default: 'ado' # 'ado', 'codecov' - name: container_build displayName: Flag for whether this repo should do stuart_setup type: boolean @@ -93,8 +88,6 @@ jobs: do_ci_build: ${{ parameters.do_ci_build }} do_ci_setup: ${{ parameters.do_ci_setup }} do_pr_eval: ${{ parameters.do_pr_eval }} - calculate_code_coverage: ${{ parameters.calculate_code_coverage }} - coverage_publish_target: ${{ parameters.coverage_publish_target }} do_non_ci_setup: ${{ parameters.do_non_ci_setup }} do_non_ci_build: ${{ parameters.do_non_ci_build }} build_matrix: ${{ parameters.build_matrix }} diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index f136045896..ddb1044225 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -25,5 +25,5 @@ jobs: approval_check: if: | github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot' - uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/AutoApprover.yml@v9.0.1 secrets: inherit diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index dd835308cc..fd3fc00b28 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -26,5 +26,5 @@ jobs: merge_check: if: | github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'uefibot' - uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/AutoMerger.yml@v9.0.1 secrets: inherit diff --git a/.github/workflows/issue-assignment.yml b/.github/workflows/issue-assignment.yml index 65d93fed26..5a0cf8882b 100644 --- a/.github/workflows/issue-assignment.yml +++ b/.github/workflows/issue-assignment.yml @@ -18,4 +18,4 @@ on: jobs: apply: - uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/IssueAssignment.yml@v9.0.1 diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml index 739549e922..3319ac23e5 100644 --- a/.github/workflows/label-issues.yml +++ b/.github/workflows/label-issues.yml @@ -31,4 +31,4 @@ on: jobs: apply: - uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/Labeler.yml@v9.0.1 diff --git a/.github/workflows/label-sync.yml b/.github/workflows/label-sync.yml index 9289e064ce..7cf4ee76d1 100644 --- a/.github/workflows/label-sync.yml +++ b/.github/workflows/label-sync.yml @@ -24,4 +24,4 @@ on: jobs: sync: - uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/LabelSyncer.yml@v9.0.1 diff --git a/.github/workflows/pull-request-formatting-validator.yml b/.github/workflows/pull-request-formatting-validator.yml index 13ad68a915..34e27d4678 100644 --- a/.github/workflows/pull-request-formatting-validator.yml +++ b/.github/workflows/pull-request-formatting-validator.yml @@ -48,7 +48,7 @@ jobs: - name: Check for Validation Errors if: env.VALIDATION_ERROR - uses: actions/github-script@v7 + uses: actions/github-script@v6 with: script: | core.setFailed('PR Formatting Validation Check Failed!') diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index ad79b83d8b..73759bf26d 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -27,5 +27,5 @@ on: jobs: draft: - uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/ReleaseDrafter.yml@v9.0.1 secrets: inherit diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 79087d5f79..29095b3c70 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -24,4 +24,4 @@ on: jobs: check: - uses: microsoft/mu_devops/.github/workflows/Stale.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/Stale.yml@v9.0.1 diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml index 276e64b362..89451cb70a 100644 --- a/.github/workflows/triage-issues.yml +++ b/.github/workflows/triage-issues.yml @@ -19,4 +19,4 @@ on: jobs: triage: - uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v7.2.0 + uses: microsoft/mu_devops/.github/workflows/IssueTriager.yml@v9.0.1