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

[REBASE&FF] Repo File Sync: Enable code coverage uploads to codecov #278

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 3 additions & 10 deletions .azurepipelines/MuDevOpsWrapper.yml
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
variables:
- group: architectures-arm-64-x86-64
- group: tool-chain-ubuntu-gcc
- group: coverage

extends:
template: MuDevOpsWrapper.yml
Expand Down
1 change: 1 addition & 0 deletions .azurepipelines/Windows-VS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
variables:
- group: architectures-x86-64
- group: tool-chain-windows-visual-studio-latest
- group: coverage

extends:
template: MuDevOpsWrapper.yml
Expand Down
10 changes: 10 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## @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:
SetupDataPkg:
carryforward: true
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/issue-assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/label-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-formatting-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!')
2 changes: 1 addition & 1 deletion .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/triage-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion pip-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ edk2-basetools==0.1.49
antlr4-python3-runtime==4.13.1
xmlschema==2.5.0
regex==2023.10.3
pywin32==306; sys_platform == 'win32'
pywin32==306; sys_platform == 'win32'
pygount==1.6.1