Fix scoped Python imports, worker supervision and daemon CI for v0.41.45 #508

Merged
buildagent merged 4 commits from fix/production-batch-045 into master 2026-11-08 12:18:43 +01:00
Member

Function-local Python imports could resolve to an unrelated same-file function. Resolve each call through its visible, independently proven import; preserve outside-scope calls and refuse missing or ambiguous imports, reassignment, and calls before the import. Reindexing follows provider and import edits. Re-exports, multiline imports and one-line functions retain their own import proof.

Also included in this qualification batch:

  • Keep workers alive when Windows cannot open the parent handle; report watchdog failures and close the owned handle after waiting. Document daemon exit records and the shared tool-call budget (#305 subcases).
  • Replace dynamically written kill-cost workers with checked-in executables, and detect File::create executable writers in the fork-lock gate. Closes #271.
  • Fetch the same pinned Windows nextest bytes through the immutable GitHub asset API before compilation, verify SHA-256, and capture the complete native version output and exit status. The original browser-download URL returned HTTP 504.
  • Run the complete daemon transport suite through the existing parallel ordinary and serial timing profiles. MCP is a binary-only package; workspace doc tests remain in the existing core job. No test population, assertion or timeout is removed.

The Python change addresses the function-local import subcase of #300; remaining subcases and the remaining #305 work stay open.

Validation: all required workflows passed on final head 3842ab6d5e194b9eefb402e81e567c9c62fa5d66: Linux CI, native Windows, package scope, and C#/timeline compatibility. Windows passed 5,178 ordinary and 43 serial tests, installer end-to-end checks, and debug/release worker smoke. Daemon transport passed 996 ordinary and 11 serial tests; Linux main, doc tests and tier-1 corpus are green. Package-scope jobs do not claim unchanged packages were rebuilt.

Local controls also pass: reproduced failing Python baseline, shipped Python fixtures, negative/incremental controls, capability/generation isolation, scoped/cold equivalence, executable-writer mutation, worker kill-cost tests and 79 CI routing/cadence/disk/command-line checks.

Pinned-corpus audit: Flask is unchanged. Django retains all 483,197 reference sites; independent AST review verifies 11 new correct bindings, one same-file target correction, and two external Selenium phantom removals. Net resolved references and symbol edges each increase by 9. Only the six affected Django baseline values move; activation and the unmeasured Rust corpus remain unchanged. See _prdoc/records/v0.41.45-python-local-imports.md.

The 79 local CI routing, cadence, disk and Windows command-line checks pass. The replacement download matches the original nextest 0.9.144 SHA-256 pin. An isolated native Windows probe passed the exact bootstrap in seven seconds; the full Windows run also passed bootstrap. The diagnostic workflow is confined to a temporary branch and is absent from this PR.

Function-local Python imports could resolve to an unrelated same-file function. Resolve each call through its visible, independently proven import; preserve outside-scope calls and refuse missing or ambiguous imports, reassignment, and calls before the import. Reindexing follows provider and import edits. Re-exports, multiline imports and one-line functions retain their own import proof. Also included in this qualification batch: - Keep workers alive when Windows cannot open the parent handle; report watchdog failures and close the owned handle after waiting. Document daemon exit records and the shared tool-call budget (#305 subcases). - Replace dynamically written kill-cost workers with checked-in executables, and detect `File::create` executable writers in the fork-lock gate. Closes #271. - Fetch the same pinned Windows nextest bytes through the immutable GitHub asset API before compilation, verify SHA-256, and capture the complete native version output and exit status. The original browser-download URL returned HTTP 504. - Run the complete daemon transport suite through the existing parallel ordinary and serial timing profiles. MCP is a binary-only package; workspace doc tests remain in the existing core job. No test population, assertion or timeout is removed. The Python change addresses the function-local import subcase of #300; remaining subcases and the remaining #305 work stay open. Validation: all required workflows passed on final head `3842ab6d5e194b9eefb402e81e567c9c62fa5d66`: [Linux CI](https://git.h-dv.de/h-dv/code-index/actions/runs/2443), [native Windows](https://git.h-dv.de/h-dv/code-index/actions/runs/2442), [package scope](https://git.h-dv.de/h-dv/code-index/actions/runs/2444), and [C#/timeline compatibility](https://git.h-dv.de/h-dv/code-index/actions/runs/2445). Windows passed 5,178 ordinary and 43 serial tests, installer end-to-end checks, and debug/release worker smoke. Daemon transport passed 996 ordinary and 11 serial tests; Linux main, doc tests and tier-1 corpus are green. Package-scope jobs do not claim unchanged packages were rebuilt. Local controls also pass: reproduced failing Python baseline, shipped Python fixtures, negative/incremental controls, capability/generation isolation, scoped/cold equivalence, executable-writer mutation, worker kill-cost tests and 79 CI routing/cadence/disk/command-line checks. Pinned-corpus audit: Flask is unchanged. Django retains all 483,197 reference sites; independent AST review verifies 11 new correct bindings, one same-file target correction, and two external Selenium phantom removals. Net resolved references and symbol edges each increase by 9. Only the six affected Django baseline values move; activation and the unmeasured Rust corpus remain unchanged. See `_prdoc/records/v0.41.45-python-local-imports.md`. The 79 local CI routing, cadence, disk and Windows command-line checks pass. The replacement download matches the original nextest 0.9.144 SHA-256 pin. An isolated native Windows probe passed the exact bootstrap in seven seconds; the full Windows run also passed bootstrap. The diagnostic workflow is confined to a temporary branch and is absent from this PR.
Preserve proven import spans and audit Django binding changes
Some checks failed
Package CI / package (typescript) (pull_request) Successful in 2s
Package CI / package-corpus (csharp) (pull_request) Successful in 3s
Package CI / package-corpus (javascript) (pull_request) Successful in 2s
Package CI / package-corpus (php) (pull_request) Successful in 2s
Package CI / package-corpus (python) (pull_request) Successful in 2s
Package CI / package-corpus (svelte) (pull_request) Successful in 2s
Package CI / package-corpus (timeline) (pull_request) Successful in 2s
Package CI / package-corpus (rust) (pull_request) Successful in 2s
Package CI / package-corpus (typescript) (pull_request) Successful in 3s
Package CI / package-corpus (ruby) (pull_request) Successful in 3s
Package CI / package-corpus (vue) (pull_request) Successful in 1s
Package CI / package-corpus (xaml) (pull_request) Successful in 2s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 16s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 21s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 25s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 34s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / CI lane wall-clock headroom (pull_request) Successful in 44s
CI / cargo doc (intra-doc links) (pull_request) Successful in 4m30s
CI / cargo deny (pull_request) Successful in 4m52s
CI / cargo clippy (pull_request) Successful in 5m15s
CI / cargo check (MSRV 1.99.1) (pull_request) Successful in 6m26s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 6m39s
CI / cargo check (windows-gnu) (pull_request) Successful in 6m49s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Failing after 7m56s
CI / cargo test (daemon transport) (pull_request) Has been cancelled
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / OSS corpus (tier 1) (pull_request) Has been cancelled
544cf25f8d
Fetch pinned Windows nextest from its immutable asset API before compiling
Some checks failed
Package CI / package-corpus (php) (pull_request) Successful in 3s
Package CI / package-corpus (javascript) (pull_request) Successful in 3s
Package CI / package (xaml) (pull_request) Successful in 3s
Package CI / package-corpus (python) (pull_request) Successful in 3s
Package CI / package-corpus (csharp) (pull_request) Successful in 3s
Package CI / package-corpus (rust) (pull_request) Successful in 2s
Package CI / package-corpus (svelte) (pull_request) Successful in 2s
Package CI / package-corpus (ruby) (pull_request) Successful in 3s
Package CI / package-corpus (timeline) (pull_request) Successful in 3s
Package CI / package-corpus (vue) (pull_request) Successful in 2s
Package CI / package-corpus (xaml) (pull_request) Successful in 3s
Package CI / package-corpus (typescript) (pull_request) Successful in 3s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 17s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 19s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 31s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 24s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / CI lane wall-clock headroom (pull_request) Successful in 40s
CI / cargo doc (intra-doc links) (pull_request) Successful in 4m36s
CI / cargo deny (pull_request) Successful in 5m3s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Has been cancelled
CI / cargo clippy (pull_request) Successful in 5m19s
CI / cargo check (MSRV 1.99.1) (pull_request) Successful in 6m29s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 6m44s
CI / cargo check (windows-gnu) (pull_request) Successful in 6m49s
CI / cargo test (daemon transport) (pull_request) Has been cancelled
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / OSS corpus (tier 1) (pull_request) Has been cancelled
673b7483df
Capture complete nextest version output in PowerShell
All checks were successful
Package CI / package-corpus (vue) (pull_request) Successful in 3s
Package CI / package-corpus (xaml) (pull_request) Successful in 3s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 15s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 17s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 31s
CI / CI lane wall-clock headroom (pull_request) Successful in 44s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 21s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 2s
CI / cargo doc (intra-doc links) (pull_request) Successful in 4m26s
CI / cargo deny (pull_request) Successful in 4m59s
CI / cargo clippy (pull_request) Successful in 5m19s
CI / cargo check (MSRV 1.99.1) (pull_request) Successful in 6m24s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 6m39s
CI / cargo check (windows-gnu) (pull_request) Successful in 6m46s
CI / OSS corpus (tier 1) (pull_request) Successful in 34m3s
CI / cargo test (pull_request) Successful in 37m17s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 51m26s
CI / cargo test (daemon transport) (pull_request) Successful in 7m46s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
Release Build / Generate Version (push) Successful in 13s
Release Build / Required CI green (push) Successful in 30s
Release Build / Build linux-aarch64 (push) Successful in 12m1s
Release Build / Build linux-x86_64-musl (push) Successful in 16m57s
Release Build / Build linux-x86_64 (push) Successful in 18m0s
Release Build / Build windows-x86_64 (push) Successful in 23m34s
Release Build / Assemble the release archives (push) Successful in 41s
Release Build / Windows archive smoke (msvc) (push) Successful in 49s
Release Build / Create Forgejo Release (push) Successful in 29s
Release Build / Seed the package channel (push) Successful in 12s
3842ab6d5e
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!508
No description provided.