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

+7 -6
View File
@@ -62,20 +62,20 @@ jobs:
coverage: false
# Keep exact Rich output and real prompt_toolkit pipes in a fresh
# CLI process: long-lived workers can exceed select()'s fd limit.
pytest_args: "-n auto --dist loadfile --ignore=tests/cli/test_commands.py --ignore=tests/cli/test_cli_input.py --ignore=tests/cli/test_desktop_target.py --ignore=tests/cli/test_desktop_target_entrypoints.py"
pytest_args: "-n 4 --dist loadfile --ignore=tests/cli/test_commands.py --ignore=tests/cli/test_cli_input.py --ignore=tests/cli/test_desktop_target.py --ignore=tests/cli/test_desktop_target_entrypoints.py"
- name: latest, 3.14 + coverage
os: ubuntu-latest
python-version: "3.14"
coverage: true
pytest_args: "-n auto --dist loadfile --ignore=tests/cli/test_commands.py --ignore=tests/cli/test_cli_input.py --ignore=tests/cli/test_desktop_target.py --ignore=tests/cli/test_desktop_target_entrypoints.py"
pytest_args: "-n 4 --dist loadfile --ignore=tests/cli/test_commands.py --ignore=tests/cli/test_cli_input.py --ignore=tests/cli/test_desktop_target.py --ignore=tests/cli/test_desktop_target_entrypoints.py"
- name: Windows, 3.14
os: windows-latest
python-version: "3.14"
coverage: false
# Process identities run serially; isolated update jobs use case-level
# scheduling below so one file cannot serialize all real venv work.
# Retain main's three-worker budget and the separate native-process job.
pytest_args: "-n 3 --dist loadfile --ignore=tests/cli/test_commands.py --ignore=tests/cli/test_cli_input.py --ignore=tests/cli/test_desktop_target.py --ignore=tests/cli/test_desktop_target_entrypoints.py --ignore=tests/tools/test_exec_platform.py --ignore=tests/cli/test_wsl_browser.py --ignore=tests/test_install_scripts.py --ignore=tests/test_update_jobs.py --ignore=tests/test_update_profiles.py"
# Double the prior three-worker budget; keep native-process checks separate.
pytest_args: "-n 6 --dist loadfile --ignore=tests/cli/test_commands.py --ignore=tests/cli/test_cli_input.py --ignore=tests/cli/test_desktop_target.py --ignore=tests/cli/test_desktop_target_entrypoints.py --ignore=tests/tools/test_exec_platform.py --ignore=tests/cli/test_wsl_browser.py --ignore=tests/test_install_scripts.py --ignore=tests/test_update_jobs.py --ignore=tests/test_update_profiles.py"
steps:
- uses: actions/checkout@v4
@@ -139,6 +139,7 @@ jobs:
# Each update job owns its venv, HOME, profile and lock directory. Preserve
# the real installation/restore checks, but avoid a loadfile straggler and
# disk contention with timing-sensitive runtime-registration checks.
# Keep three update workers; the six-worker trial exceeded supervisor deadlines.
- name: Run Windows isolated update jobs
if: runner.os == 'Windows' && github.event_name != 'push' && needs.changes.outputs.native_required == 'true'
run: >-
@@ -266,8 +267,8 @@ jobs:
uv tool install pipx==1.17.12
uv tool dir --bin >> "$GITHUB_PATH"
# Each case owns an isolated manager/config root. Keep the existing
# four-worker budget, independent of process-identity compatibility checks.
# Each case owns an isolated manager/config root. Keep four workers:
# eight-way installer startup exceeded the existing command deadlines in CI.
- name: Run Windows installer checks
run: >-
uv run --no-sync python -m pytest tests/test_install_scripts.py