Skip to content

Commit 0eff859

Browse files
Preparing release 2.3.0
1 parent d41c303 commit 0eff859

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ run_tests:
99
stage: test
1010
resource_group: ssh-helper-tests
1111
script:
12+
# Run tests
1213
- bash run_tests.sh
1314
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
1415
artifacts:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![License](https://img.shields.io/github/license/aws-samples/sagemaker-ssh-helper.svg)](https://github.com/aws-samples/sagemaker-ssh-helper/blob/main/LICENSE)
66

77
SageMaker SSH Helper is the "army-knife" library that helps you to securely connect to Amazon SageMaker training jobs, processing jobs, batch inference jobs
8-
and realtime inference endpoints as well as SageMaker Studio Notebooks and SageMaker Notebook Instances for fast interactive experimentation,
8+
and realtime inference endpoints as well as SageMaker Studio set of IDEs and SageMaker Notebook Instances for fast interactive experimentation,
99
remote debugging, and advanced troubleshooting.
1010

1111
Three most common tasks that motivated to create the library, sometimes referred as "SSH into SageMaker", are:

jupyterlab-lc-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ else
3737
$PYTHON_BIN -m pip install -q sagemaker-ssh-helper
3838

3939
# Uncomment lines below to update SageMaker SSH Helper to the latest dev version from the main branch
40-
# dir="$(pwd)"
4140
# git clone https://github.com/aws-samples/sagemaker-ssh-helper.git /tmp/sm-ssh-src/ || echo 'Already cloned'
4241
# cd /tmp/sm-ssh-src/ && git pull --no-rebase && git clean -f && $PYTHON_BIN -m pip install .
43-
# cd "$dir"
4442
fi
4543

44+
cd /root
45+
4646
# We assume that the kernels are is installed into the sys prefix, e.g. with ipykernel install --sys-prefix command
4747
SYSTEM_PYTHON_PREFIX=$($PYTHON_BIN -c "from __future__ import print_function;import sys; print(sys.prefix)")
4848
export JUPYTER_PATH="$SYSTEM_PYTHON_PREFIX/share/jupyter/"

sagemaker_ssh_helper/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.0.dev1
1+
2.3.0

sagemaker_ssh_helper/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
sagemaker_ssh_helper.last_session_time = datetime.now()
99

1010

11-
def setup_and_start_ssh():
11+
def setup_and_start_ssh(): # pragma: no cover
1212
if "START_SSH" not in os.environ:
1313
print("[sagemaker-ssh-helper] WARNING: SageMaker SSH Helper is not correctly initialized. "
1414
"Did you forget to call wrapper.create() _before_ fit() / run() / transform() / deploy()?")
@@ -40,7 +40,7 @@ def setup_and_start_ssh():
4040
print(f"[sagemaker-ssh-helper] Skipping SageMaker SSH Helper setup from {script} due to startup params")
4141

4242

43-
def is_last_session_timeout(time_delta: timedelta):
43+
def is_last_session_timeout(time_delta: timedelta): # pragma: no cover
4444
args = ["pgrep", "-f", "ssm-session-worker"]
4545
try:
4646
out = subprocess.check_output(args)
@@ -63,7 +63,7 @@ def is_last_session_timeout(time_delta: timedelta):
6363
return timeout
6464

6565

66-
def is_profiler_issues_found():
66+
def is_profiler_issues_found(): # pragma: no cover
6767
from sagemaker_ssh_helper.wrapper import SSHEstimatorWrapper
6868
training_job_arn = os.environ.get("TRAINING_JOB_ARN")
6969
if not training_job_arn:

0 commit comments

Comments
 (0)