-
Notifications
You must be signed in to change notification settings - Fork 70
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
RHOAIENG-7489: Code-Server: Prevent auto updating of the pre-installed extensions #739
RHOAIENG-7489: Code-Server: Prevent auto updating of the pre-installed extensions #739
Conversation
Skipping CI for Draft Pull Request. |
It does what I was proposing back in the day in a comment on and from the evidence in the description it seems to be working. For me it's good to be merged. /lgtm |
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.
/lgtm
It's good we are keeping the python 3.9 code in sync. Just be aware that this change won't land in 2024.1 unless also relevant 2024a branch is updated. In the tracker ticket it's not explicitly stated what all images versions we want to fix this to. I guess that it's 2024b only, but maybe we should consider to specify this explicitly for the future?
I take this as implementing things in main branch; since we have 3.9 and 3.11 vscode image there, then that's where the change should land; unless there are requirements to get this to some specific images release or rhoai release, then let's default to main and just do what's natural |
If there were requirements to fix a specific version, I would follow it up. Since there were no such requirements, I fixed both that are available on main branch. |
/retest |
/test ci/prow/codeserver-notebook-e2e-tests |
@atheo89: The specified target(s) for
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/test codeserver-notebook-e2e-tests |
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.
Thank you, Daniel, for opening this pull request!
I tested it using the generated image from the PR:
quay.io/opendatahub/workbench-images:codeserver-ubi9-python-3.11-pr-739
After comparing the old image with the one from this PR, I can confirm that the auto-update feature is now disabled by default. Users will need to manually enable it if desired.
Here’s a screenshot from the old image (Auto-update enabled by default):
And here’s the new image from this PR (Auto-update successfully disabled by default):
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: atheo89 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: atheo89 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Override the following tests, since the failings are not related to code-server notebook, but it fails to build the rocm /override ci/prow/codeserver-notebook-e2e-tests |
@atheo89: Overrode contexts on behalf of atheo89: ci/prow/codeserver-notebook-e2e-tests, ci/prow/images In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
0fc2e6b
into
opendatahub-io:main
This PR aims to disable the auto update from installed extensions in the Code Server notebook image.
Jira:
References:
Description
All extensions installed on Code Server will try to update automatically. To keep stability on the deployed notebook image, we aim to disable auto-update extensions, in a way that the user will update if it's really necessary.
Before this change, the extensions were marked for auto updates, as follows:
After the code change, now the user can select to auto update extensions on their own, without the risk of having them updated in a not ideal timing:
How Has This Been Tested?
This has been locally tested, which consisted on running the CodeServer image locally with the following commands (example of code-server on ubi9-python-3.9, but the same command was executed for python-3.11):
This way the image could easily be built and tested, without pushing any images to our quay repository yet.
Now you can run with Podman:
From there, you could open up in the browser, click on the
Extensions
tab on the left and check each extension.Merge criteria: