luigidemasi opened a new pull request, #134:
URL: https://github.com/apache/camel-kit/pull/134

   Replace the two disabled GitHub-dependent `GitRepoFetcherTest` cases with 12 
deterministic tests using temporary repositories and JGit file transport. The 
tests cover shallow branch clones, file discovery, incremental updates and hard 
reset, annotated tags, offline tag reuse, recovery, clone-failure cleanup, and 
explicit refresh. Fixtures use explicit identity and signing options and 
require no network server or native Git daemon.
   
   Also recover cached branch repositories with invalid `.git` metadata by 
falling back to a fresh clone when opening the repository fails. Add a 
regression for an empty `.git` directory, remove redundant peeled-tag 
filtering, and document the recovery fix in the Knowledge changelog.
   
   Fixes #133.
   
   ### Validation
   
   On Java 21.0.8 at `2294f7ef`:
   
   - `./mvnw -B -ntp -pl knowledge/indexer -am clean verify`: 114 passed, seven 
pre-existing unrelated skips, zero failures/errors. All 12 fetcher tests ran 
and passed.
   - `./mvnw -B -ntp -Psourcecheck validate`: passed.
   - The invalid-`.git` regression failed with `RepositoryNotFoundException` 
before the fix and passed afterward.
   - All 12 fetcher tests also passed with global commit/tag signing enabled, 
an invalid signing key, and no global Git identity.
   
   Website impact: not required; test coverage and recovery within the existing 
indexing/cache behavior.
   
   _AI-generated by OpenAI Codex on behalf of @luigidemasi._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to