Skip to content

feat(wes): show run outputs with I/O Schema hints (proposal) - #615

Open
uniqueg wants to merge 4 commits into
feat/io-run-request-proposalfrom
feat/io-run-output-proposal
Open

uniqueg wants to merge 4 commits into
feat/io-run-request-proposalfrom
feat/io-run-output-proposal

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Part of #571

This is a proposal, stacked on the run request proposal #614 (base branch feat/io-run-request-proposal), which is stacked on the I/O form proposal #613. Like them, it is built before the open design questions of #444 are answered, so that the choices can be judged on running code. Nothing here should merge as it is, and it doesn't close #571. Once the questions are answered, it will be rebased on what lands from #613 and #614 and split into reviewable PRs (see "How it will be split"). It stays a draft.

What it does

Run views show the outputs of a run by the workflow's I/O Schema instead of raw RunLog.outputs.

  • Output normaliser (src/io-schema/outputs.ts): normaliseOutputs(schema, runLog, options) ports the normaliser of profile 0.3.0 (ga4gh_io_schema.outputs) to TypeScript. It finds outputs by name (property name or x-ga4gh-parameter.name, qualified with the WDL entry point), else by x-ga4gh-output-glob among the listed files (Sapporo lists, WESkit filesystem, or options.files); turns CWL File/Directory objects, paths under localDir and relative paths into URIs under outputDir (segments percent-encoded as the profile says); checks every listed entry (absolute paths, ./../empty segments, backslashes, control characters, colon in the first segment, URIs outside outputDir, with query/fragment or encoded /) and reports skipped ones without user information, query and fragment; drops WESkit's presigned S3 URLs; matches globs in polynomial time; handles secondary files and directory outputs; validates the result against outputs (completed runs: kept, non-conformant with errors) or output by output (other final states: invalid outputs removed, partial); reports ambiguous, unconverted, undeclared, unmatchedFiles. Whole-input faults raise NormalisationError; values nested more than 64 levels deep are unconverted. Exported from @elixir-cloud/wes/utils.
  • Validator: IoSchemaCheck gets an optional validateOutputs(value, output?) (OutputsValidator); the hyperjump validator compiles outputs with the document and validates one output as the only member of the outputs object (so output names need no URI fragment). This changes feat(wes): add the I/O Schema form (proposal) #613's validator.ts (on this branch only), like feat(wes): build run requests from I/O Schemas (proposal) #614's validateAt().
  • ecc-client-ga4gh-wes-run: new properties ioSchema, outputOptions (object, or a function of the run log, also async), outputProvider and allowedSchemes. With a schema and a run in a final state, the Outputs tab shows each output through the existing ecc-client-ga4gh-wes-run-output (titles, descriptions, table viewer, sandboxed HTML viewer, downloads, scheme allow-list), in the schema's order, with local $refs and single branches besides null resolved for display; warnings for partial and non-conformant outputs (with the errors); notices for removed, ambiguous, unconverted and skipped entries; undeclared outputs and unmatched files ("Other files") without descriptions and never as links of their own; outputs not produced are named. A running run says outputs come when it has ended; if normalisation fails, the reason is shown with the raw outputs. Without a schema, the current raw view stays. The normaliser and run-output are loaded on demand (as feat(wes): build run requests from I/O Schemas (proposal) #614 does for the I/O form), so pages without a schema don't load the validator.
  • Test vectors: scripts/sync-io-schema.mjs also copies the profile's wes-outputs vectors (same pin, 2c3dc49); existing fixtures are unchanged.
  • Docs: "Run outputs" on the I/O Schemas page; "Outputs with an IO schema" and the new properties on the Run page; a docs-app demo of the profile's demo workflow (WDL, miniwdl-style local paths) as a completed and as a failed run, reusing the run-output demo's files; a changeset.

Which open questions it depends on

Of #613:

  • Q2 (validator): output validation is part of the validator interface (validateOutputs). A replacement validator (e.g. Ajv) would have to provide it; without it, normaliseOutputs() raises a NormalisationError.
  • Q3 (place and name): the normaliser sits in @elixir-cloud/wes (src/io-schema/outputs.ts, exported from @elixir-cloud/wes/utils). If the checks move to a shared @elixir-cloud/io-schema package, it moves with them; the run view stays in the WES package.
  • Q4 (Markdown): descriptions of outputs follow setDescriptionFormat(), as run-output already does.
  • Q7 (split), Q8 (tests), Q9 (Lit): see below; WTR + @open-wc/testing and Lit 2.8, as feat(wes): add the I/O Schema form (proposal) #613.
  • Q1, Q5, Q6: not affected.

