[BUG] Native permission fixtures fail under a long temporary root #140

Closed
opened 2026-10-16 14:11:33 +02:00 by erikinkinen · 2 comments
Owner

Summary

Three native-permission runner fixtures fail when the selected temporary root is long enough to push their debugger socket past the Unix path limit. This stops the full Python suite before the fixtures reach the behavior they are meant to exercise.

Reproduction

Run the Integration Python suite at 0e93075a477efa06a39007c206ebf5bc8fd023be with a long absolute TMPDIR. The affected cases in native_permissions_vm_test.py use that temporary directory for both evidence and debugger sockets.

The success, changed-input and child-command failure cases each append an owned socket directory and gdb.sock below that root. A final encoded path of 108 bytes or more triggers the failure.

Expected and actual behavior

The fixtures should use a short private socket root and reach their success, input-identity and cleanup assertions. Instead, all three raise ValueError: selected Unix socket path is too long before starting their selected child fixture. The production path-length refusal is correct and must remain covered.

Environment and identity

  • Integration: 0e93075a477efa06a39007c206ebf5bc8fd023be.
  • Linux x86_64 host, Python 3.14, complete isolated module environment.
  • Original full run: 147 modules under a 600-second total limit.
  • No QEMU or genuine guest is involved in these mocked runner cases.

Evidence and prior checks

The original suite returns 1 after 581.81 seconds with cleanup confirmed. Its three errors all point to the socket-length guard in native_permissions_vm.run; the remaining modules complete. The existing explicit overlong-path test already checks refusal before child execution and removal of the owned temporary directory.

Tracking

Related: isolated Python runner.

  • Give the affected fixtures a short private socket root without changing evidence selection.
  • Cover execution with a long selected temporary root and preserve the explicit overlong-socket rejection case.
  • Confirm the corrected module and full Python suite complete.
## Summary Three native-permission runner fixtures fail when the selected temporary root is long enough to push their debugger socket past the Unix path limit. This stops the full Python suite before the fixtures reach the behavior they are meant to exercise. ## Reproduction Run the Integration Python suite at `0e93075a477efa06a39007c206ebf5bc8fd023be` with a long absolute `TMPDIR`. The affected cases in `native_permissions_vm_test.py` use that temporary directory for both evidence and debugger sockets. The success, changed-input and child-command failure cases each append an owned socket directory and `gdb.sock` below that root. A final encoded path of 108 bytes or more triggers the failure. ## Expected and actual behavior The fixtures should use a short private socket root and reach their success, input-identity and cleanup assertions. Instead, all three raise `ValueError: selected Unix socket path is too long` before starting their selected child fixture. The production path-length refusal is correct and must remain covered. ## Environment and identity - Integration: `0e93075a477efa06a39007c206ebf5bc8fd023be`. - Linux x86_64 host, Python 3.14, complete isolated module environment. - Original full run: 147 modules under a 600-second total limit. - No QEMU or genuine guest is involved in these mocked runner cases. ## Evidence and prior checks The original suite returns 1 after 581.81 seconds with cleanup confirmed. Its three errors all point to the socket-length guard in `native_permissions_vm.run`; the remaining modules complete. The existing explicit overlong-path test already checks refusal before child execution and removal of the owned temporary directory. ## Tracking Related: [isolated Python runner](https://git.erikinkinen.fi/erix/integration/issues/137). - [x] Give the affected fixtures a short private socket root without changing evidence selection. - [x] Cover execution with a long selected temporary root and preserve the explicit overlong-socket rejection case. - [x] Confirm the corrected module and full Python suite complete.
Author
Owner

9e9d708f gives the permission fixtures a short private socket root while leaving evidence under the selected temporary root. The new long-TMPDIR case performs a real Unix socket bind; the explicit overlong-socket rejection and failure cleanup cases remain covered.

All 15 module tests and seven source checks pass. The changed full 1,671-test sequence is still running; the original three-error run remains recorded.

`9e9d708f` gives the permission fixtures a short private socket root while leaving evidence under the selected temporary root. The new long-TMPDIR case performs a real Unix socket bind; the explicit overlong-socket rejection and failure cleanup cases remain covered. All 15 module tests and seven source checks pass. The changed full 1,671-test sequence is still running; the original three-error run remains recorded.
Author
Owner

The changed full suite passes at 9e9d708f: all 1,671 tests in 147 isolated modules, including the 15 native-permission cases. The run finishes within its original 600-second limit with cleanup confirmed.

All criteria here are complete. Current CI and the guest regressions remain tracked separately; the original three-error run is preserved.

The changed full suite passes at `9e9d708f`: all 1,671 tests in 147 isolated modules, including the 15 native-permission cases. The run finishes within its original 600-second limit with cleanup confirmed. All criteria here are complete. Current CI and the guest regressions remain tracked separately; the original three-error run is preserved.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:18 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/integration#140
No description provided.