-
Notifications
You must be signed in to change notification settings - Fork 746
feat(sagemaker): Merge sagemaker to master #7681
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
Merged
Merged
Conversation
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
…ws#2144) ## Problem ## Solution --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: aws-toolkit-automation <[email protected]> Co-authored-by: Roger Zhang <[email protected]> Co-authored-by: Reed Hamilton <[email protected]> Co-authored-by: Jacob Chung <[email protected]>
## Problem - DeepLink remote connections should be able to reconnect automatically when the connection drops. ## Solution - Reintroduced and updated logic to handle DeepLink reconnection by redirecting the user to the Studio UI to refetch the session token. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem
When persisting selected domains/users that the customer manually
filtered, we did not take into account the region that the customer was
operating in. Thus, the filtering mechanism was incorrectly being
applied to all regions.
Example:
```
[
[
'arn:aws:iam:user/user1',
['domain1__pdx-1', 'domain1__pdx-2']
],
]
```
## Solution
When persisting the selected domains/users in global state, we insert
another level to track region. Example:
```
[
[
'us-west-2',
[
[
'arn:aws:iam:user/user1',
['domain1__pdx-1', 'domain1__pdx-2']
]
]
],
[
'us-east-1',
[
[
'arn:aws:iam:user/user1',
['domain1__iad-1', 'domain1__iad-2']
]
]
]
]
```
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
---------
Co-authored-by: Newton Der <[email protected]>
…zed space name (aws#2156) ## Problem 1. Code Editor and JupyterLab spaces support an auto-shutdown feature that stops the space after a period of user inactivity. Currently, this feature does not account for activity when a user connects to their space through VS Code. We need to extend support for auto-shutdown in this case. 2. User is unable to connect to a SageMaker Space that contains capital letters in its name. This is because SSH automatically canonicalizes the hostname when passing it to the ProxyCommand, which includes converting it to lowercase and performing DNS lookups. 3. There’s a typo in refreshURL where an extra / is being added. ## Solution 1. Track user activity in VS Code using the `UserActivity` class and by monitoring terminal input and output. Write the latest activity timestamp to the space's local `/tmp` file so the backend auto-shutdown system can detect recent user activity. 2. Use the %n placeholder instead of %h in the ProxyCommand. Unlike %h, which provides the resolved and lowercased hostname, %n retains the original, user-provided value including capital letters. 3. There’s a typo in refreshURL where an extra / is being added. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
…emory (aws#2157) ## Problem When the user has not started the space before (instanceType not defined), the extension would fall back to using `ml.t3.medium`, which has insufficient memory. Or if the user has attempted to restart the space with an instanceType with insufficient memory, the request to `StartSpace` would fail. Instance types with insufficient memory: - `ml.t3.medium` - `ml.c7i.large` - `ml.c6i.large` - `ml.c6id.large` - `ml.c5.large` ## Solution Show an error notification if user is attempting to start a space with insufficient memory. Suggest the user to use an upgraded instance type with more memory depending on the one they attempted to use. If the user confirms, then the call to `StartSpace` will continue with the recommended instanceType. - `ml.t3.medium` --> `ml.t3.large` - `ml.c7i.large` --> `ml.c7i.xlarge` - `ml.c6i.large` --> `ml.c6i.xlarge` - `ml.c6id.large` --> `ml.c6id.xlarge` - `ml.c5.large` --> `ml.c5.xlarge` --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Newton Der <[email protected]>
…s and fix deeplink reconnect (aws#2161) ## Problem - When there are a large number of SageMaker space nodes, refreshing the Explorer tree can take time. During this window, the underlying node objects may be temporarily undefined, causing actions like "Connect" or "Stop" to fail. This happens because all space nodes were previously being refreshed whenever an action was taken on any one node, or when the Explorer tree was refreshed. - Deeplink reconnect can fail if the user is not logged in with the same credentials originally used to describe the space. This is because the Toolkit currently makes a `DescribeSpace` call using local credentials. Ideally, Studio UI should pass the `appType` directly in the deeplink, avoiding the need for Toolkit to make this call. However, since changes to Studio UI can’t be deployed before the NY Summit, this update will be handled in a future MFE release. ## Solution - Updated the logic to **refresh only the specific space node** being acted on, instead of refreshing all nodes. This avoids unnecessary delays and reduces the likelihood of undefined node states during actions. - Added a **warning message** when the full space list is being refreshed. If a user tries to interact with a space during this time, they will see a message indicating that space information is still loading and to try again shortly. - Temporarily **hardcoded the `appType` to `JupyterLab`** in the reconnect URI for all app types. Reconnection will still work for both Code Editor and JupyterLab, although the URL path will always show `/jupyterlab`. This is a temporary workaround until Studio UI can send the correct `appType`. - Added **telemetry for deeplink connect** --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
…om remote workspace (aws#2158) ## Problem When a user is connected to a remote workspace and clicks the Open Remote Connection button, they see an error message about the Remote SSH extension not being installed, when the real reason is that they cannot connect remotely from a remote workspace. ## Solution Show an error message which states clearly that they cannot connect via deeplink when in a remote workspace. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Newton Der <[email protected]>
aws-asolidu
approved these changes
Jul 16, 2025
ashishrp-aws
approved these changes
Jul 16, 2025
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.
Notes
feature/xbranches will not be squash-merged at release time.