Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updgrade to VS Code 1.55.x #3937

Merged
merged 1 commit into from
Apr 19, 2021
Merged

Conversation

akosyakov
Copy link
Member

@akosyakov akosyakov commented Apr 14, 2021

What it does

Changes in Gitpod Code: gitpod-io/openvscode-server@cbe1690

How to test

  • websockets and workers are properly proxied
    • diff editor should be operatable
    • trigger reconnection with window.WebSocket.disconnectWorkspace(), check that old websockets are closed and new opened of the same amount, it can take around 30s
  • that user data are sync across workspaces as well as on workspace restart, especially for extensions
    • test that extensions from .gitpod.yml are installed without sync
    • ignore CORS issues in logs, they are not matter
  • terminals are preserved and resized properly between window reloads
  • workspace specific commands should work, i.e. F1 → type Gitpod prefix
  • that a PR view is preloaded on the PR url, make sure that you grant process scopes for GitHub installation, namely: user: read and repo
  • test gp open and preview

@akosyakov akosyakov force-pushed the akosyakov/updgrade-to-vs-code-x-3694 branch from e15451a to 6002bec Compare April 14, 2021 13:22
@akosyakov
Copy link
Member Author

Webview are broken:

resourceLoader.ts:169 Error: Unable to read file 'vscode-remote://amaranth-crane-ek2ss7ec.ws-dev.akosyakov-updgrade-to-vs-code-x-3694.staging.gitpod-dev.com:443/vscode-resource?{"requestResourcePath":"/ide/extensions/simple-browser/media/codicon.css"}' (Error: Unable to resolve non-existing file 'vscode-remote://amaranth-crane-ek2ss7ec.ws-dev.akosyakov-updgrade-to-vs-code-x-3694.staging.gitpod-dev.com:443/vscode-resource?{"requestResourcePath":"/ide/extensions/simple-browser/media/codicon.css"}')
    at FileService.doReadFileStream (fileService.ts:525)
    at async readFileStream (resourceLoader.ts:75)
    at async loadLocalResource (resourceLoader.ts:153)
    at async IFrameWebview.loadResource (webviewElement.ts:206)

@akosyakov akosyakov force-pushed the akosyakov/updgrade-to-vs-code-x-3694 branch from 6002bec to 1df95f0 Compare April 15, 2021 09:36
@akosyakov akosyakov marked this pull request as ready for review April 15, 2021 11:01
@akosyakov
Copy link
Member Author

It should be good now.

@csweichel
Copy link
Contributor

csweichel commented Apr 16, 2021

/werft run

👍 started the job as gitpod-build-akosyakov-updgrade-to-vs-code-x-3694.7

@csweichel
Copy link
Contributor

csweichel commented Apr 16, 2021

  • websockets and workers are properly proxied
    • ✅ diff editor should be operatable
    • ⚠️ trigger reconnection with window.WebSocket.disconnectWorkspace(), check that old websockets are closed and new opened of the same amount ; running window.WebSocket.disconnectWorkspace() had no discerneble effect
  • that user data are sync across workspaces as well as on workspace restart, especially for extensions
    • ⚠️ test that extensions from .gitpod.yml are installed without sync: could not test due to open-vsx issues
  • ✅ terminals are preserved and resized properly between window reloads
  • ✅ workspace specific commands should work, i.e. F1 → type Gitpod prefix
  • ❌ that a PR view is preloaded on the PR url: I tried to open updgrade to VS Code 1.55.x #3937 as context URL and no PR view was shown
  • ✅ test gp open and preview

@akosyakov
Copy link
Member Author

akosyakov commented Apr 16, 2021

trigger reconnection with window.WebSocket.disconnectWorkspace(), check that old websockets are closed and new opened of the same amount ; running window.WebSocket.disconnectWorkspace() had no discerneble effect

It can take a while, like 30 seconds before disconnect is detected, see below triggered at 23:12, reconnected at 23:32
Screenshot 2021-04-16 at 09 23 36

test that extensions from .gitpod.yml are installed without sync: could not test due to open-vsx issues

If it is about CORS errors in devtools, you can ignore them. Most important that search and install from user perspective should work.

that a PR view is preloaded on the PR url: I tried to open #3937 as context URL and no PR view was shown

Please make sure that you granted proper permissions, namely: user: read and repo, otherwise you should see:
Screenshot 2021-04-16 at 09 26 01

@akosyakov akosyakov force-pushed the akosyakov/updgrade-to-vs-code-x-3694 branch from 1df95f0 to 515cf46 Compare April 16, 2021 07:48
@akosyakov
Copy link
Member Author

akosyakov commented Apr 16, 2021

@csweichel I pushed a fix for preloading the PR view. Good catch!

@akosyakov
Copy link
Member Author

akosyakov commented Apr 19, 2021

/werft run

👍 started the job as gitpod-build-akosyakov-updgrade-to-vs-code-x-3694.9

Copy link
Contributor

@csweichel csweichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works after signing in

@akosyakov akosyakov merged commit 5431d57 into main Apr 19, 2021
@akosyakov akosyakov deleted the akosyakov/updgrade-to-vs-code-x-3694 branch April 19, 2021 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

updgrade to VS Code 1.55.x [vscode] terminals resizing issues on reload
2 participants