Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
06408c7
implemented interactive-session list
l-mansouri Mar 16, 2026
86133b0
adds the interactive session creation
l-mansouri Mar 17, 2026
c9830e4
refined in testing
l-mansouri Mar 18, 2026
4fcb373
changelog
l-mansouri Mar 18, 2026
3ebc491
fix lisitng status error
l-mansouri Mar 18, 2026
bb2d61e
changed error message for invalid credentials
l-mansouri Mar 18, 2026
3fe895b
fix error message
l-mansouri Mar 18, 2026
9b0c5a5
removed tmp files
l-mansouri Mar 18, 2026
52f7ea4
updates docs
l-mansouri Mar 18, 2026
c2459f7
added cis
l-mansouri Mar 18, 2026
f7dc8a3
fix typo in ci
l-mansouri Mar 18, 2026
aeaeecf
fix typo in ci
l-mansouri Mar 18, 2026
32606f1
fix typo in ci
l-mansouri Mar 18, 2026
91888e3
cleanup
l-mansouri Mar 18, 2026
a9baa64
address sentry
l-mansouri Mar 18, 2026
2feca3f
removed gitlab token from cis
l-mansouri Mar 18, 2026
61b2801
removed gitlab token from cis
l-mansouri Mar 18, 2026
477f0f6
added azzure interactive-session creation support
l-mansouri Mar 18, 2026
b841b22
cleanup
l-mansouri Mar 18, 2026
9ff31d1
added azure cis
l-mansouri Mar 18, 2026
008dd9d
fix typo
l-mansouri Mar 18, 2026
3fde0f1
fix azure cis
l-mansouri Mar 18, 2026
8d89ee1
fix cis
l-mansouri Mar 18, 2026
91b1304
address sentry
l-mansouri Mar 18, 2026
39695e5
fix typo in ci
l-mansouri Mar 18, 2026
ad6b430
address sentry
l-mansouri Mar 18, 2026
c068a64
changed table to print full id
l-mansouri Mar 19, 2026
ce7c813
address sentry
l-mansouri Mar 19, 2026
b1df55e
Apply suggestions from code review
l-mansouri Mar 20, 2026
3e585ec
addressed review comments
l-mansouri Mar 20, 2026
96599b6
updated docs
l-mansouri Mar 20, 2026
aefce3d
fix typo
l-mansouri Mar 20, 2026
c562726
fix cis
l-mansouri Mar 23, 2026
221345b
fix cis
l-mansouri Mar 23, 2026
eef102f
Update tests/test_interactive_session/test_list_sessions.py
l-mansouri Mar 23, 2026
b5d8636
Update tests/test_interactive_session/test_list_sessions.py
l-mansouri Mar 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 48 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_ADAPT }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_ADAPT }}
CLOUDOS_URL: "https://cloudos.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos workflow import --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --workflow-name imported_from_gitlab --workflow-url https://gitlab.com/lifebit-ai/spammer-nf --repository-platform gitlab
import_github:
Expand All @@ -210,7 +209,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_ADAPT }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_ADAPT }}
CLOUDOS_URL: "https://cloudos.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos workflow import --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --workflow-name imported_from_github --workflow-url https://github.com/lifebit-ai/spammer-nf --repository-platform github
job_run_and_status:
Expand Down Expand Up @@ -308,7 +306,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_ADAPT }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_ADAPT }}
CLOUDOS_URL: "https://cloudos.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos job ${{ matrix.feature }} --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --job-id ${{ needs.job_run_and_status.outputs.job_id }}
workflow_list:
Expand Down Expand Up @@ -900,3 +897,51 @@ jobs:
--instance-type m4.xlarge \
--params-file "$PARAMS_FILE" \
--wait-completion
interactive_session_list:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .
- name: Run tests
env:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_ADAPT }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_ADAPT }}
CLOUDOS_URL: "https://cloudos.lifebit.ai"
run: |
echo q |cloudos interactive-session list --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID
interactive_session_create:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .
- name: Run tests
env:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_ADAPT }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_ADAPT }}
PROJECT_NAME: "cloudos-cli-tests"
CLOUDOS_URL: "https://cloudos.lifebit.ai"
run: |
cloudos interactive-session create --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --project-name "$PROJECT_NAME" --name ci_test_cli --session-type jupyter --shutdown-in 10m

