refactor: prints outputs path to stderr instead of stdout#732
Open
claymcleod wants to merge 6 commits intomainfrom
Open
refactor: prints outputs path to stderr instead of stdout#732claymcleod wants to merge 6 commits intomainfrom
claymcleod wants to merge 6 commits intomainfrom
Conversation
58c158e to
9ed5d7e
Compare
PR #701 added a `println!` that prints the outputs file path after printing the JSON outputs. This breaks any tool that captures stdout as machine-readable JSON (e.g., spectool with --redirect-stdout). This moves the message to `eprintln!` so stdout stays clean JSON, reverts the stdout timestamp normalization workaround from #725, and adds a WDL 1.3 spec compliance CI workflow so we can catch issues like this on our side going forward.
9ed5d7e to
d7aadf1
Compare
Uses Sprocket's `--index-on` flag with spectool's new `--output-file` flag instead of `--redirect-stdout`, which is fragile when non-JSON content appears on stdout.
peterhuene
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #701 added a
println!that prints the outputs file path after printing the JSON outputs. This breaks any tool that captures stdout as machine-readable JSON—spectool with--redirect-stdoutbeing the immediate case, where every passing test started failing with "trailing characters" parse errors in the openwdl/wdl CI.The fix is straightforward: change
println!toeprintln!so the informational message goes to stderr while stdout stays clean JSON. This also reverts the stdout timestamp normalization workaround added in #725, which was papering over the same issue from the test harness side.Additionally, this adds a spec compliance CI workflow that runs spectool against the WDL 1.3 spec using the current branch's build of Sprocket, so we can catch issues like this on our side going forward.
Before submitting this PR, please make sure:
For all contributors:
nextbranch in the sprocket.bio repository (when appropriate).