Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

WIP: Codeflare: test project-codeflare/codeflare-sdk #254 #876

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion testing/codeflare/images/Containerfile.codeflare_sdk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
FROM ci-artifacts:main

RUN pip install --no-cache-dir \
codeflare_sdk
-e git+https://github.com/project-codeflare/codeflare-sdk.git@refs/pull/254/head#egg=codeflare-sdk
RUN pip install -r https://raw.githubusercontent.com/project-codeflare/codeflare-sdk/main/requirements.txt
11 changes: 1 addition & 10 deletions testing/codeflare/sdk_user/sample/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,7 @@ def main():

# Bring up the cluster
cluster.up()
while True:
try:
cluster.wait_ready()
break
except TypeError as e:
# there's a timeout in the calling script
logging.warning(f"cluster.wait_ready() failed with {e}")
import time
time.sleep(5)

cluster.wait_ready()
cluster.status()
cluster.details()

Expand Down
Loading