52 changes: 49 additions & 3 deletions .github/workflows/ci_az.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_AZURE }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_AZURE }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos workflow import --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --workflow-name imported_from_gitlab --workflow-url https://gitlab.com/lifebit-ai/spammer-nf --repository-platform gitlab
import_github_az:
Expand All @@ -191,7 +190,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_AZURE }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_AZURE }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos workflow import --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --workflow-name imported_from_github --workflow-url https://github.com/lifebit-ai/spammer-nf --repository-platform github
job_run_and_status_az:
Expand Down Expand Up @@ -289,7 +287,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_AZURE }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_AZURE }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos job ${{ matrix.feature }} --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --job-id ${{ needs.job_run_and_status_az.outputs.job_id }}
workflow_list_az:
Expand Down Expand Up @@ -686,3 +683,52 @@ jobs:
--params-file "$PARAMS_FILE" \
--execution-platform "azure" \
--wait-completion
interactive_session_list:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .
- name: Run tests
env:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_AZURE }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_AZURE }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
run: |
echo q |cloudos interactive-session list --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID
interactive_session_create:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .
- name: Run tests
env:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_AZURE }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_AZURE }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
PROJECT_NAME: "cloudos-cli-tests"
INSTANCE_TYPE: "Standard_D4as_v4"
run: |
cloudos interactive-session create --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --project-name "$PROJECT_NAME" --name ci_test_cli --session-type jupyter --shutdown-in 10m --execution-platform azure --instance $INSTANCE_TYPE

50 changes: 47 additions & 3 deletions .github/workflows/ci_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_DEV }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_DEV }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos workflow import --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --workflow-name imported_from_gitlab --workflow-url https://gitlab.com/lifebit-ai/spammer-nf --repository-platform gitlab
import_github_dev:
Expand All @@ -191,7 +190,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_DEV }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_DEV }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos workflow import --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --workflow-name imported_from_github --workflow-url https://github.com/lifebit-ai/spammer-nf --repository-platform github
job_run_and_status_dev:
Expand Down Expand Up @@ -289,7 +287,6 @@ jobs:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_DEV }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_DEV }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
cloudos job ${{ matrix.feature }} --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --job-id ${{ needs.job_run_and_status_dev.outputs.job_id }}
workflow_list_dev:
Expand Down Expand Up @@ -906,3 +903,50 @@ jobs:
--instance-type m4.xlarge \
--params-file "$PARAMS_FILE" \
--wait-completion
interactive_session_list:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .
- name: Run tests
env:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_DEV }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_DEV }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
run: |
echo q |cloudos interactive-session list --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID
interactive_session_create:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .
- name: Run tests
env:
CLOUDOS_TOKEN: ${{ secrets.CLOUDOS_TOKEN_DEV }}
CLOUDOS_WORKSPACE_ID: ${{ secrets.CLOUDOS_WORKSPACE_ID_DEV }}
CLOUDOS_URL: "https://dev.sdlc.lifebit.ai"
PROJECT_NAME: "cloudos-cli-tests"
run: |
cloudos interactive-session create --cloudos-url $CLOUDOS_URL --apikey $CLOUDOS_TOKEN --workspace-id $CLOUDOS_WORKSPACE_ID --project-name "$PROJECT_NAME" --name ci_test_cli --session-type jupyter --shutdown-in 10m
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## lifebit-ai/cloudos-cli: changelog

## v2.83.0 (2026-03-18)

### Feat

- Adds interactive session class
- Adds interactive session listing
- Adds interactive session creation

## v2.82.1 (2026-03-11)

### Patch
Expand Down
Loading
Loading