Closed mahfouz72 closed 4 months ago
Provide us a link to what is being executed before this diff.groovy call so we can see the context of the job.
I meant the source code. You need know what is the context of this job and what it is trying to do to understand what the failure is.
This job is trying to generate reports right? what I see is that it clones checkstyle repo and the report generation failed with this message https://github.com/checkstyle/contribution/pull/878#issuecomment-2228784742. So what source code do you refer to? I see no extra info in this CI failure
So what source code do you refer to?
each section has a title. The title of section with the job failure is ./.ci/validation.sh checkstyle-tester-diff-groovy-patch
. That is the job being executed, so we will need to look at it's source to see what it is doing and trying to understand the failure.
I tried to run this script on local, build was successful
Creation of configuration report is started.
Creation of diff html site is started.
Creation of the result site succeed.
patch-diff-report-tool execution finished.
Running command: java -jar /home/mahfouz/contribution/patch-diff-report-tool/target/patch-diff-report-tool-0.1-SNAPSHOT-jar-with-dependencies.jar --patchReport reports/patch-branch/checkstyle-sonar/checkstyle-result.xml
--output reports/diff/checkstyle-sonar --patchConfig my_check.xml --baseReport reports/master/checkstyle-sonar/checkstyle-result.xml --baseConfig my_check.xml
patch-diff-report-tool execution started.
XML parsing is started.
Creation of configuration report is started.
Creation of diff html site is started.
Creation of the result site succeed.
patch-diff-report-tool execution finished.
Diff report generation finished ...
Starting creating report summary page ...
Creating report summary page finished...
CI is green idk why it failed before please consider merging
Can you provide the link to the source of the job?
So this test regression on checkstyle's master against itself and runs regression on checkstyle project only. The default config file is really set up to produce no violations. It is basically a no harms test of the diff groovy.
It uses projects-to-test-on.properties
but you modified projects-to-test-on-for-github-action.properties
, so yes, this test has no connection to your changes.
It didn't specify what the error was, so we won't know what the issue was. So its failure does seem unrelated.
Since this says for github actions, I assume this means in main repo. Is this file and openjdk17 used anywhere in main repo that we have switch it out once this is merged?
I don't think so. This file is not in the main repo. Updating this file in this PR is enough. It is used in diff-report.yml https://github.com/checkstyle/checkstyle/blob/d335962fa743408b6823236cd5c352eb7ea7965a/.github/workflows/diff-report.yml#L18-L20
I just don't know why we have those files:
They are not used anywhere why are we keeping them?
This file is not in the main repo. Updating this file in this PR is enough.
It is only enough if the main repo does not make use of this file or this property you changed. If we made use of this in main repo, we would most likely get a failure after merge since openjdk17 no longer exists.
It is used in diff-report.yml
So this is only used for default configuration for regression. Users can supply an override and all projects in this file should be uncommented.
@romani @nrmancuso
don't know why we have those files:
Are we keeping these files for some reason? They were added over a year ago and they just say minor: New Projects added for Diff regression
.
Files are added in this PR https://github.com/checkstyle/contribution/pull/785#pullrequestreview-1455790371
Unfortunately no reference to why we need this. Sounds like there were some testing activities on extended list of projects, and most likely me asked to preserve list of projects. But I don't see anything reference them in PR descriptions , looks like they never used.
Unfortunately no reference to why we need this.
Then we should have a good reference in this PR about why we did this update before merge to help future us :)
I tried to explain here https://github.com/checkstyle/contribution/pull/878#discussion_r1678624190
@mahfouz72 Since there is too much going on in this issue to possibly get lost, please move https://github.com/checkstyle/contribution/pull/878#issuecomment-2229543870 to a new issue.
We should have an issue if we are going to remove them anyways, otherwise, we will document why we need the files and possibly add the reason to the file(s).
We should have an issue if we are going to remove them anyways, otherwise, we will document why we need the files and possibly add the reason to the file(s).
test-configs will be updated to have openjdk21 https://github.com/checkstyle/test-configs/issues/124
please help with this I don't understand the failure. I need this update to use the default list. We should have openjdk21 in the default projects now.