Of #614: none (it uses neither the builder nor the engine profiles).

Questions of its own for @anuragxxd (the defaults this branch uses):

  • D. Run view API: ioSchema on ecc-client-ga4gh-wes-run, with the host passing the schema (krini#47 finds it in TRS). Where the run's files are is deployment knowledge, so it comes from the host as outputOptions (object or function of the run log; a new object or function normalises again, so hosts pass a stable one). Alternative: a separate ecc-client-ga4gh-wes-run-outputs element that the host slots into the existing outputs slot, leaving run unchanged, possibly with a refresh() method.
  • E. What is shown besides the declared outputs: undeclared outputs and unmatched files are shown without descriptions (the profile says clients MAY offer them); ambiguous, unconverted and skipped entries only as notices. Alternative: hide them, or show them in a collapsed "Details" section.
  • F. Event: no event with the normalised outputs yet; a host that needs them can call normaliseOutputs() itself. Alternative: fire e.g. ecc-run-outputs-normalised.

How it will be split

After the splits of #613 and #614 land, in this order (each with its tests and docs):

  1. wes-outputs vectors in the sync script, validateOutputs() and the normaliser (outputs.ts).
  2. The schema mode of ecc-client-ga4gh-wes-run, its demo and the changeset.

How it was verified

  • WES package: all 609 tests pass in Chromium and in Firefox (web-test-runner --group default, 18 test files), including all 18 wes-outputs vectors (16 results, 2 errors), the normaliser's own cases (listing checks, percent-encoding, directories, code point order, __proto__, unconvertible and too deeply nested values, WESkit S3, schemes of file references, validators without validateOutputs), validateOutputs (pointers for names with /, #, %, ~; undeclared names; schemas without outputs), glob and secondary-file rules, display schemas, and the run view (raw view kept without a schema, schema order, outputs declared by $ref shown as files, default allowed schemes, options function, allowed schemes passed on, partial, non-conformant, undeclared and unmatched, ambiguous/unconverted/skipped notices, running run, fallback to the raw view, no outputs, stale normalisations dropped). WebKit can't launch on the agent host, so it runs in CI only.
  • The wording fix c24a517 was checked with the run group (13 passed, Chromium) and ESLint.
  • npm run lint at the root, which builds all packages and the docs app: 21/21 tasks pass (the docs build prerenders /docs/wes/components/run and /docs/wes/io-schema).
  • CI doesn't run on PRs that don't target dev; the local results are the evidence.
  • Commits were made with HUSKY=0, as in feat(wes): add the I/O Schema form (proposal) #613 and feat(wes): build run requests from I/O Schemas (proposal) #614 (the hook's docs build needs Google Fonts, which the agent sandbox blocks by default); lint was run by hand.

Declined review findings

Two review rounds (adversarial and quality reviewers). Fixed in e817e63 and c24a517: per-output subschemas compiled through URI fragments made output names with # break checkIoSchema (now validated without fragments; see the remaining # issue below); unset allowedSchemes reached run-output as undefined; outputs declared by $ref or a single branch besides null lost their file display (displaySchema()); values nested deeper than the stack allows (now unconverted beyond 64 levels); helper duplication (encodeSegment, FINAL_STATES, declared outputs); direct validateOutputs tests; docs and changeset gaps.

Declined:

  • A new outputOptions object or function normalises again (quality, medium): kept and documented in the JSDoc, the run page and its React example (pass a stable object or function). Comparing options by value can't cover functions; a refresh() method belongs to question D.
  • Split outputs.ts into smaller modules (quality, low): left for the split into reviewable PRs, once feat(wes): add the I/O Schema form (proposal) #613's Q3 (place and name) is answered.
  • One shared $ref resolver (quality, medium): outputs.ts keeps its own Resolver, with a comment on why: it follows the reference implementation (an unresolvable reference keeps the value for validation to report), unlike fields.ts (merges into {} for the form) and bindings.ts (throws). CONTROL includes C1 like the Python reference; isObject and own follow the per-file convention of the package.
  • References into embedded $id resources aren't followed (adversarial, low): documented on the I/O Schemas page as a difference from the Python reference; such values stay as reported and validation reports them.
  • # in names still breaks checkIoSchema elsewhere (adversarial round 2, medium): not fixed here. feat(wes): add the I/O Schema form (proposal) #613's fragment() (unchanged on this branch) addresses deciding subschemas (anyOf, oneOf, if, contains) and $defs entries by URI fragment, and hyperjump doesn't resolve %23. So an output, input or nested property with # in its name and a union, or a $defs key with #, makes the schema unusable (run view: error notice and raw outputs). It belongs in feat(wes): add the I/O Schema form (proposal) #613 (e.g. generated $anchors in the registered copy, or a clear profile error for such names); this branch picks it up on rebase.
  • Two depth-bounded walkers, MAX_DEPTH in two modules (quality round 2, low): kept local for the proposal; to merge when the module is split.
  • Root-level constraints of outputs aren't checked when one output is validated (quality round 2, low): by design, since one output alone can't satisfy or break required, minProperties or additionalProperties of the whole object; completed runs validate the whole object.

🤖 Generated with Claude Code

Summary by Sourcery

Show WES run outputs using GA4GH IO Schema hints, with validation and clear reporting for output states and unmatched data.

New Features:

  • Add GA4GH IO Schema-aware run outputs, rendered with schema titles, descriptions, viewers, and downloads while retaining the raw view when no schema is supplied.
  • Export a normaliser that maps WES-reported outputs and file listings to schema-declared outputs, with validation and reporting for partial, invalid, ambiguous, or unmatched data.

Enhancements:

  • Extend IO Schema validation to validate the complete outputs object or individual output values.

Documentation:

  • Document schema-aware run outputs and the normalisation API, add component properties guidance, and provide completed and failed run demos.

Tests:

  • Add coverage for the output normaliser, GA4GH output test vectors, output validation, and schema-aware run rendering.

Chores:

  • Add generated WES output test-vector fixtures and update the IO Schema sync script to copy them.

uniqueg and others added 3 commits December 4, 2026 05:33
Port the output normaliser of profile 0.3.0 (ga4gh_io_schema.outputs)
to TypeScript: normaliseOutputs() finds outputs by name, then by
x-ga4gh-output-glob in the run's listing (cwltool, Toil, Cromwell,
miniwdl, Conquest, Sapporo, WESkit shapes), turns reported paths into
URIs of the output directory, checks listed entries, validates the
result (whole object for COMPLETE, per output otherwise) and reports
removed, ambiguous, unconverted, undeclared, unmatched and skipped
entries.

