Repository navigation
fix(review): accept the desktop viewer link in launch responses - #5240
Merged
Merged
Conversation
The review page re-validates every Services link a launch returns. The desktop viewer (desktop-<id>) added in #5233 was missing from the allowed prefixes, so a working ACME sandbox was rejected and shown as a failed launch. Signed-off-by: Benjamin Shafii <[email protected]>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
This branch was previously deployed
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.
What is this about?
The review page's sandbox launcher now accepts the desktop viewer link that ACME sandboxes return.
What problem does it solve?
Choosing "OpenWork desktop" (or ACME web) on any commit whose snapshot includes the desktop always showed "The sandbox could not launch", even though the sandbox had launched and was running.
What was the situation before?
The launch succeeded server-side, but the page's link check only allowed
ow|den|api|engine|gatewayhosts. Thedesktop-<id>link added in #5233 failed that check, so the page discarded the whole session and showed the generic error.Evidence
No E2E; unit-tested.
packages/freestyle/test/preview.test.tsadds a test that runs a real ACME launch response through the page's parser. It fails without the fix and passes with it (17/17).