Repository navigation
Keep build progress and logs across launcher windows - #724
Merged
Merged
Conversation
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.
Fix or feature
What and why
Fixes #405.
Each
WindowGroupwindow created a separateLauncherStoresandBuildStoreinsideRootView. Another or recreated window therefore showed an idle Builds page while an existing child build kept running. Losing the original root also lost its weak output/exit callback receiver.Keep the existing stores, library, controls and console driver in an app-owned
LauncherSession, and pass that session into every root view. Windows now share the active build, progress, log and Stop control for the app's lifetime.Checked
swift build --package-path frontendandswift test --package-path frontend, 1,070 tests with 27 skipped and zero failures (134 model, 188 core, 748 app tests). The final focused process regression also passes after adding explicit 25% to 50% progress assertions.python3 -m unittest discover -s frontend-qt/testswith a standard tool search path, 292 tests passed with 26 skipped. The initial run exposed four unrelated Windows discovery-test failures caused by the host's additional~/.swiftly/bin/ld64.lld. Excluding that directory from PATH passes the unchanged suite.BuildSessionTests.testRecreatedWindowKeepsTheRunningBuildItsLogAndStopControlruns a real synthetic Python child, constructs a replacementRootViewusing the app session, checks retained stage/log and advancing progress, prevents a duplicate build, and stops the same PID from that replacement view. The initial test compilation failed against the old code, which had no injectable shared session.Screenshots
None, no visible change.
Scope
dm/,scripts/,docs/,ref/) is added to the repository.