[arvados] created: 2.7.0-6604-g8b273a91ca
git repository hosting
git at public.arvados.org
Mon May 20 18:56:39 UTC 2024
at 8b273a91ca36b167d1d89ce5798584328df44b7e (commit)
commit 8b273a91ca36b167d1d89ce5798584328df44b7e
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Mon May 13 11:13:43 2024 -0400
21718: Update cwltool dependency
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/sdk/cwl/setup.py b/sdk/cwl/setup.py
index 5d8486f64f..54abb43636 100644
--- a/sdk/cwl/setup.py
+++ b/sdk/cwl/setup.py
@@ -29,8 +29,8 @@ setup(name='arvados-cwl-runner',
# build.
install_requires=[
*arvados_version.iter_dependencies(version),
- 'cwltool==3.1.20230601100705',
- 'schema-salad==8.4.20230601112322',
+ 'cwltool==3.1.20240508115724',
+ 'schema-salad==8.5.20240503091721',
'ciso8601 >= 2.0.0',
'setuptools>=40.3.0',
],
commit 70fc6172691965ef197a902b18e490a069cfe2ae
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue May 7 09:11:14 2024 -0400
21718: Remove unused import
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/sdk/cwl/arvados_cwl/runner.py b/sdk/cwl/arvados_cwl/runner.py
index 0cd6295fbb..c80a4b3f2f 100644
--- a/sdk/cwl/arvados_cwl/runner.py
+++ b/sdk/cwl/arvados_cwl/runner.py
@@ -31,11 +31,6 @@ from typing import (
Union,
cast,
)
-from cwltool.utils import (
- CWLObjectType,
- CWLOutputAtomType,
- CWLOutputType,
-)
import subprocess
commit c62e8c7eb9f864f6d3a8328af83572f0f05958da
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Fri May 3 10:38:19 2024 -0400
21718: Replace .decode method with str(bytes, "utf-8")
This is because some bytes-like objects (such as memoryview) don't
have a "decode()" method. It appears that the preferred way to get a
decoded string is to simply call the constructor with the bytes-like
object and the desired encoding.
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/sdk/cwl/arvados_cwl/arvdocker.py b/sdk/cwl/arvados_cwl/arvdocker.py
index f5e67a6649..ae5a434074 100644
--- a/sdk/cwl/arvados_cwl/arvdocker.py
+++ b/sdk/cwl/arvados_cwl/arvdocker.py
@@ -19,11 +19,10 @@ logger = logging.getLogger('arvados.cwl-runner')
def determine_image_id(dockerImageId):
for line in (
- subprocess.check_output( # nosec
- ["docker", "images", "--no-trunc", "--all"]
- )
- .decode("utf-8")
- .splitlines()
+ str(subprocess.check_output( # nosec
+ ["docker", "images", "--no-trunc", "--all"]
+ ), "utf-8")
+ .splitlines()
):
try:
match = re.match(r"^([^ ]+)\s+([^ ]+)\s+([^ ]+)", line)
diff --git a/sdk/cwl/arvados_cwl/arvworkflow.py b/sdk/cwl/arvados_cwl/arvworkflow.py
index dae68459bc..4751e48c04 100644
--- a/sdk/cwl/arvados_cwl/arvworkflow.py
+++ b/sdk/cwl/arvados_cwl/arvworkflow.py
@@ -317,7 +317,7 @@ def upload_workflow(arvRunner, tool, job_order, project_uuid,
text = tool.doc_loader.fetch_text(w)
if isinstance(text, bytes):
- textIO = StringIO(text.decode('utf-8'))
+ textIO = StringIO(str(text, 'utf-8'))
else:
textIO = StringIO(text)
diff --git a/sdk/cwl/arvados_cwl/runner.py b/sdk/cwl/arvados_cwl/runner.py
index 259294a36e..0cd6295fbb 100644
--- a/sdk/cwl/arvados_cwl/runner.py
+++ b/sdk/cwl/arvados_cwl/runner.py
@@ -929,7 +929,7 @@ class Runner(Process):
if "cwl.output.json" in outc:
with outc.open("cwl.output.json", "rb") as f:
if f.size() > 0:
- outputs = json.loads(f.read().decode())
+ outputs = json.loads(str(f.read(), 'utf-8'))
def keepify(fileobj):
path = fileobj["location"]
if not path.startswith("keep:"):
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list