Handle upstream CodeSandbox embed blocking in website deployment test - #9639
Merged
Conversation
Contributor
Apollo Federation Subgraph Compatibility Results
Learn more: |
Contributor
💻 Website PreviewThe latest changes are available as preview in: https://pr-9639.graphql-mesh-ai3.pages.dev |
Co-authored-by: ardatan <20847995+ardatan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job deployment
Handle upstream CodeSandbox embed blocking in website deployment test
Aug 19, 2026
Co-authored-by: ardatan <20847995+ardatan@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the website’s prod-only Playwright E2E coverage for the ExamplesSandbox embed so the deployment GitHub Actions job doesn’t fail when CodeSandbox blocks the embed upstream (e.g., 403 / X-Frame-Options) rather than rendering content or showing known outage banners.
Changes:
- Add a
page.waitForResponsewatcher to detect CodeSandbox 403 responses for the selected example. - Add a
page.waitForEvent('console')watcher to detect browser errors mentioningX-Frame-Optionsfor CodeSandbox. - Treat the detected “upstream blocked” condition like other transient external outage conditions by skipping the test.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+45
to
+49
| const upstreamBlockPromise = page | ||
| .waitForResponse( | ||
| response => { | ||
| try { | ||
| const hostname = new URL(response.url()).hostname; |
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.
The
deploymentGitHub Actions job was failing in the website Playwright check because the embedded CodeSandbox GitHub sandbox no longer consistently loads on prod. In the failing case, CodeSandbox returns an upstream embed block (403/X-Frame-Options) rather than either rendering the example or showing a known outage banner.Root cause
examples-sandboxE2E test assumed the selected StackExchange sandbox would either:Change
403responses from the selectedcodesandbox.iosandbox URLX-Frame-Optionsfor CodeSandboxScope