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

Remove testspace coverage #1190

Merged
merged 2 commits into from
Nov 7, 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
42 changes: 0 additions & 42 deletions .github/workflows/buildmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,6 @@ jobs:
with:
submodules: true

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

- name: Cache ARM GCC
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -446,16 +440,6 @@ jobs:
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error

- name: Testspace push unit test content
if: ${{ always() && (matrix.arch != 'arm64') && (!github.event.repository.private) }}
run: |
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/cbuildunittests-*.xml"

- name: Testspace push integration test content
if: ${{ (!github.event.repository.private) && always() && ((matrix.arch == 'amd64') || (startsWith(matrix.runs_on, 'ubuntu'))) }}
run: |
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/cbuildintegtests-*.xml"

coverage:
if: |
(github.event_name == 'pull_request') ||
Expand Down Expand Up @@ -488,12 +472,6 @@ jobs:
with:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

- name: Create build folder
run: mkdir build

Expand Down Expand Up @@ -564,26 +542,6 @@ jobs:
genhtml coverage_buildmgr.info --output-directory coverage_buildmgr --branch-coverage
working-directory: ./build/tools/buildmgr

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/buildmgr/coverage_buildmgr.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes end

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.3.0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
buildmgr:
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: Open-CMSIS-Pack/devtools/.github/workflows/buildmgr.yml@main
packchk:
needs: [buildmgr]
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/packchk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ jobs:
with:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build PackChkUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand Down Expand Up @@ -156,12 +150,6 @@ jobs:
if-no-files-found: error
retention-days: ${{ needs.setup.outputs.retention_days }}

- name: Testspace push test content
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }}
run: |
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/packchkunittests-*.xml"
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/packchkintegtests-*.xml"

coverage:
if: |
(github.event_name == 'pull_request') ||
Expand All @@ -185,12 +173,6 @@ jobs:
with:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build PackChkUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand Down Expand Up @@ -254,27 +236,6 @@ jobs:
genhtml coverage_packchk.info --output-directory coverage_packchk --branch-coverage
working-directory: ./build/tools/packchk

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/packchk/coverage_packchk.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.3.0
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/packgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,6 @@ jobs:
with:
submodules: true

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build PackGenUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand All @@ -187,11 +181,6 @@ jobs:
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error

- name: Testspace push test content
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }}
run: |
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/packgenunittests-*.xml"

coverage:
if: |
(github.event_name == 'pull_request') ||
Expand All @@ -215,12 +204,6 @@ jobs:
with:
submodules: true

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build PackGenUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand Down Expand Up @@ -265,27 +248,6 @@ jobs:
genhtml coverage_packgen.info --output-directory coverage_packgen --branch-coverage
working-directory: ./build/tools/packgen/

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/packgen/coverage_packgen.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.3.0
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,6 @@ jobs:
with:
submodules: true

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build ProjMgrUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand Down Expand Up @@ -336,11 +330,6 @@ jobs:
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error

- name: Testspace push test content
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }}
run: |
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/projmgrunittests-*.xml"

coverage:
if: |
(github.event_name == 'pull_request') ||
Expand All @@ -364,12 +353,6 @@ jobs:
with:
submodules: true

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build ProjMgrUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand Down Expand Up @@ -414,27 +397,6 @@ jobs:
genhtml coverage_projmgr.info --output-directory coverage_projmgr --branch-coverage
working-directory: ./build/tools/projmgr/

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/projmgr/coverage_projmgr.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.3.0
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/svdconv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ jobs:
with:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build SVDConvUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand Down Expand Up @@ -145,12 +139,6 @@ jobs:
if-no-files-found: error
retention-days: ${{ needs.setup.outputs.retention_days }}

- name: Testspace push unit test content
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }}
run: |
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/svdconvunittests-*.xml"
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/svdconvintegtests-*.xml"

coverage:
if: |
(github.event_name == 'pull_request') ||
Expand All @@ -174,12 +162,6 @@ jobs:
with:
submodules: recursive

- name: Testspace client install & config
if: ${{ !github.event.repository.private }}
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

# https://github.com/Open-CMSIS-Pack/devtools-build-action
- name: Build SVDConvUnitTests
uses: Open-CMSIS-Pack/devtools-build-action@arm64
Expand Down Expand Up @@ -250,27 +232,6 @@ jobs:
genhtml coverage_svdconv.info --output-directory coverage_svdconv --branch-coverage
working-directory: ./build/tools/svdconv

# testspace changes start
- name: Set up Python
if: ${{ !github.event.repository.private }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
if: ${{ !github.event.repository.private }}
run: |
python -m pip install --upgrade pip
pip install lcov_cobertura
- name: Convert to xml
if: ${{ !github.event.repository.private }}
run: |
lcov_cobertura ./build/tools/svdconv/coverage_svdconv.info
- name: Testspace push coverage
if: ${{ !github.event.repository.private }}
run: |
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml"
# testspace changes start

- name: Upload Report to Codecov
if: ${{ !github.event.repository.private }}
uses: Wandalen/wretry.action@v1.3.0
Expand Down
Loading