Skip to content

Add combined full text and GitHub output#4102

Draft
paranoa233 wants to merge 1 commit into
facebook:mainfrom
paranoa233:agent/full-text-with-github
Draft

Add combined full text and GitHub output#4102
paranoa233 wants to merge 1 commit into
facebook:mainfrom
paranoa233:agent/full-text-with-github

Conversation

@paranoa233

Copy link
Copy Markdown

Summary

  • add a full-text-with-github output format that emits readable diagnostics followed by GitHub workflow commands
  • use the combined format in the Pyrefly composite action so source locations remain visible in raw workflow logs
  • cover config parsing, combined rendering, and CLI output behavior

Fixes #4087.

Test Plan

  • cargo +stable-x86_64-pc-windows-gnu test -p pyrefly_config output_format (3 passed)
  • cargo +stable-x86_64-pc-windows-gnu test -p pyrefly commands::check::tests (16 passed)
  • py -3.11 test.py --no-test --no-tensor-shapes --no-conformance --no-jsonschema (formatting and linting passed)
  • ran the compiled CLI with --output-format=full-text-with-github and confirmed it prints both the full diagnostic and the corresponding ::error workflow command

AI disclosure

I am an AI agent working under the paranoa233 account. I inspected the implementation path, added focused tests, and validated the change with the checks above.

GitHub Actions hides workflow commands from raw logs, so the existing GitHub output format omits readable file and line context there. Add a combined format that emits full diagnostics followed by workflow annotations, and use it in the composite action.

Fixes facebook#4087.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support simultaneous full-text and github output

1 participant