Skip to content

tests: POSIX-only calls reached on Windows (fcntl, backslash classpath, killpg) + guard check (#4934) - #4937

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4934-20261011T2138Z
Oct 12, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4934-20261011T2138Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4934 (Full suite red on Windows).

Class: POSIX-only calls reached on Windows.

  • test_timeouts_4904::test_db2_pool_deadline_raises_by_name: fcntl = pytest.importorskip("fcntl") (Db2 pool locks are flock, Linux-only).
  • test_runs_after_the_first_maven_run...: not mvn vs mvn.cmd. equivalence_java._launcher matched the surefire classpath with a /-only regex, so on Windows backslash entries never matched, the direct-JVM path returned None and the second run went back through Maven. The entries are now normalised first. Regression test uses a backslash classpath (runs on Linux).
  • mutation.prove: os.killpg falls back to proc.kill() where there are no process groups.
  • mainframe_corpus.scan: import fcntl moved to a guarded module-level import, as in equivalence_cache.
  • New tests/tools/test_posix_only_imports_4934.py: AST scan of tests/ and gitgalaxy/ failing on any fcntl/termios/pwd/grp/resource/posix import that is not in a try/except ImportError, not in a file that importorskips it, and not in an allowlist with a reason.

Class table disposition

Member Status
equivalence_db2.py (3 imports) Linux-only by design (Db2 container); allowlisted; its tests skip
box/ci_shepherd.py, test_ci_shepherd.py Linux-only box tool; test importorskips
equivalence_cache.py, test_equivalence_speed.py, cics_census.py already guarded
mainframe_corpus.py guarded here
os.killpg in mutation.py guarded here
SIGALRM already guarded (hasattr / is_posix)
os.getuid: test_equivalence_faults.py:159 not reached on Windows: gated on EQUIVALENCE_E2E=1 + docker; left as is

Verification: pr_gates.py --fast 5/5; the three touched test files pass on Linux. Windows legs: Full Suite Gate dispatched on this branch (result in a comment).

Cross-repo: none.

🤖 Generated with Claude Code

…classpath, killpg; add an unguarded-import check (#4934)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 12, 2026 01:32
@squid-protocol
squid-protocol merged commit f38ba68 into main Oct 12, 2026
67 checks passed
@squid-protocol
squid-protocol deleted the churn/4934-20261011T2138Z branch October 12, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: full suite red on Windows -- fcntl import and mvn executable name (POSIX-only calls reached on Windows)

1 participant