Repository navigation
ci: Put ci/ on PYTHONPATH for the Qt lane's unittest command - #2330
Merged
Merged
Conversation
Since #2311 no test puts ci/ on sys.path, so the Qt Frontend Linux lane's 'python -m unittest ci.test_...' fails with ModuleNotFoundError: platform_ifdef_ratchet on every frontend PR.
The real-Qt tests import their ci/ siblings (platform_ifdef_ratchet, test_settings_platform_facade) by name, which #2311 left to the caller. Fixes the Qt Frontend Linux lane on every frontend PR.
zackees
commented
Oct 25, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review: LGTM. Fixes the master Qt lane red (run 40154786188, ModuleNotFoundError: No module named 'platform_ifdef_ratchet') with a scoped PYTHONPATH=ci, no sys.path edits back. RED test extracts the script's real command, so it can't drift. Focused CI fix, RED+GREEN pushed together per coordination.md §4. Not queued yet: checks shows 2 jobs still running; next tick queues it once they finish green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Master is red on the Qt Frontend Linux lane. #2311 removed every
sys.pathedit.ci/linux_qt_frontend.shrunsuv run python -m unittest ci.test_shared_qt_platform…from the repo root, and those modules import their siblings by bare name (platform_ifdef_ratchet,test_settings_platform_facade). Every frontend PR now fails:Example: run 40154872819 on #2313.
Fix
ci/linux_qt_frontend.shsetsPYTHONPATH=cion that one command. The workflows already runci_lintthis way. Nosys.pathedit is added back.Tests
ci: Test that the Qt lane's unittest…):ci/test_qt_frontend_unittest_imports.pyextracts the script's own unittest command and runs it with an emptyOBS_QT_TEST_PREFIX, so the real-Qt cases skip. It fails on master with the sameModuleNotFoundError../lintpasses.This is a focused CI fix, so RED and GREEN are pushed together, as coordination.md §4 allows.