Repository navigation
Conversation
The runner shows at most 10 annotations of each level per step and drops the rest without saying so on the pull request. `ci review --annotations` printed findings in review order, so on a large review a critical finding could be dropped while lesser ones were shown, and nothing said annotations were missing. A level with more findings than the runner shows now keeps its most severe ones (CRITICAL before SERIOUS, WARNING before NOTE, located before unlocated, then review order). A notice that counts the annotations left out and links the review comes first, and the kept annotations follow most severe first, so other annotations in the step cannot push them out. The printed result still lists every finding. A review within the limits prints exactly as before.
This branch has not been deployed
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.
Who this helps
Teams that use
proofline ci review --annotationson pull requests with many findings. The Actions runner shows at most 10 error, 10 warning and 10 notice annotations per step. It keeps the first ten of each level and drops the rest without saying so on the pull request (_maxCountPerIssueTypeandAddIssuein actions/runner'ssrc/Runner.Worker/ExecutionContext.cs; the limit is also listed under "Limitations" in actions/toolkit'sdocs/problem-matchers.md). Annotations were printed in review order, so on a large review aCRITICALfinding could be dropped whileSERIOUSones were shown, and nothing said annotations were missing.What changes
CRITICALbeforeSERIOUS,WARNINGbeforeNOTE, and within one severity a finding with a verified location at the head before one without, then review order.--annotationshelp text and the README describe the limit.Decisions
Severity::display_rank), and "located" is SARIF's verified head location (sarif::location). Within one severity, a located finding shows on the diff line, which is more actionable than a job-level annotation, so it is kept first.Process completed with exit code 3.error) and the job's limit of 50 depend on things the CLI can't see. Printing the notice and the most severe findings first means those are the last to be displaced. The README and the code comment say so.commandwriter, which uses the existingescape_property/escape_data. The notice carries only counts, a constant title and the console's review URL.Verification
src/annotations.rscover:WARNINGbeforeNOTE;tests/http.rsrunsci review --annotationsagainst the mock console with 11 serious findings. It checks that 10 errors are shown, that the notice comes first and names the review's console URL, and that the JSON result still holds all 11 findings. The two annotation tests now share anannotations_consolehelper; the existing test passes with its assertions unchanged.cargo fmt --check,cargo clippy --locked --all-targets -- -D warningsandcargo deny checkare clean. No dependency changed.cargo test --lockedpasses, except twotests/agent_install.rstests that also fail on unmodifiedmainon macOS (unattended_registration_preserves_settings_and_uses_the_installed_binary fails on macOS (/var vs /private/var) #112 reports the first; Fix macOS agent_install test portability and add macos-15 CI #138 fixes both).Overlap
writeinsrc/annotations.rs. Its gap::errorlines share the step's error limit, so whichever PR merges second should count them.ci deploy --annotationsto surface deploy check outcomes on the run summary #136 (ci deploy --annotations) adds the same kind ofLevelenum and a shared command writer, so a rebase onto it should be mechanical.ci review --summary) is complementary: the job summary can list every finding, while this decides which ten of each level show on the diff. It edits the same README paragraph and the lines around theannotations::writecall inci_review, so expect a small conflict. If both land, the notice could point at the summary as well as the review.I'm happy to rebase on any of them.