perf: reuse logging locks and cache source paths - #416
codeforester merged 33 commits into
Conversation
…ff-check-and-mypy-do-not-cover-the-compatibility-consum
…-compatibility-consum' into bug/387-20261003-bug-configure-logger-closes-consumer-owned-handlers-and-forc
…wned-handlers-and-forc' into enhancement/381-20261003-perf-lifecycle-logging-costs-107-us-record-about-20x-stdlib
…-compatibility-consum' into bug/387-20261003-bug-configure-logger-closes-consumer-owned-handlers-and-forc
…wned-handlers-and-forc' into enhancement/381-20261003-perf-lifecycle-logging-costs-107-us-record-about-20x-stdlib
…wned-handlers-and-forc' into enhancement/381-20261003-perf-lifecycle-logging-costs-107-us-record-about-20x-stdlib
# Conflicts: # docs/integrations.md
|
Additional finding (unchanged line outside this diff's hunks, so not postable as an inline comment):
|
…ff-check-and-mypy-do-not-cover-the-compatibility-consum
…d-mypy-do-not-cover-the-compatibility-consum' into bug/387-20261003-bug-configure-logger-closes-consumer-owned-handlers-and-forc # Conflicts: # docs/integrations.md
…ogger-closes-consumer-owned-handlers-and-forc' into enhancement/381-20261003-perf-lifecycle-logging-costs-107-us-record-about-20x-stdlib
…003-perf-lifecycle-logging-costs-107-us-record-about-20x-stdlib
|
Addressed the blocking sidecar-loss regression in the pushed head The handler now stats the sidecar before permission repair, treats a deleted/replaced sidecar as stale, reopens it, and preserves later records. The dead module-level Validation: the supported runtime gate passes (626 tests, 262 subtests), and the style gate passes. |
|
Follow-up: the first hosted Windows matrix exposed that the new deletion regression test itself cannot unlink an open sidecar on Windows. The test is now explicitly POSIX-only in |
…003-perf-lifecycle-logging-costs-107-us-record-about-20x-stdlib
|
Branch maintenance complete.
The PR remains open and unmerged. |
Run-bundle retention now has a native Windows removal path that pins directory ancestors, refuses reparse points and volume crossings, and preserves existing lease/metadata checks. POSIX keeps descriptor-relative deletion. Unsupported platforms skip the pass with one warning, and absent directory flags raise a handled error. Fixes #378. ## Branch maintenance Refs #426. Targets the branch for #416. Retarget and refresh after that parent is squash-merged; preserve the ordered stack. The branch was refreshed without rewriting history to include `main` at `a576cc279739eae5e4cfc33ffab2a7fb56de24de`. ## Current-head validation At `e82ce1fbfd7fd3675e8d703a027840d1a82d44bb`: uv lock freshness and baseline, runtime, strict typing, style, and contracts passed locally with all declared extras. Runtime result: 620 passed, 1 warning, 262 subtests passed in 8.74s. Hosted checks: 7/7 required checks passed; 0 checks pending; 0 unsuccessful checks at 2026-10-04T14:19:40.760978+00:00. See the PR Checks tab and #426 for subsequent results.
Persistent logging now reuses its private sidecar descriptor and caches human-log source paths per invocation. Repeated source paths avoid filesystem resolution, forked children reopen their lock descriptor, and sidecar failures use logging's error handler so commands can complete.
Fixes #381.
Branch maintenance
Refs #426. Targets the branch for #415. Retarget and refresh after that parent is squash-merged; preserve the ordered stack.
The branch was refreshed without rewriting history to include
mainata576cc279739eae5e4cfc33ffab2a7fb56de24de.Current-head validation
At
66ce2689a0b5859ad25927aaa9274c7a4ff5ab19: uv lock freshness and baseline, runtime, strict typing, style, and contracts passed locally with all declared extras. Runtime result: 616 passed, 1 warning, 262 subtests passed in 8.57s.Hosted checks: 7/7 required checks passed; 0 checks pending; 0 unsuccessful checks at 2026-10-04T14:19:40.760978+00:00. See the PR Checks tab and #426 for subsequent results.