mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3521] [Other] tests: stop the wizard-discovery test from reading the checkout's own run configs #4667
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#4667
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/3521
Author: @dsenchankau
Created: 10/20/2026
Status: 🔄 Open
Base:
main← Head:discovery-test-isolation📝 Commits (4)
6bdb67dtests: stop the wizard-discovery test from reading the checkout's own run configs791ed00Merge branch 'main' into discovery-test-isolation294a33aMerge branch 'main' into discovery-test-isolatione483847Merge branch 'main' into discovery-test-isolation📊 Changes
1 file changed (+9 additions, -0 deletions)
View changed files
📝
tests/terminal/test_discovery.py(+9 -0)📄 Description
Problem and result
tests.terminal.test_discovery.GuiLayout.test_list_and_the_wizard_agree_on_the_installfails on a checkoutthat has been used for real work, one that holds its own
strata-*.jsonrun configs at the repositoryroot. Nothing is wrong with the code under test: the test fakes a Terminal install by pointing
models.ROOTat a temporary folder, but the Catalog finds its install folder from the location of the package files, not
from
models.ROOT, so the real checkout, run configs and all, is discovered as a "here" install besidethe fake ones. The list and the wizard then disagree and the test fails, or passes, depending on files that
have nothing to do with it. Observed 2026-10-20 on
upstream/main9de04cd4with four such run configs inthe checkout; the failure disappears with this change and the test passes with or without them.
Related discussion: none (test-only fix).
Approach
Two parts, both inside the test:
strata_cli.launch.catalog.installer_folderto the fake Terminal folder, the same lookup the testalready redirects through
models.ROOT;setup.pyandtools/strata_mcp.pyinto that fake folder first, because discovery readsthe shipped model tables from them. The test then still exercises the real tables, only from a folder it
controls.
Validation
9de04cd4):python -m unittest tests.terminal.test_discovery: 21 tests, 2 failures (the two pre-existing onesbelow). The same command on the same checkout, same four run configs at the root, on plain
9de04cd4: 3 failures, the two below plustest_list_and_the_wizard_agree_on_the_install.upstream/main, Linux, unrelated to this change):test_a_remembered_older_install_and_the_app_install_are_both_listedandtest_an_own_setting_beats_the_apps_folder: they expect Windows app-data folders where Linux has XDGones.
Limits
Only the one test's isolation is fixed; the two Windows-path failures are left for whoever can run them on
Windows.
test_setup_golden-style suite membership is unaffected.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.