fix: show query output when expect-results fails#1
Merged
darcyclarke merged 1 commit intomainfrom Mar 3, 2026
Merged
Conversation
When a query fails its expect-results check, the action now shows the actual query output (stdout) in both the CI logs and the step summary. This lets users see exactly which packages matched, making failures debuggable. For CLI errors (e.g. unsupported selector), stderr is also shown in the CI logs alongside any partial stdout. Adds a configurable 'show-results' input (default: 'failed') that controls when query output is displayed: - 'failed': show output only for failed queries (default) - 'always': show output for all queries - 'never': suppress query output Co-authored-by: Darcy Clarke <darcy@darcyclarke.me>
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.
When a query fails its
expect-resultscheck, the actual query output is now shown in both the CI logs and the step summary. This lets users see exactly which packages matched, making failures debuggable.Changes
CI log output for failed queries
When a query fails (either expect-results mismatch or vlt CLI error),
executeQueries()now logs:unsupported selector :diff())Summary table for failed queries
The "Failed Queries" section in the step summary now includes the actual query output in a code block, so users can see results directly in the GitHub Actions summary page.
Configurable
show-resultsinputNew optional input
show-results(default:failed) controls when query output is displayed:failed— show output only for failed queries (default, backwards compatible)always— show output for all queriesnever— suppress query output entirelyTests
Added test cases covering:
show-results=neversuppresses outputshow-results=alwaysshows successful query outputCo-authored-by: Darcy Clarke darcy@darcyclarke.me