[BUG] VM control fixtures fail under a long temporary root #143

Closed
opened 2026-10-16 17:56:09 +02:00 by erikinkinen · 1 comment
Owner

Summary

Five Integration test modules put Unix sockets below the inherited temporary root. A long TMPDIR makes the socket paths exceed the host limit, so listener startup fails and later readiness checks report failures too.

Reproduction

From Integration, select an existing temporary directory with a 91-byte absolute path and run the Python suite. The selector fixture can be targeted with:

TMPDIR="$fixture_tmp" python3 -Werror -m unittest discover -s tests -p qmp_selector_race_test.py -v

The affected modules are fixture_startup_test, interactive_shell_transport_test, qmp_launch_handle_input_test, qmp_physical_input_test and qmp_selector_race_test.

Expected and actual behavior

Temporary evidence paths should not determine whether these local socket fixtures can start. The original full run completed all 147 modules and 1,671 tests, but these five modules failed. Their logs contain OSError: AF_UNIX path too long, followed in several cases by failed readiness assertions. The other 142 modules passed.

Environment and identity

Integration source tree 2819ec30adc0d6677f9f8293e8fe6991020e1723, published as 179801c0. Linux x86_64 host, Python 3.14, isolated module execution and a 91-byte TMPDIR. These are host fixture failures; no guest was started by the failed socket tests.

Evidence and prior checks

The original run exited 1 after 595.6 seconds, before its 600-second limit, with cleanup confirmed. Complete module logs and the first failure are retained. Each affected module reports a direct socket-path error; the readiness failures are subsequent symptoms. The native-permission fixture repaired in #140 passes in this run.

Tracking

  • Give all five modules short private socket directories while keeping evidence under the selected temporary root.
  • Cover real binding and cleanup under a long TMPDIR, preserving production path checks.
  • Pass the affected modules and full Python suite under the original limits.
## Summary Five Integration test modules put Unix sockets below the inherited temporary root. A long `TMPDIR` makes the socket paths exceed the host limit, so listener startup fails and later readiness checks report failures too. ## Reproduction From Integration, select an existing temporary directory with a 91-byte absolute path and run the Python suite. The selector fixture can be targeted with: ```sh TMPDIR="$fixture_tmp" python3 -Werror -m unittest discover -s tests -p qmp_selector_race_test.py -v ``` The affected modules are `fixture_startup_test`, `interactive_shell_transport_test`, `qmp_launch_handle_input_test`, `qmp_physical_input_test` and `qmp_selector_race_test`. ## Expected and actual behavior Temporary evidence paths should not determine whether these local socket fixtures can start. The original full run completed all 147 modules and 1,671 tests, but these five modules failed. Their logs contain `OSError: AF_UNIX path too long`, followed in several cases by failed readiness assertions. The other 142 modules passed. ## Environment and identity Integration source tree `2819ec30adc0d6677f9f8293e8fe6991020e1723`, published as [179801c0](https://git.erikinkinen.fi/erix/integration/commit/179801c0e927c3fbf6ee386df2bd87348d7b58c8). Linux x86_64 host, Python 3.14, isolated module execution and a 91-byte `TMPDIR`. These are host fixture failures; no guest was started by the failed socket tests. ## Evidence and prior checks The original run exited 1 after 595.6 seconds, before its 600-second limit, with cleanup confirmed. Complete module logs and the first failure are retained. Each affected module reports a direct socket-path error; the readiness failures are subsequent symptoms. The native-permission fixture repaired in [#140](https://git.erikinkinen.fi/erix/integration/issues/140) passes in this run. ## Tracking - [x] Give all five modules short private socket directories while keeping evidence under the selected temporary root. - [x] Cover real binding and cleanup under a long `TMPDIR`, preserving production path checks. - [x] Pass the affected modules and full Python suite under the original limits.
Author
Owner

Fixed in b950621d. The five affected modules now use short private socket directories while their evidence stays under the selected temporary root. The shared owner removes its directory on success or failure and preserves the first error if cleanup also fails.

Real binding and cleanup checks cover a long TMPDIR. All 89 focused checks and all 1,674 tests across 147 modules pass without warnings under the original limits.

Fixed in [b950621d](https://git.erikinkinen.fi/erix/integration/commit/b950621d428ca39ded2443678738b3a6d7462c27). The five affected modules now use short private socket directories while their evidence stays under the selected temporary root. The shared owner removes its directory on success or failure and preserves the first error if cleanup also fails. Real binding and cleanup checks cover a long TMPDIR. All 89 focused checks and all 1,674 tests across 147 modules pass without warnings under the original limits.
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#143
No description provided.