mirror of
https://github.com/python/cpython.git
synced 2025-10-01 04:42:10 +00:00
[3.12] gh-109395: Remove skipped coverage job from Azure Pipelines (GH-109412) (#109433)
gh-109395: Remove skipped coverage job from Azure Pipelines (GH-109412)
(cherry picked from commit fa493900fb
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
35c633d245
commit
dba95c546b
3 changed files with 9 additions and 101 deletions
|
@ -1,6 +1,3 @@
|
||||||
variables:
|
|
||||||
coverage: false
|
|
||||||
|
|
||||||
trigger: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
|
trigger: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -51,33 +48,6 @@ jobs:
|
||||||
dependencies: apt
|
dependencies: apt
|
||||||
|
|
||||||
|
|
||||||
- job: Ubuntu_Coverage_CI_Tests
|
|
||||||
displayName: Ubuntu CI Tests (coverage)
|
|
||||||
dependsOn: Prebuild
|
|
||||||
condition: |
|
|
||||||
and(
|
|
||||||
and(
|
|
||||||
succeeded(),
|
|
||||||
eq(variables['coverage'], 'true')
|
|
||||||
),
|
|
||||||
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
|
|
||||||
)
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: ubuntu-22.04
|
|
||||||
|
|
||||||
variables:
|
|
||||||
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
|
|
||||||
testRunPlatform: linux-coverage
|
|
||||||
openssl_version: 1.1.1u
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- template: ./posix-steps.yml
|
|
||||||
parameters:
|
|
||||||
dependencies: apt
|
|
||||||
coverage: true
|
|
||||||
|
|
||||||
|
|
||||||
- job: Windows_CI_Tests
|
- job: Windows_CI_Tests
|
||||||
displayName: Windows CI Tests
|
displayName: Windows CI Tests
|
||||||
dependsOn: Prebuild
|
dependsOn: Prebuild
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
parameters:
|
parameters:
|
||||||
coverage: false
|
|
||||||
sudo_dependencies: sudo
|
sudo_dependencies: sudo
|
||||||
dependencies: apt
|
dependencies: apt
|
||||||
patchcheck: true
|
patchcheck: true
|
||||||
|
@ -23,37 +22,6 @@ steps:
|
||||||
- script: make -j4
|
- script: make -j4
|
||||||
displayName: 'Build CPython'
|
displayName: 'Build CPython'
|
||||||
|
|
||||||
- ${{ if eq(parameters.coverage, 'true') }}:
|
|
||||||
- script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage
|
|
||||||
displayName: 'Set up virtual environment'
|
|
||||||
|
|
||||||
- script: ./venv/bin/python -m test.pythoninfo
|
|
||||||
displayName: 'Display build info'
|
|
||||||
|
|
||||||
- script: |
|
|
||||||
$COMMAND -m coverage run --pylib -m test \
|
|
||||||
--fail-env-changed \
|
|
||||||
-uall,-cpu \
|
|
||||||
--junit-xml=$(build.binariesDirectory)/test-results.xml \
|
|
||||||
-x test_multiprocessing_fork \
|
|
||||||
-x test_multiprocessing_forkserver \
|
|
||||||
-x test_multiprocessing_spawn \
|
|
||||||
-x test_concurrent_futures
|
|
||||||
displayName: 'Tests with coverage'
|
|
||||||
env:
|
|
||||||
${{ if eq(parameters.xvfb, 'true') }}:
|
|
||||||
COMMAND: xvfb-run ./venv/bin/python
|
|
||||||
${{ if ne(parameters.xvfb, 'true') }}:
|
|
||||||
COMMAND: ./venv/bin/python
|
|
||||||
|
|
||||||
- script: ./venv/bin/python -m coverage xml
|
|
||||||
displayName: 'Generate coverage.xml'
|
|
||||||
|
|
||||||
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
|
|
||||||
displayName: 'Publish code coverage results'
|
|
||||||
|
|
||||||
|
|
||||||
- ${{ if ne(parameters.coverage, 'true') }}:
|
|
||||||
- script: make pythoninfo
|
- script: make pythoninfo
|
||||||
displayName: 'Display build info'
|
displayName: 'Display build info'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
variables:
|
|
||||||
coverage: false
|
|
||||||
|
|
||||||
pr: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
|
pr: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -53,33 +50,6 @@ jobs:
|
||||||
dependencies: apt
|
dependencies: apt
|
||||||
|
|
||||||
|
|
||||||
- job: Ubuntu_Coverage_PR_Tests
|
|
||||||
displayName: Ubuntu PR Tests (coverage)
|
|
||||||
dependsOn: Prebuild
|
|
||||||
condition: |
|
|
||||||
and(
|
|
||||||
and(
|
|
||||||
succeeded(),
|
|
||||||
eq(variables['coverage'], 'true')
|
|
||||||
),
|
|
||||||
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
|
|
||||||
)
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: ubuntu-22.04
|
|
||||||
|
|
||||||
variables:
|
|
||||||
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
|
|
||||||
testRunPlatform: linux-coverage
|
|
||||||
openssl_version: 1.1.1u
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- template: ./posix-steps.yml
|
|
||||||
parameters:
|
|
||||||
dependencies: apt
|
|
||||||
coverage: true
|
|
||||||
|
|
||||||
|
|
||||||
- job: Windows_PR_Tests
|
- job: Windows_PR_Tests
|
||||||
displayName: Windows PR Tests
|
displayName: Windows PR Tests
|
||||||
dependsOn: Prebuild
|
dependsOn: Prebuild
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue