diff --git a/packages/service-library/src/servicelib/mimetype_constants.py b/packages/service-library/src/servicelib/mimetype_constants.py index 7447cf26d1e..d423561830b 100644 --- a/packages/service-library/src/servicelib/mimetype_constants.py +++ b/packages/service-library/src/servicelib/mimetype_constants.py @@ -10,3 +10,5 @@ # NOTE: mimetypes (https://docs.python.org/3/library/mimetypes.html) is already a module in python MIMETYPE_APPLICATION_JSON = "application/json" +MIMETYPE_TEXT_PLAIN = "text/plain" +MIMETYPE_TEXT_HTML = "text/html" diff --git a/requirements/how-to-unify-versions.md b/requirements/how-to-unify-versions.md index e3ad430b64a..5dc99cd921b 100644 --- a/requirements/how-to-unify-versions.md +++ b/requirements/how-to-unify-versions.md @@ -49,3 +49,8 @@ done It would also be possible to upgrade them simultaneously by using ``--upgrade`` multiple times as ``pip-compile --upgrade X --upgrade Y ...`` but we prefer to do it one by one and commit changes so that any issue can be tracked to the library upgrade + + +TIP: Check the **Repo-wide overview of libraries** table in the report. Observe the libraries with multiple version in ``version-*`` columns. Note that we can use the script to unifyunify: + - Those with no ``version-base`` and multiple in ``version-test`` + - Thos with multiple in ``version-base`` and non in ``version-test`` diff --git a/tests/public-api/test_solvers_jobs_api.py b/tests/public-api/test_solvers_jobs_api.py index 0d9c16e7f55..9497784bea9 100644 --- a/tests/public-api/test_solvers_jobs_api.py +++ b/tests/public-api/test_solvers_jobs_api.py @@ -182,9 +182,12 @@ def test_create_job( _RETRY_POLICY_IF_LOGFILE_404_NOT_FOUND = dict( # NOTE: Only 404s https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404 # are retried, the rest are failures + # + # CURRENT CONSTRAINT: Log-file should be ready in AT MOST 5 secs + # retry=retry_if_exception_type(TryAgain), wait=wait_fixed(1), - stop=stop_after_attempt(3), + stop=stop_after_attempt(5), after=after_log(logger, logging.WARNING), reraise=True, ) @@ -289,7 +292,7 @@ def test_run_job( # NOTE: https://github.com/itisfoundation/osparc-simcore/issues/3569 shows # that this test might not have the logs ready in time and returns a 404 (not found) # for that reason we do a few retries before giving up - for attempt in Retrying(_RETRY_POLICY_IF_LOGFILE_404_NOT_FOUND): + for attempt in Retrying(**_RETRY_POLICY_IF_LOGFILE_404_NOT_FOUND): with attempt: try: logfile: str = solvers_api.get_job_output_logfile(