Skip to content

fix(dev-harness): keep qualification cleanup portable on Windows - #10843

Merged
kodjima33 merged 1 commit into
BasedHardware:mainfrom
tianmind-studio:codex/windows-qualification-cleanup
Jul 29, 2026
Merged

kodjima33 merged 1 commit into
BasedHardware:mainfrom
tianmind-studio:codex/windows-qualification-cleanup

Conversation

@tianmind-studio

@tianmind-studio tianmind-studio commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What changed and why

Keep qualification cleanup portable when the dev-harness suite runs on Windows. Select Docker's force-stop command from the signal enum name instead of reading the unavailable Windows signal.SIGKILL attribute, and update the Windows fault-state regression to match the current non-gating release contract: retire the admission lease, preserve unproven state, and write the completion marker.

Product invariants affected

none

How it was verified

  • Reproduced the Windows suite failures on origin/main: 2 failed, 70 passed, 5 skipped.
  • Ran the two focused qualification cleanup regressions: 2 passed.
  • Ran the full dev-harness suite on Windows: 72 passed, 5 skipped.
  • Ran Ruff, Black, py_compile, and git diff --check on the changed files.

Tests

test_orphaned_typesense_container_is_stopped_only_after_exact_binding covers the missing-SIGKILL failure through the normal SIGTERM cleanup path. test_windows_release_retires_lease_pointer_while_retaining_fault_state now verifies the post-#10779 release contract on Windows without weakening the state-retention safety assertion.

Failure class (fixes)

Failure-Class: none

Review in cubic

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the focused Windows portability fix. I reviewed the changed dev-harness qualification cleanup path and the updated Windows regression.

This looks directionally good to me: comparing sig.name avoids touching signal.SIGKILL on Windows, and the test update matches the current release behavior of retiring the active lease pointer while preserving fault-state evidence and writing the completion marker. I also checked the Linux side locally with python -m pytest scripts/dev-harness/tests/test_qualification_lease.py -q (15 passed, 2 skipped) and python -m compileall on the changed files.

I’m leaving this as a maintainer-review signal rather than a formal approval because it touches dev-harness cleanup/runner workflow behavior and the Windows-specific assertion cannot be exercised in this Linux review environment. A human maintainer should do the final merge judgment, ideally with the contributor’s reported Windows suite result or another Windows CI run.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior needs-maintainer-review Needs a human maintainer to sign off before merge labels Jul 29, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows portability defect: reading signal.SIGKILL crashes on Windows. Selecting Docker's force-stop by enum name is the right minimal fix, and the fault-state regression is realigned to the post-#10779 contract without weakening the state-retention assertion. Green.

@kodjima33
kodjima33 merged commit cd94623 into BasedHardware:main Jul 29, 2026
37 of 38 checks passed
Git-on-my-level added a commit that referenced this pull request Jul 30, 2026
## What changed and why

Make the repository preflight executable from ordinary Windows
PowerShell, including checkouts whose absolute path contains spaces and
non-ASCII characters.

- Resolve Bash from the active Git for Windows installation instead of
invoking the System32 WSL launcher.
- Make GNU Make, hooks, release guards, readiness checks, and
dev-harness entrypoints share the same Bash/Python resolver.
- Reuse the repository Windows virtualenv (`Scripts/python.exe`) while
preserving interpreter-specific `PYTHONPATH` separators.
- Normalize manifest `bash` and `python3` commands at the runner
boundary, and decode Git/check output as UTF-8 instead of the Windows
ANSI code page.
- Preserve Unicode Git paths and checkout roots through preflight
selection, child environments, and single-flight fingerprints.
- Make Windows cancellation/liveness handling read-only and race-safe
with isolated process groups, `CTRL_BREAK_EVENT`, and Win32 wait state.
- Run readiness behavior fixtures through Git Bash and the selected
native Python.
- Keep Ruby/iOS and POSIX permission contracts on Linux/macOS, where
their semantics are faithful, while retaining Linux CI coverage.
- Keep security-sensitive token mode checks fail-closed on Windows; only
the unrelated candidate-provenance fixture mocks that boundary.
- Remove fixed test-output paths and nested Make banner leakage that
made checks order- or host-dependent.

## Product invariants affected

none

## How it was verified

- After syncing `origin/main` and dropping overlap already merged
through #10838, #10842, and #10843, the PR diff is down from 40 files to
34 files.
- The current PR head `ff80da22a` passed the official `make preflight`:
**70 selected checks in 273.24s**.
- A larger pending Windows integration stack passed `make preflight`
from `J:\codex-omi-work\路径 空格\omi-main-20260729`: **79 selected checks
in 323.17s**.
- Dev-harness unit suite: 69 passed, 13 expected platform skips.
- Preflight contract suite: 36 passed, 2 expected platform skips.
- Manifest runner suite: 39 passed, 1 expected platform skip.
- Readiness behavior: 5 passed.
- Failure-class guard ratchet: 14 passed plus a real 90-day history
scan.
- Desktop backend candidate probe: 14 passed.
- Desktop beta retry contract: 30 passed.
- Setup contract passed baseline provisioning, dependency-sync rerun,
and linked-worktree fallback.
- Ruff, Bash syntax, and diff hygiene passed for touched modules.

The desktop changes are internal-only. Local verification used
`PRE_PUSH_SKIP_DESKTOP_CHANGELOG=1`, the documented equivalent of the
required `no-changelog-needed` label; please add that label rather than
publishing a user-facing changelog entry.

## Tests

Coverage includes Git for Windows discovery, MSYS/native path
conversion, Windows virtualenv resolution, Unicode checkout paths, UTF-8
subprocess output, joined/rejected single-flight behavior, cancellation
forwarding, readiness orchestration, platform-scoped contracts, release
guards, firmware guard execution, SwiftLint shell contracts, and
security-sensitive candidate fixtures.

## Failure class (fixes)

Failure-Class: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-maintainer-review Needs a human maintainer to sign off before merge workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants