chore(release): prepare 0.4.1 (#6570)

Prepare version 0.4.1 and document the retained legacy upgrade path.

Avoid false busy update handoffs from disabled or not-yet-due idle scans. Keep real work, maintenance, lease and data-protection checks intact.

Retain safe package-failure diagnostics and cancellable test-controller progress checks. Reduce Windows installer startup contention without changing command deadlines or behavioral assertions.

Validated on the reviewed head with all required PR checks and the exact five-platform candidate. Historical package and recovery coverage remains as documented in the release acceptance record. Publication is separate; this merge does not create a tag, release, upload or feed change.
This commit is contained in:
Xubin Ren authored and GitHub committed 2026-11-06 20:48:57 +08:00
1 parent 1a89a25abd
commit cdaae66c89
15 files changed
+310 -37

No files matched your search

+9 -8
View File
@@ -151,12 +151,13 @@ 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.
# Three concurrent offline pip fixture installs exceeded their 60s bounds.
# Reduce startup contention; keep every command deadline and lease assertion.
- name: Run Windows isolated update jobs
if: runner.os == 'Windows' && github.event_name != 'push' && needs.changes.outputs.native_required == 'true'
run: >-
uv run --no-sync python -m pytest tests/test_update_jobs.py
-n 3 --dist load -vv --durations=25 --durations-min=1.0
-n 2 --dist load -vv --durations=25 --durations-min=1.0
--junitxml=test-results/update-jobs.xml --timing-report=test-results/update-jobs.json
- name: Run tests with coverage
@@ -260,9 +261,9 @@ jobs:
needs: changes
if: github.event_name != 'push' && needs.changes.outputs.python_required == 'true' && needs.changes.outputs.native_required == 'true'
runs-on: windows-latest
# The real installer matrix took 18m06s alone; process checks and teardown
# previously pushed the combined job beyond its 20-minute bound.
timeout-minutes: 25
# Two installer workers retain the per-command 90s deadline without four
# concurrent PowerShell/venv cold starts competing on the same Windows VM.
timeout-minutes: 40
env:
PYTEST_ADDOPTS: "-o tmp_path_retention_policy=failed -p scripts.pytest_timing"
steps:
@@ -282,12 +283,12 @@ jobs:
uv tool install pipx==1.17.12
uv tool dir --bin >> "$GITHUB_PATH"
# Each case owns an isolated manager/config root. Keep four workers:
# eight-way installer startup exceeded the existing command deadlines in CI.
# Each case owns an isolated manager/config root. Four concurrent starts
# exceeded the command deadlines; reduce contention, not test coverage.
- name: Run Windows installer checks
run: >-
uv run --no-sync python -m pytest tests/test_install_scripts.py
-n 4 --dist load -x -vv --durations=10
-n 2 --dist load -x -vv --durations=10
--junitxml=test-results/installers.xml --timing-report=test-results/installers.json
- name: Upload Windows process test timings