The validator gets an optional validateOutputs(). The sync script
copies the wes-outputs vectors (same pin, 2c3dc49); all pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ecc-client-ga4gh-wes-run gains ioSchema, outputOptions, outputProvider
and allowedSchemes. With a schema and a run that has ended, the Outputs
tab shows the normalised outputs through
ecc-client-ga4gh-wes-run-output, warns about partial and non-conformant
outputs, names what the normaliser reports, and shows undeclared
outputs and unmatched files without descriptions. Without a schema the
raw view stays. The normaliser and run-output load on demand.

Docs: Run outputs on the I/O Schemas page, the run page's new section
and properties, a docs-app demo of the profile's demo workflow, and a
changeset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- validateOutputs validates one output as the only member of the
  outputs object, so names with '#' no longer break checkIoSchema, and
  no extra subschemas are compiled
- the run view passes the default allowed schemes when none are set,
  and resolves $ref and single branches of output schemas for display
- values nested more than 64 levels are refused (unconverted) instead
  of overflowing the validator's stack; strings() is iterative
- reuse encodeSegment from trs.ts; export outputProperties and
  displaySchema; FINAL_STATES from states.ts only
- tests for validateOutputs, deep values, display schemas; docs on
  memoising outputOptions, running runs, embedded $id, the validator
  contract in the changeset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Data structures

Define the final WES run states used to gate output normalisation.

  • packages/ecc-client-ga4gh-wes/src/io-schema/states.ts L1-13

API

Add the output-normalisation API and its result types, and extend schema checks with output validation for that normaliser.

  • packages/ecc-client-ga4gh-wes/src/io-schema/outputs.ts L1-1039
  • packages/ecc-client-ga4gh-wes/src/io-schema/trs.ts L81
  • packages/ecc-client-ga4gh-wes/src/io-schema/validator.ts L64-76, L316-322, L451-487 (+5 small edits)
  • packages/ecc-client-ga4gh-wes/src/utils/index.ts L5-6, L17, L56-65

Implementation

Update the IO Schema sync script to generate the profile's WES output test-vector fixture alongside the existing fixtures.

  • packages/ecc-client-ga4gh-wes/scripts/sync-io-schema.mjs L10-12, L177-229

UI

