From c2f50a69e2bfbd465f94487732cf1c8044efbf85 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Sun, 8 Dec 2024 02:46:21 -0800 Subject: [PATCH 1/4] add CLONE_NEWTIME to os.__all__ --- stdlib/os/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/os/__init__.pyi b/stdlib/os/__init__.pyi index 98260b14e7ed..64691b514a48 100644 --- a/stdlib/os/__init__.pyi +++ b/stdlib/os/__init__.pyi @@ -231,6 +231,7 @@ if sys.platform == "linux" and sys.version_info >= (3, 12): "CLONE_NEWNET", "CLONE_NEWNS", "CLONE_NEWPID", + "CLONE_NEWTIME", "CLONE_NEWUSER", "CLONE_NEWUTS", "CLONE_SIGHAND", From 68eaffa988f11ac2d8cde52ededbda67ab659ca6 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Sun, 8 Dec 2024 02:50:47 -0800 Subject: [PATCH 2/4] allowlist --- stdlib/@tests/stubtest_allowlists/linux-py312.txt | 10 ---------- stdlib/@tests/stubtest_allowlists/linux-py313.txt | 8 -------- 2 files changed, 18 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/linux-py312.txt b/stdlib/@tests/stubtest_allowlists/linux-py312.txt index a2c251dcd47c..a4083aa22ed7 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py312.txt @@ -1,13 +1,3 @@ -# ======= -# >= 3.12 -# ======= - -# These seem like they should be available on Linux, but they're not -# on GitHub Actions runners for some reason. -os.CLONE_NEWTIME -posix.CLONE_NEWTIME - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/linux-py313.txt b/stdlib/@tests/stubtest_allowlists/linux-py313.txt index 046fd9e54c00..e69de29bb2d1 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py313.txt @@ -1,8 +0,0 @@ -# ======= -# >= 3.12 -# ======= - -# These seem like they should be available on Linux, but they're not -# on GitHub Actions runners for some reason. -os.CLONE_NEWTIME -posix.CLONE_NEWTIME From fd0265c4d3f5eebbd5a5d067417c45bc14d531a2 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Sun, 8 Dec 2024 12:29:50 -0800 Subject: [PATCH 3/4] pin ubuntu version in stubtest-stdlib and daily workflows --- .github/workflows/daily.yml | 4 +++- .github/workflows/stubtest_stdlib.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 548807e813cb..1ddd451ed612 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -34,7 +34,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: ["ubuntu-latest", "windows-latest", "macos-latest"] + # As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions, + # which can can cause problems with os module constants. + os: ["ubuntu-latest-24.04", "windows-latest", "macos-latest"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false diff --git a/.github/workflows/stubtest_stdlib.yml b/.github/workflows/stubtest_stdlib.yml index 7224f0ea6380..9ae15305b06c 100644 --- a/.github/workflows/stubtest_stdlib.yml +++ b/.github/workflows/stubtest_stdlib.yml @@ -30,7 +30,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: ["ubuntu-latest", "windows-latest", "macos-latest"] + # As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions, + # which can can cause problems with os module constants. + os: ["ubuntu-24.04", "windows-latest", "macos-latest"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false From d32a5c07646d15e2e64aab3b9315b735f1fa3b49 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Sun, 8 Dec 2024 13:02:39 -0800 Subject: [PATCH 4/4] Update .github/workflows/daily.yml Co-authored-by: Alex Waygood --- .github/workflows/daily.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 1ddd451ed612..8ca4191afb5a 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -36,7 +36,7 @@ jobs: matrix: # As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions, # which can can cause problems with os module constants. - os: ["ubuntu-latest-24.04", "windows-latest", "macos-latest"] + os: ["ubuntu-24.04", "windows-latest", "macos-latest"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false