Skip to content

Commit dc1b5ab

Browse files
🐛 Expose CreditsApi (#177)
* update workflow before publishing python package fix dependency issue and bump version point to website in project description fix broken dependency improve doc add github token to download artifacts ensure only read-access @wvangeit yet another attempt at downloading artifacts make sure to use repo that ran the trigger wf another attempt at fixing change owner allow publishing to testpypi also when pr minor change revert minor (but breaking) change minor fix add debug messages another debug message hopefully the final version final fix minor fix move master and tag to individual jobs add debug messages add python script for determining semantic version minor changes minor changes improve error handling and add version file to artifacts check if release minor fix ensure to enter venv also when tagging source venv in publishin workflow ensure only master add script for testing 'pure' semver adapt workflows to new python script minor change attempt to evaluate expressions correctly several fixes to fix tests ensure repo is checked out in publish workflow several small fixes cleanup debug minor cleanup mionr changes add debug message minor change minor change yet another try minor change minor change minor change mionr change minor changes correct workflow run id cosmetic change avoid using gh change to a single job for publishing minor cleanup swap loops in clean up jobs correction get correct versions of github workflow files update a couple of other files update a few more tests update yet another file yet another file * update test and expose CreditsApi * minor changes
1 parent 2f11abe commit dc1b5ab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

clients/python/client/osparc/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ApiValueError,
1111
BodyUploadFileV0FilesContentPut,
1212
Configuration,
13+
CreditsApi,
1314
ErrorGet,
1415
File,
1516
Groups,
@@ -88,6 +89,7 @@
8889
"ApiValueError",
8990
"BodyUploadFileV0FilesContentPut",
9091
"Configuration",
92+
"CreditsApi",
9193
"ErrorGet",
9294
"File",
9395
"FilesApi",

clients/python/test/e2e/test_studies.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# pylint: disable=unused-variable
66

77
import shutil
8+
from datetime import timedelta
89
from pathlib import Path
910
from uuid import UUID
1011

@@ -39,15 +40,16 @@ async def test_studies_logs(
3940
assert isinstance(status, osparc.JobStatus)
4041
async for attempt in tenacity.AsyncRetrying(
4142
reraise=True,
42-
wait=tenacity.wait_fixed(1),
43-
stop=tenacity.stop_after_delay(30),
43+
wait=tenacity.wait_fixed(timedelta(seconds=5)),
44+
stop=tenacity.stop_after_delay(timedelta(minutes=10)),
4445
retry=tenacity.retry_if_exception_type(AssertionError),
4546
):
4647
with attempt:
4748
status = studies_api.inspect_study_job(
4849
study_id=f"{sleeper_study_id}", job_id=job.id
4950
)
5051
assert isinstance(status, osparc.JobStatus)
52+
print(f"--- seconds idle: {attempt.retry_state.idle_for}\n", status)
5153
assert status.stopped_at is not None
5254
assert status.state == "SUCCESS"
5355
try:

0 commit comments

Comments
 (0)