Add schema-aware output rendering to the run component, including normalisation, output viewers, reports, and raw-output fallback.

  • packages/ecc-client-ga4gh-wes/src/components/run/run.ts L70-86, L113-166, L785-980 (+4 small edits)

Configuration

Record the new run-output feature and utility exports in the WES package changeset.

  • .changeset/wes-run-outputs.md L1-5

Documentation

Document schema-enabled run outputs, normalisation options, and the public component properties, with an interactive preview and example.

  • apps/documentation/pages/docs/wes/components/run.mdx L4, L81-148

Document the output normaliser, its reports, limitations, and usage.

  • apps/documentation/pages/docs/wes/io-schema.mdx L78-100

Build the documentation preview for completed and failed runs using the demo workflow and output provider.

  • apps/documentation/components/packages/wes/RunSchemaOutputsPreview.tsx L1-122
  • apps/documentation/components/packages/wes/runOutputExample.ts L14

Tests

Add coverage for schema-aware run output rendering and its fallback, notices, options, and asynchronous normalisation behavior.

  • packages/ecc-client-ga4gh-wes/src/components/run/tests/run.test.ts L1-362

Test the output normaliser against profile vectors and edge cases, including path safety, validation, references, and depth limits.

  • packages/ecc-client-ga4gh-wes/src/io-schema/tests/outputs.test.ts L1-535

Verify output validation through the IO Schema validator, including escaped output names and undeclared outputs.

  • packages/ecc-client-ga4gh-wes/src/io-schema/tests/validator.test.ts L412-477

Lock files and vendored code

Add the generated GA4GH IO Schema WES output test vectors consumed by normaliser tests.

  • packages/ecc-client-ga4gh-wes/src/io-schema/tests/fixtures/wes-outputs.ts L1-2388

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

read-the-docs-community Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Values nested too deeply land in unconverted too, so the notice no
longer says their files can't be located.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uniqueg
uniqueg marked this pull request as ready for review December 4, 2026 12:22
@uniqueg
uniqueg requested a review from anuragxxd as a code owner December 4, 2026 12:22

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 12 issues

Sourcery assessment

Needs a human reviewer. 12 findings to address first, and with a schema and output provider configured, the new Outputs path passes normalised run-log file URIs to viewers and downloads. If a hostile or unintended URI gets past the output component’s deployment allow-list, it could trigger a fetch or expose a run file; reverting cannot undo a request already made.

Blocking findings: packages/ecc-client-ga4gh-wes/src/components/run/run.ts:819, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:115, packages/ecc-client-ga4gh-wes/src/io-schema/outputs.ts:738, packages/ecc-client-ga4gh-wes/src/io-schema/outputs.ts:517, packages/ecc-client-ga4gh-wes/src/components/run/run.ts:146, and 7 more


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

.schema=${schema as Record<string, unknown>}
.value=${value}
.provider=${this.outputProvider}
.allowedSchemes=${this.allowedSchemes ?? [...DEFAULT_ALLOWED_SCHEMES]}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 High · Run outputs trigger arbitrary HTTPS fetches

When a run reports an attacker-controlled HTTPS URI for an output with a viewer, and the host's output provider proxies that URI or adds privileged credentials, renderOutput() passes the scheme-only allowedSchemes check to the output element, which then calls outputProvider.fetchOutput() for an output URI. A malicious workflow author can report an attacker-controlled HTTPS URI for a schema-marked viewer, causing a host provider that proxies URIs or adds credentials to fetch that destination and expose privileged network access or credentials.

Apply a deployment-controlled host/URI allow-list before invoking the output provider, and enforce the same policy in any server-side proxy it uses.


