Skip to content

Qualify isolated Windows temporary APIs without enabling cleanup - #13

Merged
zhenkun26 merged 4 commits into
mainfrom
test/windows-temporary-qualification
Oct 31, 2026
Merged

zhenkun26 merged 4 commits into
mainfrom
test/windows-temporary-qualification

Conversation

@zhenkun26

@zhenkun26 zhenkun26 commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Scope

Add an explicitly authorized, fixture-only Windows API observation probe in ordinary and optimized modes on the existing Windows Server 2025 x64 / CPython 3.13 runner. Internal 55-second worker / 60-second supervisor bounds and two-minute step bounds remain. Existing matrix, permissions, checks and job limits are unchanged.

The probe accepts no caller-selected path and never recursively cleans residues. Uncertain fixtures are retained. Product Windows managed cleanup remains unsupported; API success does not establish directory-entry or power-loss persistence or satisfy Session.persist().

Failure evidence and repair

Runs 41153921446 and 41157059455 completed the maintained checks and applicable mutations before both native modes failed at Win32 rename with error 87. Correcting the allocation from 50 to 54 bytes did not resolve the runtime failure; the exact rejected Win32 parameter remains unidentified.

Commit bda0b0e changes only the experiment's rename invocation to NtSetInformationFile (native FileRenameInformation=10). It preserves the source and pinned directory handles, full buffer and no-replacement semantics, makes one attempt, and requires both return status zero and a written successful IOSB. Pending, error or missing completion stops execution. No path reopening or failed-call fallback is added. The completed-report parser requires this evidence; all 44 observation labels remain mandatory.

Verified results

CI 41162317247, attempt 1 passed all three jobs for that head, testing candidate 484558f against base 7e21cf3.

  • Each job completed 60 maintained checks. Ubuntu Python 3.13 detected all 184 applicable fixed mutations; Windows detected all 160, with passing controls. The existing Python 3.9 job does not select the mutation stage.
  • Both real Windows experiment steps succeeded. Each emitted a complete 44-observation report. Native rename returned STATUS_SUCCESS with a written successful IOSB; the parser also verified the required access/sharing refusal and absence observations.
  • Windows job duration was 39 minutes 14 seconds within its unchanged 50-minute bound.
  • Locally, the added regressions produced seven assertion failures against the preceding implementation. All 24 pure tests passed normally and optimized; five targeted mutations were detected with passing controls. The 60 maintained checks, independent API/security code review, distribution and bounded privacy checks passed. Mock/protocol results are separate from native observations.

The successful direct native path does not prove universal Win32 relative-root incompatibility. Both real reports retain native_qualified=false, product_support=NOT_ENABLED and durability=UNKNOWN. This is experiment evidence, not production cleanup enablement or power-loss qualification. No deployment, credentials or merge is included.

@zhenkun26
zhenkun26 marked this pull request as ready for review October 31, 2026 03:54
@zhenkun26
zhenkun26 merged commit 0355bf4 into main Oct 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant