checkstyle / checkstyle/contribution

groovy Runtime error while genrating the report

Open
#839 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
57
Forks
168
Avg merge
1d 11h
Merged PRs (30d)
15

Description

I was trying to manually generate a report
this is my command
```
D:\contribution\checkstyle-tester> groovy diff.groovy --localGitRepo D:\checkstyle
--baseBranch issue-3502 --patchBranch issue-3502-revertlabel --config my_check.xml
--listOfProjects projects-to-test-on.properties
```
but I got this error when testing started and we want to clone into checkstyle repo
```
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:28 min
[INFO] Finished at: 2024-02-28T02:39:20+02:00
Testing Checkstyle started
[delete] Deleting directory D:\contribution\checkstyle-tester\src\main\java
Cloning git repository 'checkstyle' to repositories\checkstyle folder ...
Cloning into 'repositories\checkstyle'...
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 3941 bytes of body are still expected
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 4652 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Cloning into 'repositories\checkstyle'...
error: 5107 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Cloning into 'repositories\checkstyle'...
error: 5561 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Cloning into 'repositories\checkstyle'...
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at diff.generateCheckstyleReport(diff.groovy:271)
at diff$generateCheckstyleReport$11.callCurrent(Unknown Source)
at diff.launchCheckstyleReport(diff.groovy:232)
at diff$launchCheckstyleReport$7.callCurrent(Unknown Source)
at diff.run(diff.groovy:31)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
```
this is my [checks.xml](https://gist.github.com/mahfouz72/333a02f446f50710808ab9e8be023e2d) file and this is [properties_to_test on](https://gist.github.com/mahfouz72/2a511cad45b44e01c2ebab9373a9a9e6)

my machine specification :
operating system: Windows 11, version 22H2 for x64

```
PS C:\Users\DELL> java --version
java 11.0.22 2024-01-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.22+9-LTS-219)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.22+9-LTS-219, mixed mode)
PS C:\Users\DELL> groovy --version
Groovy Version: 2.4.8 JVM: 17.0.6 Vendor: Eclipse Adoptium OS: Windows 11
PS C:\Users\DELL> git --version
git version 2.39.2.windows.1
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with diff.groovy at lines 271, 232, and 31, then reproduce the command from the issue on Windows. Inspect how the script clones the Checkstyle repository and handles repeated Git failures. Done means the repository is cloned successfully and report generation proceeds without the shown runtime error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, groovy
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.