Skip to content

Commit 9ded50d

Browse files
authored
Merge branch 'main' into fix/gzipfile-readinto
2 parents e9ff55a + 12db452 commit 9ded50d

File tree

415 files changed

+12675
-6666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+12675
-6666
lines changed

.github/workflows/add-issue-header.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
permissions:
2020
issues: write
21+
timeout-minutes: 5
2122
steps:
2223
- uses: actions/github-script@v7
2324
with:

.github/workflows/build.yml

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
if: fromJSON(needs.build-context.outputs.run-docs)
4444
uses: ./.github/workflows/reusable-docs.yml
4545

46-
check_autoconf_regen:
46+
check-autoconf-regen:
4747
name: 'Check if Autoconf files are up to date'
4848
# Don't use ubuntu-latest but a specific version to make the job
4949
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
@@ -86,7 +86,7 @@ jobs:
8686
exit 1
8787
fi
8888
89-
check_generated_files:
89+
check-generated-files:
9090
name: 'Check if generated files are up to date'
9191
# Don't use ubuntu-latest but a specific version to make the job
9292
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
@@ -147,7 +147,7 @@ jobs:
147147
if: github.event_name == 'pull_request' # $GITHUB_EVENT_NAME
148148
run: make check-c-globals
149149

150-
build_windows:
150+
build-windows:
151151
name: >-
152152
Windows
153153
${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
@@ -179,12 +179,13 @@ jobs:
179179
arch: ${{ matrix.arch }}
180180
free-threading: ${{ matrix.free-threading }}
181181

182-
build_windows_msi:
182+
build-windows-msi:
183183
name: >- # ${{ '' } is a hack to nest jobs under the same sidebar category
184184
Windows MSI${{ '' }}
185185
needs: build-context
186186
if: fromJSON(needs.build-context.outputs.run-windows-msi)
187187
strategy:
188+
fail-fast: false
188189
matrix:
189190
arch:
190191
- x86
@@ -194,7 +195,7 @@ jobs:
194195
with:
195196
arch: ${{ matrix.arch }}
196197

197-
build_macos:
198+
build-macos:
198199
name: >-
199200
macOS
200201
${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
@@ -228,14 +229,15 @@ jobs:
228229
free-threading: ${{ matrix.free-threading }}
229230
os: ${{ matrix.os }}
230231

231-
build_ubuntu:
232+
build-ubuntu:
232233
name: >-
233234
Ubuntu
234235
${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
235236
${{ fromJSON(matrix.bolt) && '(bolt)' || '' }}
236237
needs: build-context
237238
if: needs.build-context.outputs.run-tests == 'true'
238239
strategy:
240+
fail-fast: false
239241
matrix:
240242
bolt:
241243
- false
@@ -260,7 +262,7 @@ jobs:
260262
free-threading: ${{ matrix.free-threading }}
261263
os: ${{ matrix.os }}
262264

263-
build_ubuntu_ssltests:
265+
build-ubuntu-ssltests:
264266
name: 'Ubuntu SSL tests with OpenSSL'
265267
runs-on: ${{ matrix.os }}
266268
timeout-minutes: 60
@@ -322,15 +324,15 @@ jobs:
322324
- name: SSL tests
323325
run: ./python Lib/test/ssltests.py
324326

325-
build_wasi:
327+
build-wasi:
326328
name: 'WASI'
327329
needs: build-context
328330
if: needs.build-context.outputs.run-tests == 'true'
329331
uses: ./.github/workflows/reusable-wasi.yml
330332
with:
331333
config_hash: ${{ needs.build-context.outputs.config-hash }}
332334

333-
test_hypothesis:
335+
test-hypothesis:
334336
name: "Hypothesis tests on Ubuntu"
335337
runs-on: ubuntu-24.04
336338
timeout-minutes: 60
@@ -445,14 +447,14 @@ jobs:
445447
name: hypothesis-example-db
446448
path: ${{ env.CPYTHON_BUILDDIR }}/.hypothesis/examples/
447449

448-
449-
build_asan:
450+
build-asan:
450451
name: 'Address sanitizer'
451452
runs-on: ${{ matrix.os }}
452453
timeout-minutes: 60
453454
needs: build-context
454455
if: needs.build-context.outputs.run-tests == 'true'
455456
strategy:
457+
fail-fast: false
456458
matrix:
457459
os: [ubuntu-24.04]
458460
env:
@@ -509,13 +511,14 @@ jobs:
509511
- name: Tests
510512
run: xvfb-run make ci
511513

512-
build_tsan:
514+
build-tsan:
513515
name: >-
514516
Thread sanitizer
515517
${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
516518
needs: build-context
517519
if: needs.build-context.outputs.run-tests == 'true'
518520
strategy:
521+
fail-fast: false
519522
matrix:
520523
free-threading:
521524
- false
@@ -528,6 +531,7 @@ jobs:
528531
cross-build-linux:
529532
name: Cross build Linux
530533
runs-on: ubuntu-latest
534+
timeout-minutes: 60
531535
needs: build-context
532536
if: needs.build-context.outputs.run-tests == 'true'
533537
steps:
@@ -592,8 +596,8 @@ jobs:
592596
output-sarif: true
593597
sanitizer: ${{ matrix.sanitizer }}
594598
- name: Upload crash
595-
uses: actions/upload-artifact@v4
596599
if: failure() && steps.build.outcome == 'success'
600+
uses: actions/upload-artifact@v4
597601
with:
598602
name: ${{ matrix.sanitizer }}-artifacts
599603
path: ./out/artifacts
@@ -606,36 +610,35 @@ jobs:
606610

607611
all-required-green: # This job does nothing and is only used for the branch protection
608612
name: All required checks pass
609-
if: always()
610-
613+
runs-on: ubuntu-latest
614+
timeout-minutes: 5
611615
needs:
612616
- build-context # Transitive dependency, needed to access `run-tests` value
613617
- check-docs
614-
- check_autoconf_regen
615-
- check_generated_files
616-
- build_macos
617-
- build_ubuntu
618-
- build_ubuntu_ssltests
619-
- build_wasi
620-
- build_windows
621-
- build_windows_msi
618+
- check-autoconf-regen
619+
- check-generated-files
620+
- build-windows
621+
- build-windows-msi
622+
- build-macos
623+
- build-ubuntu
624+
- build-ubuntu-ssltests
625+
- build-wasi
626+
- test-hypothesis
627+
- build-asan
628+
- build-tsan
622629
- cross-build-linux
623-
- test_hypothesis
624-
- build_asan
625-
- build_tsan
626630
- cifuzz
627-
628-
runs-on: ubuntu-latest
631+
if: always()
629632

630633
steps:
631634
- name: Check whether the needed jobs succeeded or failed
632635
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
633636
with:
634637
allowed-failures: >-
635-
build_ubuntu_ssltests,
636-
build_windows_msi,
638+
build-windows-msi,
639+
build-ubuntu-ssltests,
640+
test-hypothesis,
637641
cifuzz,
638-
test_hypothesis,
639642
allowed-skips: >-
640643
${{
641644
!fromJSON(needs.build-context.outputs.run-docs)
@@ -647,23 +650,23 @@ jobs:
647650
${{
648651
needs.build-context.outputs.run-tests != 'true'
649652
&& '
650-
check_autoconf_regen,
651-
check_generated_files,
652-
build_macos,
653-
build_ubuntu,
654-
build_ubuntu_ssltests,
655-
build_wasi,
656-
build_asan,
657-
build_tsan,
658-
test_hypothesis,
653+
check-autoconf-regen,
654+
check-generated-files,
655+
build-macos,
656+
build-ubuntu,
657+
build-ubuntu-ssltests,
658+
build-wasi,
659+
test-hypothesis,
660+
build-asan,
661+
build-tsan,
659662
cross-build-linux,
660663
'
661664
|| ''
662665
}}
663666
${{
664667
!fromJSON(needs.build-context.outputs.run-windows-tests)
665668
&& '
666-
build_windows,
669+
build-windows,
667670
'
668671
|| ''
669672
}}

.github/workflows/documentation-links.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
permissions:
2121
pull-requests: write
22+
timeout-minutes: 5
2223

2324
steps:
2425
- uses: readthedocs/actions/preview@v1

.github/workflows/jit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ jobs:
137137
name: Free-Threaded (Debug)
138138
needs: interpreter
139139
runs-on: ubuntu-24.04
140+
timeout-minutes: 90
140141
strategy:
142+
fail-fast: false
141143
matrix:
142144
llvm:
143145
- 19

.github/workflows/mypy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ concurrency:
3333

3434
jobs:
3535
mypy:
36+
name: Run mypy on ${{ matrix.target }}
37+
runs-on: ubuntu-latest
38+
timeout-minutes: 10
3639
strategy:
3740
fail-fast: false
3841
matrix:
@@ -46,9 +49,6 @@ jobs:
4649
"Tools/peg_generator",
4750
"Tools/wasm",
4851
]
49-
name: Run mypy on ${{ matrix.target }}
50-
runs-on: ubuntu-latest
51-
timeout-minutes: 10
5252
steps:
5353
- uses: actions/checkout@v4
5454
with:

.github/workflows/project-updater.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 10
1717
strategy:
18+
fail-fast: false
1819
matrix:
1920
include:
2021
# if an issue has any of these labels, it will be added

.github/workflows/require-pr-label.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
if: github.repository_owner == 'python'
1111
runs-on: ubuntu-latest
1212
permissions:
13-
issues: write
14-
pull-requests: write
13+
pull-requests: read
1514
timeout-minutes: 10
1615

1716
steps:
@@ -28,8 +27,7 @@ jobs:
2827
if: github.repository_owner == 'python'
2928
runs-on: ubuntu-latest
3029
permissions:
31-
issues: write
32-
pull-requests: write
30+
pull-requests: read
3331
timeout-minutes: 10
3432

3533
steps:

.github/workflows/reusable-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
FORCE_COLOR: 1
1616

1717
jobs:
18-
build_doc:
18+
build-doc:
1919
name: 'Docs'
2020
runs-on: ubuntu-latest
2121
timeout-minutes: 60

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ env:
1919
FORCE_COLOR: 1
2020

2121
jobs:
22-
build_macos:
22+
build-macos:
2323
name: build and test (${{ inputs.os }})
24+
runs-on: ${{ inputs.os }}
2425
timeout-minutes: 60
2526
env:
2627
HOMEBREW_NO_ANALYTICS: 1
@@ -29,7 +30,6 @@ jobs:
2930
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
3031
PYTHONSTRICTEXTENSIONBUILD: 1
3132
TERM: linux
32-
runs-on: ${{ inputs.os }}
3333
steps:
3434
- uses: actions/checkout@v4
3535
with:

.github/workflows/reusable-tsan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
FORCE_COLOR: 1
1717

1818
jobs:
19-
build_tsan_reusable:
19+
build-tsan-reusable:
2020
name: 'Thread sanitizer'
2121
runs-on: ubuntu-24.04
2222
timeout-minutes: 60

0 commit comments

Comments
 (0)