ci: reuse isolated pip seeds and parallelize native acceptance (#6395)

* ci: reuse isolated pip seeds and parallelize native acceptance

* test: retain native controller tree ownership after exit

* ci: retain proven Windows integration worker budgets

* test: keep stdlib creation for seeded integration environments

* fix(ci): constrain stylesheet scans and installer discovery

(cherry picked from commit 3c7a880b1e266a722b7c0075154fd0fc11a6b667)

* test(linear): make rate-limit timing deterministic
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-23 13:45:14 +08:00
1 parent a8873bb565
commit d045285ced
14 files changed
+831 -76

No files matched your search

+2 -4
View File
@@ -11,7 +11,6 @@ import subprocess
import sys
import threading
import time
import venv
from dataclasses import replace
from pathlib import Path, PureWindowsPath
from unittest.mock import AsyncMock
@@ -191,7 +190,7 @@ def test_planning_probe_bootstraps_before_target_site(tmp_path, monkeypatch):
@pytest.fixture
def installation(tmp_path, monkeypatch, request):
def installation(tmp_path, monkeypatch, request, create_integration_env):
# Synthetic local packages are not signed public releases. Approval refusal
# is covered through the real feed in test_release_trust.py.
monkeypatch.setattr(ReleaseFeed, "_authorize", AsyncMock())
@@ -202,8 +201,7 @@ def installation(tmp_path, monkeypatch, request):
artifacts = tmp_path / "artifacts"
artifacts.mkdir()
environment = tmp_path / "venv with spaces"
venv.EnvBuilder(with_pip=True).create(environment)
python = str(environment / ("Scripts/python.exe" if os.name == "nt" else "bin/python"))
python = str(create_integration_env(environment))
monkeypatch.setenv("PIP_CONFIG_FILE", os.devnull)
monkeypatch.setenv("PIP_NO_INDEX", "1")
monkeypatch.setenv("PIP_FIND_LINKS", str(artifacts))