[GenAI] Improve code coverage for org.apache.commons:commons-compress:1.23.0 using gpt-5.6-luna - #9490
Open
graalvmbot wants to merge 3 commits into
Conversation
Spotless requires the license header to be followed immediately by the package declaration, and `spotlessCheck` runs in CI while finalization never does. Remove the description comment that sat between them.
This was referenced Aug 23, 2026
kimeta
added a commit
that referenced
this pull request
Aug 27, 2026
Finalization validated a run with checkstyle, the JVM tests, and the stats task, then published a branch. It never ran Spotless, which gates every pull request, so a run could finalize clean and still fail review on a check its own verification skipped. Run 9455 did exactly that: eight tasks completed, `finalize-verify` accepted the artifacts, and #9490 opened with a failing Spotless job over twelve files. Put the step ahead of checkstyle rather than beside the other validations. `spotlessApply` writes the licence header that `licenseHeaderFile` requires immediately before `package`, which is the same header checkstyle's `RegexpHeader` demands. That run stranded itself in human intervention at the checkstyle step over missing CC0 headers the formatter would have written, so ordering the formatter first turns a repair pass into a no-op. Later steps renumber, and every `fail`, transition, description, and repair instruction moves with them; `fix_passes` rises to seven so its documented meaning of one repair per failing step still holds. Exclude `forge/local_repositories` from root Spotless. The prepare phase materializes the tested library's own sources there, and commons-compress ships an ISO-8859-1 file that fails the task outright. Passing `-Pcoordinates` does not scope it away. The tree is gitignored so CI never saw it, but a finalization step would meet it on every run and fail on third-party code this repository neither owns nor formats. Tell the cover agents the header must sit against the `package` line, so generated tests satisfy the formatter when written instead of at the gate.
kimeta
added a commit
that referenced
this pull request
Aug 27, 2026
`Forge Branch Ready` triggered on every push to `ai/**`. Actions reports a push-triggered job as a check run on the pushed commit, so once the publisher opened a pull request from that branch, the gate kept re-running there and reporting into a pull request it was never meant to judge. It cannot pass on those pushes either. Every validation reads the descriptor committed at the tip, so a maintainer repairing a published branch fails the first check with `Exactly one tip-committed forge-publication.json is required` and nothing to publish. #9490 shows the shape: a formatting repair pushed on top of the descriptor commit turned the branch red on a check that had already done its job. Scope the trigger to `stats/*/*/*/forge-publication.json`, the exact path `validate` requires of every route. A push without a descriptor now starts no run at all, so it reports no check; the publication push still validates and still gates `Forge Open PR` through `workflow_run`.
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.
Code coverage improvement
Fixes: #9455
org.apache.commons:commons-compress:1.23.0tests/src/org.apache.commons/commons-compress/1.23.0/code-coverage-improvementJaCoCo coverage
Every figure divides by the same denominator: the 4366 library methods JaCoCo
can rule on, made up of 2688 public API methods and 1678 internal methods, which
are disjoint by construction. Each checkpoint is counted over that one frozen
set of method ids from a single JaCoCo report, so every phase starts where the
previous phase ended.
Where the coverage and the remaining headroom sit:
Token usage
Input is uncached input tokens; Input (cached) is cache reads.
Local CI Verification
successForge-Publication-ID: forge-9455-20260823143626-8ca377815bbc