Commit 1fcfb07
ci: make Windows green — skip POSIX-only paths and use msvcrt locks
- tests/test_shm.py: skip the whole module on win32. Shared-memory
transport is POSIX-only (relies on mmap semantics that don't carry
over to Windows page handling); the user does not need shm there.
- tests/test_benchmarks_java.py: replace `socket.AF_UNIX` with a
runtime `getattr` so mypy on Windows stops choking. The benchmark
itself never runs without an explicitly built worker, so the
RuntimeError on Windows is acceptable.
- vgi_rpc/conformance/_types.py: factor `_probe_file_lock` so the
cross-process cancel-probe counter file uses `fcntl.flock` on
POSIX and `msvcrt.locking` on Windows. Same advisory semantics on
both.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 37d7555 commit 1fcfb07
3 files changed
Lines changed: 60 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | | - | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | | - | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
414 | 452 | | |
415 | 453 | | |
416 | 454 | | |
| |||
440 | 478 | | |
441 | 479 | | |
442 | 480 | | |
443 | | - | |
444 | 481 | | |
445 | 482 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
459 | 492 | | |
460 | 493 | | |
461 | 494 | | |
462 | 495 | | |
463 | 496 | | |
464 | 497 | | |
465 | 498 | | |
466 | | - | |
467 | 499 | | |
468 | 500 | | |
469 | 501 | | |
470 | 502 | | |
471 | 503 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
| 504 | + | |
| 505 | + | |
478 | 506 | | |
479 | 507 | | |
480 | 508 | | |
| |||
488 | 516 | | |
489 | 517 | | |
490 | 518 | | |
491 | | - | |
492 | 519 | | |
493 | 520 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
501 | 524 | | |
502 | 525 | | |
503 | 526 | | |
| |||
0 commit comments