-
Notifications
You must be signed in to change notification settings - Fork 141
fix(ci): pin code-server to v4.113.1 for Selenium tests #2752
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Extends ghcr.io/ansible/selenium-adt:main with pinned code-server version | ||
| # This is a workaround for https://github.com/coder/code-server/issues/7890 | ||
| # code-server v4.114.0 has a bug preventing extensions from loading properly. | ||
| # Pin to v4.113.1 until the upstream fix is available. | ||
| FROM ghcr.io/ansible/selenium-adt:main | ||
|
|
||
| USER root | ||
|
|
||
| # Reinstall code-server with pinned version to avoid extension loading bug | ||
| # in v4.114.0 (released April 4, 2026) | ||
| RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version 4.113.1 | ||
|
|
||
| # Reinstall extensions that may have been affected | ||
| RUN code-server --install-extension ms-python.vscode-python-envs \ | ||
| --install-extension ms-python.python \ | ||
| --install-extension redhat.vscode-yaml \ | ||
| --install-extension redhat.vscode-redhat-account | ||
|
|
||
| USER 1001 | ||
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 112
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 159
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 998
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 86
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 1449
🏁 Script executed:
grep -A 20 "selenium-adt" docker-compose.ymlRepository: ansible/vscode-ansible
Length of output: 787
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 149
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 2539
🏁 Script executed:
rg "selenium|user.*1001|1001.*home" -iRepository: ansible/vscode-ansible
Length of output: 4847
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 97
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 507
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 825
🏁 Script executed:
Repository: ansible/vscode-ansible
Length of output: 3674
Installing extensions as
rootplaces them in the wrong user's home directory.The extensions are installed at lines 14–17 while the container is in
USER rootcontext. Thecode-server --install-extensioncommand writes to the invoking user's$HOME— in this case,/root/.local/share/code-server/extensions. However, the container switches toUSER 1001at line 19, and the docker-compose.yml mounts code-server data directories under/home/selenium/.local/share/code-server/...(the home directory of user 1001). The runtime process will look for extensions under/home/selenium/.local/share/code-server/extensionsand will not find the ones installed under/root, silently reproducing the very extension-loading failure this PR aims to fix.Move the extension installation after switching to the runtime user:
🛠️ Suggested fix
🤖 Prompt for AI Agents