protected willUpdate(changed: PropertyValues<this>): void {
if (
changed.has("run" as keyof ECCClientGa4ghWesRun) ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Older runs replace selected outputs

When the provider or run ID changes while an earlier getRunLog() request is pending and that request resolves last, loadRunData() accepts the stale response and assigns it to run; updateOutputs() then normalises it, so the selected run displays another run’s files.

Discard each getRunLog() response unless its provider and run ID are still current.

}
}
} else {
matches = files.filter((segments) => matchGlob(glob, segments));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Malicious schemas freeze run views

When a user opens a run whose schema has long adversarial output globs and whose server-reported listing contains long paths or many entries, takeGlob() applies each schema glob to every listed path, and matchSegment() can repeatedly backtrack across long glob and filename segments. A workflow author who controls the schema and run listing can make updateOutputs() perform excessive synchronous work, freezing the run view in the user's browser.

Bound schema glob lengths, listing entry counts and path lengths before matching, or make matching incremental with a work budget so hostile inputs cannot monopolize the UI thread.

Comment on lines +503 to +517
try {
if (typeof entry !== "string") {
throw new Unconvertible("not a path or URI");
}
let segments: Segments;
if (SCHEME.test(entry)) segments = uriSegments(entry, base ?? "");
else if (entry.startsWith("/")) {
throw new Unconvertible("an absolute path");
} else segments = entry.split("/");
checkSegments(segments);
// Checked segments contain no '/', so the joined path is a key
checked.set(segments.join("/"), segments);
} catch (error) {
if (!(error instanceof Unconvertible)) throw error;
skipped.push({ entry: redact(entry), reason: error.message });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Large listings stall output rendering

When a run or supplied files listing contains a very large number of entries and the schema declares output globs, checkListing processes every listed entry and glob matching scans the checked files for each declared glob, with no input-size bound, so a very large run listing can consume substantial browser time and memory before outputs render.

Bound the number of listing entries processed or otherwise cap normalisation work, and report when the limit is reached.

Also at packages/ecc-client-ga4gh-wes/src/io-schema/outputs.ts:720.

]);
const options =
typeof outputOptions === "function"
? await outputOptions(run)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Outputs stay loading

When the outputOptions function returns a promise for a listing that never resolves, updateOutputs awaits the outputOptions promise without a timeout, so a listing request that never settles leaves the Outputs tab on its loading skeleton indefinitely; the output viewer’s timeout only covers file loads.

Add a timeout or cancellation path for resolving outputOptions and show an error or fallback when it expires.

const schema = resolver.follow(schemaIn);
if (!isObject(schema)) return value;
if ("x-ga4gh-file" in schema) return convertFile(value, context);
const branch = singleBranch(schema);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Composed file outputs stay unusable

When an output schema puts its file annotation in an allOf branch and the engine reports a local path, convert() does not handle the allOf branch, leaving the path unconverted, and displaySchema leaves the composition intact; validation fails and the run view shows no usable file output.

Handle file annotations in allOf branches in both convert() and displaySchema.

Also at apps/documentation/pages/docs/wes/io-schema.mdx:99, packages/ecc-client-ga4gh-wes/src/io-schema/outputs.ts:278, packages/ecc-client-ga4gh-wes/src/io-schema/outputs.ts:599.

Comment on lines +326 to +328
const outputs = own(properties, "outputs") ? properties.outputs : undefined;
return isObject(outputs) && isObject(outputs.properties)
? outputs.properties

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 High · Referenced outputs are missed

When the schema expresses its outputs object through a $ref, outputProperties reads only inline properties.outputs.properties, so when a valid schema places outputs behind a $ref, it returns no declarations; engineNames then cannot match the run’s outputs and the view reports them as undeclared or missing instead of normalising them.

Resolve the outputs schema before extracting its properties and engine-name bindings.

return html`<ecc-client-ga4gh-wes-run-output
.name=${name}
.schema=${schema as Record<string, unknown>}
.value=${value}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Nested files lack viewers

When a declared output contains file references nested in record properties, renderOutput passes a nested record value and its schema to the output element, but outputEntries only recognizes a file at the root, an array of files, or an object whose additionalProperties are files. Files nested in record properties are rendered as ordinary values, so their viewer and download actions are unavailable.

Extend the output element to recursively render nested schema/value structures, or explicitly constrain the supported output shapes and explain that limitation.

}
let path = value as string;
if (path.startsWith("/")) {
if (context.local === undefined || !path.startsWith(`${context.local}/`)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Output directory root is rejected

When an engine reports the local output directory itself as a file or directory output, convertFile() rejects a path equal to localDir because it requires the path to start with localDir/, so the output is marked unconverted instead of becoming outputDir.

Accept a path equal to localDir and convert it to outputDir.

Also at packages/ecc-client-ga4gh-wes/src/io-schema/outputs.ts:570.

Comment on lines +1012 to +1016
const found = strings(result.outputs);
result.unmatchedFiles = [...checked]
.filter(([key]) => !covered.has(key))
.map(([, segments]) => buildUri(base as string, segments))
.filter((uri) => !found.has(uri))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Listed files disappear from Other files

When a non-file output string equals the URI of a listed file, strings(result.outputs) collects every string value, including ordinary text outputs, so a text value equal to a listed file’s URI makes the filter drop that file from unmatchedFiles; the run view then omits it from “Other files.”

Track URIs found in declared file-reference outputs and use only those URIs to filter the listing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant