You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The local build succeeds, but npm run test:integration fails with
> code-server@0.0.0 test:integration
> ./ci/dev/test-integration.sh
Set CODE_SERVER_PATH to test another build of code-server
Running tests with code-server binary: 'release-standalone/bin/code-server'
PASS test/integration/help.test.ts
FAIL test/integration/installExtension.test.ts
● --install-extension › should use EXTENSIONS_GALLERY when set
expect(received).rejects.toThrow(expected)
Expected substring: "No extension gallery service configured"
Received message: "Command failed: release-standalone/bin/code-server --extensions-dir /tmp/code-server/tests/installExtension/installExtension-TcooxM --install-extension author.extension
[2025-09-11T16:04:34.845Z] [
ReferenceError: __dirname is not defined
at Module.EV (file:///home/benz0li/projects/coder/code-server/release-standalone/lib/vscode/out/server-main.js:231:141)
at /home/benz0li/projects/coder/code-server/release-standalone/out/node/main.js:84:40
at Generator.next (<anonymous>)
at fulfilled (/home/benz0li/projects/coder/code-server/release-standalone/out/node/main.js:38:58) {
[stack]: [Getter/Setter],
[message]: '__dirname is not defined'
},
[length]: 1
]error Got error from Code
"
at Module.EV (file:/home/benz0li/projects/coder/code-server/release-standalone/lib/vscode/out/server-main.js:231:141)
at /home/benz0li/projects/coder/code-server/release-standalone/out/node/main.js:84:40
at fulfilled (release-standalone/out/node/main.js:38:58) {
[stack]: [Getter/Setter],
[message]: '__dirname is not defined'
},
[length]: 1
]error Got error from Code
18 | EXTENSIONS_GALLERY: "{}",
19 | }),
> 20 | ).rejects.toThrow("No extension gallery service configured")
| ^
21 | })
22 | })
23 |
at Object.toThrow (test/node_modules/expect/build/index.js:285:22)
at test/integration/installExtension.test.ts:20:15
at test/integration/installExtension.test.ts:8:71
at Object.<anonymous>.__awaiter (test/integration/installExtension.test.ts:4:12)
at Object.<anonymous> (test/integration/installExtension.test.ts:14:59)
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 failed, 1 passed, 2 total
Snapshots: 0 total
Time: 2.876 s, estimated 4 s
Ran all test suites.
@code-asher IMHO this fails due to some change in lib/vscode/src/server-main.ts regarding startup.
The SHA-256 in lib/vscode/src/vs/workbench/contrib/webview/browser/pre/index.html changed, too.
ℹ️ I was unable to update, because I could not startup code-server.
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
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.
Fixes #7480