<#1151 fix(extras/shell): optional flags, binary o...
# flyte-github
a
#1151 fix(extras/shell): optional flags, binary outputs, and debug work on remote Pull request opened by k1sauce on <!date^1780462721^{date_short}|2026-06-03T04:58:41Z> Building the flyteplugins-bio test suite against a real devbox surfaced three shell-task bugs: • optional File/Dir flags were emitted for unset inputs (the backend writes a "null" sentinel file, defeating the
[ -e ]
check); • File/Dir outputs were read as UTF-8, corrupting binary outputs like gzip; • and debug=True output never reached remote logs. Fixes all three, and adds the bio wrappers and single-run e2e tests (cat/gunzip/untar + test_all) that exercised them. TODO: Glob / Dir outputs don't round-trip on remote yet. A wrapper with a multi-file output (currently untar) declares a multipart Dir correctly — the serialized task interface is blob { dimensionality: MULTIPART } — but the backend's copilot uploads the directory as a single blob, so the consumer's Dir transformer rejects it (Expected multipart, received 0). Single-File output tools work fine on remote; untar only runs locally until the backend supports multipart raw-container outputs. test_all includes it, so the full suite is local-only for now. flyteorg/flyte-sdk