mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3782] [CLOSED] [TUI] make Terminal regression fixtures portable #4778
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4778
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3782
Author: @BColsey
Created: 10/23/2026
Status: ❌ Closed
Base:
main← Head:fix/terminal-test-portability📝 Commits (2)
37b729c[TUI] make Terminal test fixtures portable across platforms2bd275e[TUI] finish portable shared-folder and privacy fixtures📊 Changes
5 files changed (+22 additions, -6 deletions)
View changed files
📝
tests/terminal/test_discovery.py(+5 -3)📝
tests/terminal/test_gfx_selection.py(+6 -1)📝
tests/terminal/test_launch_tui.py(+1 -1)📝
tests/terminal/test_private_files.py(+9 -0)📝
tests/terminal/test_shared_models_folder.py(+1 -1)📄 Description
Problem and result
Several Terminal regression fixtures fail on Linux even though the behavior under test works: they write settings to
%APPDATA%, mutate the process-wideos.namewhile exercising Windows probes, assume an inherited Windows ACL on POSIX, or depend on Textual's exact line wrapping. The fixtures now model the platform being exercised and keep the existing behavioral assertions.Related discussion
Found while validating #2769 and reproduced on unmodified main
011c9e600a93bbc9fd451c563501b5831c32bbca. This is a separate test-only change; no Muse or production code is included. The search also found #3406, which addresses Windows SDDL aliases in different assertions; those Windows assertions remain unchanged here.Approach
Discovery and shared-folder fixtures use
%APPDATA%/Strataon Windows and$XDG_CONFIG_HOME/strataon POSIX. The Windows GPU probe test replaces only the modules' OS stubs and filesystem boundary, so hostpathlibkeeps its real platform. The private-file fixture explicitly checks that POSIX0600is private/unshared and0644is rejected by both checks. The Cloudflare help assertion normalizes rendered whitespace with the existing helper.Validation
Submitted revision:
2bd275e9838f005462f62293766ac6f933a5e60a, based on main011c9e60.Linux x86-64, Intel Xeon E5-2690 v2, Python 3.11.2, pytest 9.1.1, pytest-asyncio 1.4.0, Textual 8.2.8 and Rich 15.0.0. Runs used an isolated container with dependencies in normal site-packages,
--init, read-only source and no network.Passed:
python3 -m pytest -q -p no:cacheprovider tests/terminal/test_discovery.py tests/terminal/test_shared_models_folder.py tests/terminal/test_gfx_selection.py tests/terminal/test_private_files.py: 85 passed, 9 existing Windows-only skips.python3 -m unittest tests.terminal.test_private_filespasses under bothumask 022andumask 077: 13 tests, 9 existing Windows-only skips in each run.git diff --check origin/main...HEAD.The complete Terminal suite also passed on combined validation revision
dcb54ca39104f77695c3820b8597b7a5af4bfd95: Musee0002b04plus this companion and the independent setup-fixture fix #3778. This is combined-branch evidence, not a claim that the companion fixes have merged into main or #2769.Observed: 1,312 passed, 42 skipped, 226 subtests passed, exit 0, in 632.64 seconds. Six warnings were emitted: three invalid-escape deprecations and three TUI worker/closed-loop warnings. The same three worker/coroutine warnings reproduce on unmodified main in the ordered TUI test pair (two tests pass there and here). They are not claimed fixed by this portability change.
The changed TUI reproduction:
Failed: baseline fixture failures above; none remain in the listed fixed-branch checks.
Not run: actual Windows ACL execution or macOS execution.
Limits
No production behavior, defaults or dependencies change. Windows-specific ACL checks retain their existing assertions and skips. These fixes make the existing regression suite portable; they do not validate Windows hardware or ACL behavior from Linux.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.