Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The change is fully wired end-to-end (implementation plus safe output-writing helper), with action metadata, documentation, and expanded tests updated to validate the new output contract across uploaded/processed/skipped/failed paths, leaving no active review concerns.
No open issues 🎉
What changed in this PR
Expose machine-readable publication outputs (outcome, report-id, skip-reason) so downstream workflows can reliably distinguish skip/upload/process/failure states without parsing logs, while preserving existing exit-code behavior.
Changes:
- Add and emit
outcome,report-id, andskip-reasonacross eligibility resolution and upload/processing flows. - Introduce a helper to write outputs via
GITHUB_OUTPUT, including delimited multiline values to prevent output injection. - Update action metadata, tests, and documentation to cover the new output contract and usage.
| File | Description |
|---|---|
| upload_coverage.py | Initializes and updates outcome, report-id, and skip-reason outputs throughout the upload and optional processing/wait flow. |
| test_upload_coverage.py | Extends test coverage to parse and assert the new outputs across uploaded/processed/skipped/failed scenarios, including a multiline-message regression case. |
| test_resolve_upload_context.py | Adds assertions that eligibility resolution emits the expected outcome and skip-reason outputs for skipped/failed paths. |
| resolve_upload_context.py | Emits outcome and skip-reason outputs when upload eligibility resolves to skipped or fails early. |
| docs/usage/publication-outcomes.md | Documents the meaning of each publication outcome and how to consume the outputs in downstream workflow steps. |
| action.yml | Declares the new composite action outputs and wires them to the underlying step outputs. |
| action_outputs.py | Implements a write_outputs helper to safely write step/action outputs (including multiline values) to GITHUB_OUTPUT. |
Review effort: Balanced
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
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.
Expose
outcome,report-id, andskip-reasonoutputs so downstream checks can distinguish an intentional skip, an accepted upload, successful processing, and failure without interpreting logs. For example, an outdated-commit response now producesoutcome: skipped, while a successful upload with waiting disabled producesoutcome: uploaded.Exit-code behavior remains unchanged. A processing failure still produces
outcome: failedwhenfail-on-error: false, and retains the accepted report ID. Multiline API messages use delimited outputs to prevent output injection.Validation: the locked environment's 106 unit tests pass, including extended existing outcome cases and one new multiline-message regression. Ruff lint and formatting checks pass. Usage is documented in
docs/usage/publication-outcomes.md.Closes #36.