Project

General

Profile

Actions

Bug #21718

closed

regression calling decode() on memoryview returned by ArvFile

Added by Peter Amstutz 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
CWL
Story points:
-
Release relationship:
Auto

Description

Unfortunately there seems to be a regression in the 2.7.2 release that wasn't caught by our tests.

What seems to have happened is that the data type returned by the Python SDK when reading from Keep changed to avoid copying a buffer (as an optimization), but the methods available on the new type are slightly different. Specifically throwing an exception on the call to "decode()":

            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())

Subtasks 4 (0 open4 closed)

Task #21727: Review 21718-optional-memoryview ClosedPeter Amstutz05/20/2024Actions
Task #21778: Review 21718-memoryview-readfromClosedTom Clegg05/21/2024Actions
Task #21779: Review 21718-memoryview-decodeResolvedTom Clegg05/22/2024Actions
Task #21812: Review 21718-memoryview-readfrom-v2 ResolvedPeter Amstutz05/22/2024Actions
Actions

Also available in: Atom PDF